Discussion:
delayr question
Askwazzup
2014-09-22 16:28:58 UTC
Permalink
---- End SpamAssassin results
X-Loop: ***@lists.bath.ac.uk
X-Sequence: 43218
Errors-to: csound-***@lists.bath.ac.uk
Precedence: list
X-no-archive: yes
List-Id: <csound.lists.bath.ac.uk>
List-Help: <mailto:***@lists.bath.ac.uk?subject=help>
List-Owner: <mailto:csound-***@lists.bath.ac.uk>
List-Post: <mailto:***@lists.bath.ac.uk>
X-Scanner: 80b9ce49a8d5f9910c61c0eb2b6dae528782738c
X-Gmane-Expiry: 2014-10-06
Archived-At: <http://permalink.gmane.org/gmane.comp.audio.csound.user/48763>

Good evening! (or appropriate time of the day for you)

sine.csd <http://csound.1045644.n5.nabble.com/file/n5737597/sine.csd>

I was writing a kind of an exercise and made a separate delay instrument
(it's in the csd above), but now i'm wondering if it is possible to send a
"delay time" argument from instr 1 to the delayr opcode in instr 100, seeing
as the instr 100 is only started once and delayr only accepts i time
arguments. Is is possible to make some sort of a conversion, or should i
rewrite delay thing differently?



--
View this message in context: http://csound.1045644.n5.nabble.com/delayr-question-tp5737597.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email ***@lists.bath.ac.uk with body "unsubscribe csound"
forrest curo
2014-09-22 16:55:33 UTC
Permalink
It looks like a job for reinit

Example[?]
----
changedelay:
idel init kdel
if kdel != idel then
reinit changedelay
endif

[if I've got this right...?]
Post by Askwazzup
Good evening! (or appropriate time of the day for you)
sine.csd <http://csound.1045644.n5.nabble.com/file/n5737597/sine.csd>
I was writing a kind of an exercise and made a separate delay instrument
(it's in the csd above), but now i'm wondering if it is possible to send a
"delay time" argument from instr 1 to the delayr opcode in instr 100, seeing
as the instr 100 is only started once and delayr only accepts i time
arguments. Is is possible to make some sort of a conversion, or should i
rewrite delay thing differently?
--
http://csound.1045644.n5.nabble.com/delayr-question-tp5737597.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email ***@lists.bath.ac.uk with body "unsubscribe csound"
Askwazzup
2014-09-22 18:11:49 UTC
Permalink
---- End SpamAssassin results
X-Loop: ***@lists.bath.ac.uk
X-Sequence: 43223
Errors-to: csound-***@lists.bath.ac.uk
Precedence: list
X-no-archive: yes
List-Id: <csound.lists.bath.ac.uk>
List-Help: <mailto:***@lists.bath.ac.uk?subject=help>
List-Owner: <mailto:csound-***@lists.bath.ac.uk>
List-Post: <mailto:***@lists.bath.ac.uk>
X-Scanner: a1f2e48b630e3f19334db4359b8f171575d4ab7d
X-Gmane-Expiry: 2014-10-06
Archived-At: <http://permalink.gmane.org/gmane.comp.audio.csound.user/48768>

Well i tried this, and it seems i have another obsticle.

The "gidel" global value, that i'm sending to the delayr opcode, gives the
initial value of the first "instr 1" p field and then doesn't update
anymore, when i printk its values in instr 100. If i printk its values in
instr 1, it seems to update just fine. How is this possible, that a global
variable returns 2 different values at the same time?

This is how it looks:

instr 1
....
gidel init p9
....
endin

instr 100
.....
idel init gidel
......
endin

If i run a printk opcode on gidel in both instruments at the same time, i
get different values, and thus cannot reinit the delayr argument.



--
View this message in context: http://csound.1045644.n5.nabble.com/delayr-question-tp5737597p5737602.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email ***@lists.bath.ac.uk with body "unsubscribe csound"
Askwazzup
2014-09-22 18:59:58 UTC
Permalink
---- End SpamAssassin results
X-Loop: ***@lists.bath.ac.uk
X-Sequence: 43225
Errors-to: csound-***@lists.bath.ac.uk
Precedence: list
X-no-archive: yes
List-Id: <csound.lists.bath.ac.uk>
List-Help: <mailto:***@lists.bath.ac.uk?subject=help>
List-Owner: <mailto:csound-***@lists.bath.ac.uk>
List-Post: <mailto:***@lists.bath.ac.uk>
X-Scanner: daafe50d7cd742610ec3a5fcc5f485b1dea9d355
X-Gmane-Expiry: 2014-10-06
Archived-At: <http://permalink.gmane.org/gmane.comp.audio.csound.user/48770>

Well, i figured out the gidel problem, it seems i should have done as you
told, and make gidel and gkdel instead, then it updates, however :

changedelay:
idel init i(gkdel_t)
if idel != i(gkdel_t)
reinit changedelay
endif

Doesn't change the idel value.



--
View this message in context: http://csound.1045644.n5.nabble.com/delayr-question-tp5737597p5737604.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email ***@lists.bath.ac.uk with body "unsubscribe csound"
Askwazzup
2014-09-22 19:15:57 UTC
Permalink
---- End SpamAssassin results
X-Loop: ***@lists.bath.ac.uk
X-Sequence: 43226
Errors-to: csound-***@lists.bath.ac.uk
Precedence: list
X-no-archive: yes
List-Id: <csound.lists.bath.ac.uk>
List-Help: <mailto:***@lists.bath.ac.uk?subject=help>
List-Owner: <mailto:csound-***@lists.bath.ac.uk>
List-Post: <mailto:***@lists.bath.ac.uk>
X-Scanner: d31e1e5525d06559bd0194b9f5c9223c98b6ed65
X-Gmane-Expiry: 2014-10-06
Archived-At: <http://permalink.gmane.org/gmane.comp.audio.csound.user/48771>

Yet again, i have cured this poisoning by just looking at your example.... I
thought one cannot compare i and k variables, but since it is possible, now
the thing seems to work again. Thanks for the example, all i have to do now,
is sort out those nasty clicks that appeared when i change the delay time.



--
View this message in context: http://csound.1045644.n5.nabble.com/delayr-question-tp5737597p5737605.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email ***@lists.bath.ac.uk with body "unsubscribe csound"
forrest curo
2014-09-22 19:17:50 UTC
Permalink
Um, I am confused too! But in instrument 100, then, try:

changedelay:
idel init i(gkdel_t)
rireturn
if idel != i(gkdel_t) then
reinit changedelay
endif
---

and if that doesn't do it, perhaps someone else can tell us both why?
Post by Askwazzup
Well, i figured out the gidel problem, it seems i should have done as you
idel init i(gkdel_t)
if idel != i(gkdel_t)
reinit changedelay
endif
Doesn't change the idel value.
--
http://csound.1045644.n5.nabble.com/delayr-question-tp5737597p5737604.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email ***@lists.bath.ac.uk with body "unsubscribe csound"
Loading...