Quote:
Originally Posted by nofish
- 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
- 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.