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?
Midiclock
Midiclock
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
https://soundcloud.com/mrcorba
-
- Regular
- Posts: 294
- Joined: 24 Jan 2012 18:22
Re: Midiclock
You can try putting the MidiClock part into the trigger field of a script.
Re: Midiclock
I've tried that but then it just changes on every midiclock pulse and not on quarter/eight note. Thats the main issue
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
https://soundcloud.com/mrcorba
Re: Midiclock
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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Re: Midiclock
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
Re: Midiclock
Great, it finally works! Thanks!
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
https://soundcloud.com/mrcorba