Conditional LOOP Prim
Posted: Tue Jun 26, 2018 2:59 am
Dear developers,
please include into package the LOOP module primitive for green with conditional behavior incorporated. I mean logic like "loop while" or "loop until". This should be the module much alike the existind LOOP prim, but without fixed number of iterations. Instead, the looping stops only after the extra input condition becomes true or the iteration number exceeds the predetermined max limit.
Personally, I would need this prim to quickly read out array values, e.g., while the next equals the previous one. This is useful, e.g., to play MIDI score stored as array, when it comes to events, aligned to a single time signature (chords) etc. One might mention Ruby - please, no Ruby, cause Ruby loops are substantially slower, then those, implimented with prim. Additionally, yes, I would with pleasure use ASM module, if it could output triggers or numbers faster, then the sample rate...
Not only me could find this functionality useful.
Thanks.
please include into package the LOOP module primitive for green with conditional behavior incorporated. I mean logic like "loop while" or "loop until". This should be the module much alike the existind LOOP prim, but without fixed number of iterations. Instead, the looping stops only after the extra input condition becomes true or the iteration number exceeds the predetermined max limit.
Personally, I would need this prim to quickly read out array values, e.g., while the next equals the previous one. This is useful, e.g., to play MIDI score stored as array, when it comes to events, aligned to a single time signature (chords) etc. One might mention Ruby - please, no Ruby, cause Ruby loops are substantially slower, then those, implimented with prim. Additionally, yes, I would with pleasure use ASM module, if it could output triggers or numbers faster, then the sample rate...
Not only me could find this functionality useful.
Thanks.