I'm trying the control the track selection in the multigrid using capytalk.
in the selection field I've got:
((((0.2 s random abs) seed: 0.2) * 6) rounded) "I've got 6 Sounds on the track"
in the trigger field I've got:
(((((0.2 s random abs) seed: 0.2) * 6) rounded) hasChangedInLast: 11 ms)
This gives me a trigger everytime the selection value has changed but when the selection value is the same I still get a trigger and the next change is ignored.
When I scope it it looks like it's all working except the triggers are behind by one period:
In the test scope Sound; If I paste the selection expression into the trigger expression:
( [selection expression] L) hasChangedInLast: 11 ms then the triggers line up with the changes.
But in the algorithmic control of the multigrid I can't paste the selection expression Sound into the trigger expression.
I'm looking to control the period of the random selection with a !HotValue and for the period to be quite long so it's important that the selection and triggers line up.
So how do I line the triggers up so the selection reflects the Sound that's playing?
(here's a test setup to illustrate: capytalk sync problem.kym)