View Single Post
Old 05-19-2017, 08:10 PM   #2
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,173
Default

Quote:
Originally Posted by nofish View Post
- If notes selected: toggle mute state (there's a native action for this)
I think you could use:
Code:
integer reaper.MIDI_EnumSelNotes(MediaItem_Take take, integer noteidx)

Returns the index of the next selected MIDI note after noteidx (-1 if there are no more selected events).
then run the action if that proves at least one note selected.

else:
Quote:
Originally Posted by nofish View Post
- If no notes selected: toggle mute state for note under mouse
Lokasenna has "delete note under mouse cursor" that could be modified, I think. I'm pretty sure there was another one floating around "select note under mouse cursor." But I don't know where it is.
FnA is offline   Reply With Quote