Csound Csound-dev Csound-tekno Search About

Re: [Csnd] k-rate to i-rate conversion and vice versa

Date2011-03-18 17:19
From"Art Hunkins"
SubjectRe: [Csnd] k-rate to i-rate conversion and vice versa
Changing ktest = 1 to ktest init 1
should work for you.

The former statement isn't run at init time.

Art Hunkins

----- Original Message ----- 
From: "Jan Jacob Hofmann" 
To: "Csound List" 
Sent: Friday, March 18, 2011 12:54 PM
Subject: [Csnd] k-rate to i-rate conversion and vice versa


> 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"