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
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.
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)
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.
C74 RSS Feed | © Copyright Cycling '74