Replies: 4 comments 16 replies
-
|
Can you post your panel? You probably need to use lua to do that, not the inbuilt snapshot function. |
Beta Was this translation helpful? Give feedback.
-
|
Does this work? it uses lua: --
-- Called when a modulator value changes
-- @mod http://ctrlr.org/api/class_ctrlr_modulator.html
-- @value new numeric value of the modulator
--
sendCombinedMessage = function(--[[ CtrlrModulator --]] mod --[[ number --]], value --[[ number --]], source)
if panel:getBootstrapState() then
return
end -- stop function from running onload
local channelOut = panel:getProperty("panelMidiOutputChannelDevice")
local statusByte = 0xB0 + (channelOut - 1) -- use this code for dynamic channel changes
local midinumber = 0
local bankChange = CtrlrMidiMessage({statusByte, midinumber, value})
panel:sendMidiMessageNow(bankChange)
-- now follow with program change
statusByte = 0xC0 + (channelOut - 1) -- use this code for dynamic channel changes
value = jmax(panel:getGlobalVariable(0), 0) -- if combo not set, value =-1 restrict to min 0
--See Modulator attached to global variable in panel menu
local programChange = CtrlrMidiMessage({statusByte, value})
panel:sendMidiMessageNow(programChange)
end
Edit: |
Beta Was this translation helpful? Give feedback.
-
|
OK, im getting closer... I got the Bank message to stay put, while the program change is moving up. However, I am not sure how to make the bank message go to bank 2 after program change 128 |
Beta Was this translation helpful? Give feedback.
-
Probably remove or comment out the line(s): --if panel:getBootstrapState() then -- return --end |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am programming a panel for the ML10X switcher.
I made drop down menus for the Bank 1-4, and Program 0-127.
The strange thing about this unit is that it will not change Banks unless there is a Program Change message that is behind it. So when a snapshot is sent on startup, it wont change banks unless the Bank message arrives at the unit before the PC change.
Is there a way to order the list of messages that get sent to the hardware when snapshots are sent out?
A different solution is to program both the Bank and PC on the same dropdown menu, but I am new to CTRLR and haven't found a way to do that yet. I am assuming it is a Multi type message?
I would also love to know how to do a dropdown menu of the entire panel snapshots

.
Beta Was this translation helpful? Give feedback.
All reactions