Reply To: how to send program change with LUA

Home Forums General Programming how to send program change with LUA Reply To: how to send program change with LUA

#121248
Tedjuh
Participant
  • Topics: 9
  • Replies: 97
  • Total: 106
  • ★★

I think Baus means 0XF0 instead of 0x0F 🙂

The first 3 bytes are the MSB if I’m correct. So I guess you need to shoot another two CtrlrMidiMessages for the LSB and the Program Change. Like this:

msb = CtrlrMidiMessage(0xB8, 0x00, 0x7F)
lsb = CtrlrMidiMessage(0xB8, 0x20, 0x00)
pc = CtrlrMidiMessage(0xC8, 0x05)

panel:sendMidiMessageNow(msb)
panel:sendMidiMessageNow(lsb)
panel:sendMidiMessageNow(pc)

There are probably better ways to do this..

If you want to send them in one message in sysex format, you need what Baus says. But you need to know the right format for your synth as well. Example, for my synth (Roland SH-201) it’s: F0 41 10 00 00 16 12 01 00 00 00 MSB LSB ProgramChange 00 F7. Where MSB, LSB, ProgramChange are the values of 7F, 00, 05 of your example. But I need to know for which synth you are developing a panel to help you any further with that.

Do NOT follow this link or you will be banned from the site!