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

#14950

LukeYouth
Participant

Thanks for the help, I have actually begun taking apart atoms panel and trying to make it work a bit more smoothly based off of the sys ex data found here: http://www.hinzen.de/midi/juno-106/howto-02.html

I’m currently having issues with this LUA method though, it compiles ok but it is giving me a runtime error when i get the midi message dump.

function assignvalues(midiMessage)
programdata=Midimessage:getdata():getrange(0,30)
panel:getModulatorByName("LFO Rate"):setModulatorValue(programData:getbyte(6), false)
panel:getModulatorByName("LFO Delay"):setModulatorValue(programData:getbyte(7), false)
panel:getModulatorByName("DCOLFO"):setModulatorValue(programData:getbyte(8), false)
panel:getModulatorByName("DCOPWM"):setModulatorValue(programData:getbyte(9), false)
panel:getModulatorByName("Noise"):setModulatorValue(programData:getbyte(10), false)
panel:getModulatorByName("VCFFREQ"):setModulatorValue(programData:getbyte(11), false)
panel:getModulatorByName("VCFRES"):setModulatorValue(programData:getbyte(12), false)
panel:getModulatorByName("VCFENV"):setModulatorValue(programData:getbyte(13), false)
panel:getModulatorByName("VCFLFO"):setModulatorValue(programData:getbyte(14), false)
panel:getModulatorByName("VCFKYBD"):setModulatorValue(programData:getbyte(15), false)
panel:getModulatorByName("VCA"):setModulatorValue(programData:getbyte(16), false)
panel:getModulatorByName("ENVA"):setModulatorValue(programData:getbyte(17), false)
panel:getModulatorByName("ENVD"):setModulatorValue(programData:getbyte(18), false)
panel:getModulatorByName("ENVS"):setModulatorValue(programData:getbyte(19), false)
panel:getModulatorByName("ENVR"):setModulatorValue(programData:getbyte(20), false)
panel:getModulatorByName("SUB"):setModulatorValue(programData:getbyte(21), false)
panel:getModulatorByName("SUB"):setModulatorValue(programData:getbyte(22), false)
panel:getModulatorByName("VCFLFO"):setModulatorValue(programData:getbyte(22), false)
Switchers1 = midimessage:getLUAdata():getbyte(23)
bi = BigInteger(byte)
panel:getModulatorbyName("Range"):SetValueMapped(bi:getBitRangeasInt(0,3), false)
panel:getModulatorbyName("Waveform"):SetValueMapped(bi:getBitRangeasInt(2,3), false)
panel:getModulatorbyName("Chorus"):SetValueMapped(bi:getBitRangeasInt(2,5), false)
Switchers2 = midimessage:getLUAdata():getbyte(24)
bi = BigInteger(byte)
panel:getModulatorbyName("LFO or Manual"):SetValueMapped(bi:getBitRangeasInt(0,1), false)
panel:getModulatorbyName("ENVGate"):SetValueMapped(bi:getBitRangeasInt(1,1), false)
panel:getModulatorbyName("VCFPolarity"):SetValueMapped(bi:getBitRangeasInt(2,1), false)
panel:getModulatorbyName("HPF"):SetValueMapped(bi:getBitRangeasInt(3,2), false)
end