Troubleshooting

Midiclock

Started by MrCorba on .

Sign in or create an account to join the conversation.

6 posts

Topic starter
I guess the solution is really simple but i just can't find it.

I want a random function on a fader that changes with say every quarter note. Synced with midi clock to ableton. Now I know that midi clock sends out date 24 times each quarter note,so if i take a monitor
and give as input "midi_clocks[0]/24" it changes every quarter note. However, I just can not get this to work within a script or an expression. Has anyone an suggestion?
Macciza wrote:You just gotta take your logic that step further . . .

First use Modulo- % rather than Div - / cause it cycles from 0 to whatever
Then you could use 'midi_clocks[0]%24==1' to get the timing
To elaborate, if I'm not mistaken, 'on expression' does not mean 'on change'. So if a script is set to on expression of 'var' and var is set to the same value three times in a row, the on expression listener script will fire all three times, no?