Home › Forums › General › Programming › Lua in CTRLR 101 › Re: Lua in CTRLR 101
July 13, 2011 at 4:21 pm
#2966
well it makes no sens, if you wish to create a midi message
[code:3c5djj12]
m = CtrlrMidiMessage ({0xb0, 0x01, 0x02})
[/code:3c5djj12]
that will create a midi message of type CC midi channel 1 (0xb0) CC number is 1 (0x01) and the value is 2 (0x02), what you are doing is passing two NIL values to the CtrlrMidiMessage constructor (pbOsc1:setModulatorValue(bend) does not return any value so nothing gets passed to the constructor of the CtrlrMidiMessage, also you need to pass an array of values to the constructor that is {xx,xx,xx})