Hi,
I'm trying to write a small sequencer/buttonpush-recorder in a SoundToGlobalController.
It more or less works, but now I want to push a single button and clear the entire recorded sequence/EventVariable array.
Is there a clever way to do that? Or do I have to write a zero into every single position in my array going at it one by one?
Here is my code:
| anArray |
anArray := EventVariable new size: 500.
(!clearSeq true: (((anArray @< !WritePtr) <~ 0)) false: (nil)).
(!RecordOn true: ((anArray @< !WritePtr) <~ (!column * (!Row eq: 2))) false: (nil)),
(anArray @< !ReadPtr rounded)