Is there a really simple way to fill a Live clip with Max generated midi notes?

flowdesigner's icon

Hi,
I just want to fill a 2-beat midiclip with 8 unique random numbers from urn.
Can this be done easily?

Thanks

Timo Rozendal's icon

that's not too hard, just try and get the notes from a midi clip and study the syntax.

broc's icon

In any case, to fill a clip with notes you need a sequence of function calls as described in the LOM.
But it may be helpful to organize the task in 2 steps.
(1) store generated notes in [coll] and (2) write [coll] data into the clip.

pid's icon

go to

[your ableton live library]/Lessons/8-MaxForLive Category/10-MIDI Note Operations Lessons/MIDI-Note-Operations.amxd

and you'll find a bunch of tricks/abstractions to make your life easier

pm's icon

Beside going too deeply in M4L programming, I tend to directly record the output of a M4L track with a second MIDI track. Simply set the output of the MIDI track with your M4L device to the second track and record a clip on that track.
Probably not what you are looking for, but it is really easy and efficient. I use this a lot when using the M4L pattern sequencer to control a sampler.

flowdesigner's icon

@pid thanks, but thats to difficult

@pm yeah, I have to stick with that

Bjorn Vayner's icon

Have you checked out my MIDI Editor? http://bit.ly/MFLpack
Might be easy to modify for you. It already changes notes with Random, Urn will work too.

It generates notes from Clips that were already filled. But I suppose you could feed it some dummy data instead.