Csound Csound-dev Csound-tekno Search About

[Csnd] delayr question

Date2014-09-22 17:28
FromAskwazzup
Subject[Csnd] delayr question
Good evening! (or appropriate time of the day for you)

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 sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-09-22 17:55
Fromforrest curo
SubjectRe: [Csnd] delayr question
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...?]

On Mon, Sep 22, 2014 at 9:28 AM, Askwazzup <askwazzup@gmail.com> wrote:
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 sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-09-22 19:11
FromAskwazzup
Subject[Csnd] Re: delayr question
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 sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-09-22 19:59
FromAskwazzup
Subject[Csnd] Re: delayr question
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 sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-09-22 20:15
FromAskwazzup
Subject[Csnd] Re: delayr question
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 sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2014-09-22 20:17
Fromforrest curo
SubjectRe: [Csnd] Re: delayr question
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?



On Mon, Sep 22, 2014 at 11:59 AM, Askwazzup <askwazzup@gmail.com> wrote:
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 sympa@lists.bath.ac.uk with body "unsubscribe csound"