Forums > Max For Live

unable to select_all_notes

January 5, 2014 | 9:12 am

Hi,
I try to create a device, that deletes all notes in a specific midi clip. Sounds easy but somehow I cant get it done:

I am able to start a midi clip from within max for live, by sending the clips id into the right inlet of an live.object and a "call fire" message into the left inlet. To delete the included midi notes I thought I’d just have to replace the "call fire" message with the following messages:

- call select_all_notes
- call replace_selected_notes
- call notes 0
- call note 0
- call done

Nothing worked!

The LOM said that "select all notes" works independently from the current selection, so I tried to append the id to the "call select_all_notes" message. Didnt work either.

I would be realy thankful for a little hint in the right direction.
Thanks


January 5, 2014 | 9:25 am

Hi !
make sure u have selected valid clip . because your calls are fine i guess .
or post a patch

EDIT : or try do deselect_all_notes before all , just try
EDIT2 : additionaly i think that you dont need to call "call note 0" . your "call notes 0" is enough (plural)


January 5, 2014 | 10:36 am

ok, thanks,
I’ll post a patch if I dont get it working soon. But I found something what seems to be the root:

the id I used to fire the clip is the clip-slot’s id. But I need to get the clips id… I’m on it.


Viewing 3 posts - 1 through 3 (of 3 total)