Reply To: For people who use the juno 106

Home Forums General Panels, Components, Macros For people who use the juno 106 Reply To: For people who use the juno 106

#15178
lfo2vco
Participant
    • Topics: 26
    • Replies: 162
    • Total: 188
    • ā˜…ā˜…

    Hi Luke,

    I did the same thing regarding the Combobox contents first time around. Iā€™m no expert just passing on what Atom and Msepsis have taught me.

    The Combo contnets are a linear list from top to bottom, so you only need to put:
    16′
    8′
    4′

    Then in Lua reference the items something like this:

    dcoOneRangeMessage = function(mod, value)
    
    	-- Get the combo's value
    	comboValue = DCO1Range:getModulatorValue()
    
    	-- Send appropriate sysex based on combo's value
    	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 == 02 then
    		mySysex = CtrlrMidiMessage({0xF0, 0x7F, 0x7F, 0x7F, 0x60, 0x01, 0x00, 0xb0, 0x08, 0x40, 0xF7})
    		panel:sendMidiMessageNow(mySysex)
    
    	end
    
    end

    So comboValue == 00 is the first item, 01 the second and so on.

    Here is some noise I organised into an acceptable format:
    https://soundcloud.com/lfo2vco/a-dark-crystal

    Ctrlr