I have a Combobox “DCO 1 Range” with three items in the Combo contents:
16=00
8=01
4=10
A Lua Method “dcoOneRangeMessage” is called when the modulator value changes:
dcoOneRangeMessage = function(mod, value)
comboValue = panel:getModulatorByName("DCO 1 Range"):getModulatorValue()
if comboValue == 00 then
mySysex = CtrlrMidiMessage({0xF0, 0x7F, 0x7F, 0x7F, 0x60, 0x01, 0x00, 0xb0, 0x08, 0x00, 0xF7})
panel:sendMidiMessageNow(mySysex)
elseif comboValue == 01 then
mySysex = CtrlrMidiMessage({0xF0, 0x7F, 0x7F, 0x7F, 0x60, 0x01, 0x00, 0xb0, 0x08, 0x20, 0xF7})
panel:sendMidiMessageNow(mySysex)
elseif comboValue == 10 then
mySysex = CtrlrMidiMessage({0xF0, 0x7F, 0x7F, 0x7F, 0x60, 0x01, 0x00, 0xb0, 0x08, 0x40, 0xF7})
panel:sendMidiMessageNow(mySysex)
end
end
I use 00, 01 & 10 as this is the format my Tone Edit Buffer Dump uses to send these particular instructions.
However the last value / message in the Combo contents / method does not get sent, there is no sign of it in the MIDI Monitor.
Any suggestions welcome.
Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystal