[Cs-dev] Thinking about k-rate init passes
Date | 2014-10-17 19:32 |
From | Andres Cabrera |
Subject | [Cs-dev] Thinking about k-rate init passes |
Attachments | None None |
Hi, The discussion on k-rate arrays at init time made me wonder if it might be beneficial to have two separate types of k-rate. One that can be processed at init time, and one that can't. This might be complicated to implement, but it would solve one of the big confusions in the language, where things don't work because a particular opcode doesn't write at init time to k-rate variable, while an opcode following it reads it at init time. It would also clarify the incosistencies that can occur between the invalue and chnget opcodes. invalue reads the value during the init pass, while chnget doesn't.Cheers, Andrés |
Date | 2014-10-17 19:36 |
From | Rory Walsh |
Subject | Re: [Cs-dev] Thinking about k-rate init passes |
This would be an internal only thing? k-rate variable not being initialized at i-rate has always made me irate. On 17 October 2014 20:32, Andres Cabrera |
Date | 2014-10-17 19:41 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Thinking about k-rate init passes |
Attachments | None None |
Not sure what the best way to handle it would be. Maybe all k-rate variables should be forced to initialize at init, but that doesn't seem like a great idea. Maybe none should. Or maybe there should be a way of marking opcodes to let people know that the opcode intializes or doesn't initialize k-rate variables. This could be something enforced by csound, or it could be a documentation thing only. I'm just throwing it out there to see what people think :)...Andrés On Fri, Oct 17, 2014 at 11:36 AM, Rory Walsh <rorywalsh@ear.ie> wrote: This would be an internal only thing? k-rate variable not being |
Date | 2014-10-17 20:51 |
From | Rory Walsh |
Subject | Re: [Cs-dev] Thinking about k-rate init passes |
Would forcing all k-rate variables to init at init time break existing instruments? If not, could it be done? I have a dream that one day i and k rate variables shall be judged equally during an init pass. And that man shall no more scratch his head wondering why k keeps falling through conditional statements! On 17 October 2014 20:41, Andres Cabrera |
Date | 2014-10-17 21:21 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] Thinking about k-rate init passes |
Just guessing, but it seems to me that enforcing a no-init of all k-variables might break something, while enforcing init of k-variables should not break anything... (?) 2014-10-17 21:51 GMT+02:00 Rory Walsh |