replace_selected_notes message doesn't work

nakatano's icon

Hi,

I would like to use Live API to replace/create midi notes in a midi clip via the replace_selected_notes message box.
All message boxes works fine except this one, the Max window sending the message «an operation is already in progress» each time I click on the message box.
I tried and tried (including this: https://cycling74.com/forums/replace-selected-midi-notes-help-please ) but nothing seems to work with this message.
Any idea would be really welcome !!
I join the patch, note that it has to be inserted in the track 0, this one being a midi track.

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks,
Best,
Nakatano.

nakatano's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hey, it seems to work like this !

nakatano's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Could be something like this:
(cannot understand the errors messages in Max window...

nakatano's icon

Well, this time I really cannot understand: the patch works great when you "bang manually" but doesn't work when using a metro object ?!?!

Any idea ?

Max Patch
Copy patch and select New From Clipboard in Max.

here's the patch:

broc's icon

It's a matter of event priorities. Try inserting [deferlow] after the metro.

See this article for more information.

nakatano's icon

It works great !
I read this article immediately.

Thanks