| If I am not mistaken, all of the i rate operations in an instrument are finalized before any k rate operations are started. This includes assignment via =. So ktest simply doesn't have a value at i time. If what you want is to do i-time operations on a k-rate signal, I would suggest a second instrument launched with schedkwhen, with the k rate parameters plugged into the schedkwhen.
Jan Jacob Hofmann wrote:
> Dear List,
>
> I would like to convert a k-rate signal at instrument start to an i-rate
> signal. I thought using the opcode i(k-rate) would be a good idea,
> however I do get unexpected results: The output of that opcode is always
> "0", regardless of the value of the k-rate input. Am I getting something
> wrong?
>
> Here is an example:
>
>
>
>
>
> sr = 44100
> ksmps = 128
> nchnls = 1
>
>
> instr 1
> ktest = 1 ; set k-rate signal to 1
> itest = i(ktest) ; convert k-rate signal
> to i-rate
> print itest ; print i-rate signal. I would
> expect to see itest=1, but itest= 0 is printed
> endin
>
>
>
>
>
> i1 0 1
> e
>
>
>
>
>
> Cheers,
>
> Jan Jacob
>
>
>
>
> sound | movement | object
> | space
> sonic architecture | site: http://www.sonicarchitecture.de
> spatial electronic composition | 2nd order ambisonic music
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|