| Apr 1 2021, Steven Yi has written:
> Hi Jeanette,
>
> Haven't tested, but I think using k() would work like so:
>
> if (kValue >1) then
> chnset(k(0.83), "MyChannel")
> endif
Duh! I should have thought of that! Thanks a lot, Steven!
Best wishes,
Jeanette
>
> Hope that helps!
> Steven
>
> On Thu, Apr 1, 2021 at 10:42 AM Jeanette C. wrote:
>>
>> Hey hey,
>> how can I properly chnset an i-rate value at control time? Consider this
>> snippet:
>> if (kValue >1) then
>> chnset(0.83, "MyChannel")
>> endif
>>
>> This will only execute once. Temporarily I have circumvented this by:
>> kVal init 0.83
>>
>> But this is ugly and surely not the Csound way. :) Is there a standard
>> solution/syntax for these situations?
>>
>> Best wishes,
>>
>> Jeanette
>>
>> --
>> * Website: http://juliencoder.de - for summer is a state of sound
>> * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
>> * Audiobombs: https://www.audiobombs.com/users/jeanette_c
>> * GitHub: https://github.com/jeanette-c
>>
>> With you I get so high
>> Lost in the crystal sky
>> You are this melody
>> That's where you take me <3
>> (Britney Spears)
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>> https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
--
* Website: http://juliencoder.de - for summer is a state of sound
* Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
* Audiobombs: https://www.audiobombs.com/users/jeanette_c
* GitHub: https://github.com/jeanette-c
With you I get so high
Lost in the crystal sky
You are this melody
That's where you take me <3
(Britney Spears)
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |