Quote:
Originally Posted by Greg Savage
I'm aware of what it is, I'm interested in performing the same action on the midi item like i can on the audio item. I want to be able to click the item or highlight the item and hit 1 command to reverse its contents just like you can with an audio item
|
This .eel script will do exactly what you're asking for; you can import the script as a custom action and then add it to the Media Item context menu so that it's just as accessible as the Audio Item reverse action:
selected_midi_item = GetSelectedMediaItem(0, 0); // Get Selected MIDI Item
Main_OnCommand(40153, 0); // Open MIDI editor
MIDIEditor_OnCommand(MIDIEditor_GetActive(), 40019); // Reverse MIDI
MIDIEditor_OnCommand(MIDIEditor_GetActive(), 2); // Close MIDI editor
//////////////////////////////////////////////////////////////////////
// Edit: Alternative method accounting for empty space
/////////////////////////////////////////////////////////////////////
selected_midi_item = GetSelectedMediaItem(0, 0); // Get Selected MIDI Item
Main_OnCommand(40290, 0); // Set Time Selection to MIDI Item
Main_OnCommand(40153, 0); // Open MIDI editor
MIDIEditor_OnCommand(MIDIEditor_GetActive(), 40006); // Select All Events (including space)
MIDIEditor_OnCommand(MIDIEditor_GetActive(), 40904); // Reverse MIDI (including space)
MIDIEditor_OnCommand(MIDIEditor_GetActive(), 2); // Close MIDI editor