Troubleshooting
Midiclock
Started by MrCorba on .
Sign in or create an account to join the conversation.
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?
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?
You can try putting the MidiClock part into the trigger field of a script.
I've tried that but then it just changes on every midiclock pulse and not on quarter/eight note. Thats the main issue
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
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?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
Great, it finally works! Thanks!