Old 03-17-2019, 04:03 AM   #1
Mordi
Human being with feelings
 
Mordi's Avatar
 
Join Date: May 2014
Location: Norway
Posts: 982
Default Get selected MIDI channel in MIDI editor?

I want to make a script that moves all MIDI note names up or down. I wanted it to work differently depending on this little dropdown in the MIDI editor:


However, I can't find a function for getting the selection in this box. Does it exist?
Mordi is online now   Reply With Quote
Old 03-19-2019, 04:55 PM   #2
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

You can use MIDIEditor_GetSetting_int with "default_note_chan" to get the channel.

To get other filter settings, you can look inside the item chunk. For an example, check out the script js_Select MIDI channel for new events for inline MIDI editor under mouse.lua.
juliansader is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.