Re: Lua in CTRLR 101

Home Forums General Programming Lua in CTRLR 101 Re: Lua in CTRLR 101

  • Topics: 159
  • Replies: 2945
  • Total: 3104
  • ★★★★★

well it makes no sens, if you wish to create a midi message
m = CtrlrMidiMessage ({0xb0, 0x01, 0x02})
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})