Midiclock

Discuss problems and solutions.
Post Reply
MrCorba
Regular
Posts: 142
Joined: 02 Sep 2013 20:17
Location: Netherlands

Midiclock

Post by MrCorba »

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?
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
electrofux
Regular
Posts: 294
Joined: 24 Jan 2012 18:22

Re: Midiclock

Post by electrofux »

You can try putting the MidiClock part into the trigger field of a script.
MrCorba
Regular
Posts: 142
Joined: 02 Sep 2013 20:17
Location: Netherlands

Re: Midiclock

Post by MrCorba »

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
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Midiclock

Post by Macciza »

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
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]
Traxus
Regular
Posts: 211
Joined: 30 Nov 2012 06:19
Location: Detroit
Contact:

Re: Midiclock

Post by Traxus »

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?
MrCorba
Regular
Posts: 142
Joined: 02 Sep 2013 20:17
Location: Netherlands

Re: Midiclock

Post by MrCorba »

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
Post Reply