Generating new MIDI clips in Arrangement View

DMITRII BORODII's icon

Hi all,

I'm looking for ways to programmatically create new MIDI clips in Arrangement View from a Max patch.

I'm new to Max4Live so I'd appreciate any help, direction or ideas. There's a lot of examples on how to work with the Session View, but so far I couldn't find anything about working with Arrangement View.

For the context, I'd like to build a device to help me analyze recorded jam sessions with "visual tagging" by having a patch automatically create equally-spaced colored MIDI clips (and their color being controlled from e.g. a MIDI controller) as I'm playing back my recorded material in the arrangement view.

Thanks!

Namakemon's icon

It is not possible currently.

You could tag using locators with colorful emojis (or just text if color not needed, if not even words needed you can just MIDI or Key assign the create locator button, without M4L).

"Create equally-spaced colored MIDI clips" could be done with some setup in Session View with Arrangement Record.

I guess you could automate that with M4L, create track > create color-coded Clips of size X in Session > start Arrangem. Record > trigger Session View Clip of color Y at Z time, stop at W time.

tyler mazaika's icon

if you have a Clip in Session view, you can (IIRC) pass that id to a function call “duplicate_clip_to_arranger” or something like that. I forget which LOM object that’s associated with. It works for the purpose
you're describing, though.