|
Post by crony on Aug 22, 2018 0:28:59 GMT
Hello Nic,
I'd like to translate a note played on midi channel 1, C-1 (or C-2, anyway, the lowest note of the keyboard, I'm never sure...depend on what echoing or which midi editor is used...) "ON" to this sysex 90, 67, 7F, 80, 67, 00
Then midi channel 1, C-1 (or C-2, again, the lowest) "OFF" to this sysex 90, 67, 3F, 80, 67, 00
I don't know how to catch the fact that it is ON or OFF...I can't use the velocity here. So it's just a toggle on/off that is sending one sysex or the other...
So it might be a bit like this, but not like this...:
IF M0 == N0 SND 90 67 7F 80 67 00 END
IF M0 == N0 SND 90 67 3F 80 67 00 END
Could you help me with that ? Thanks a lot !
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Aug 22, 2018 7:15:20 GMT
Hi crony, Sure thing, although you'll need the entire sysex message (manufacturer id, device id as per the device's sysex spec.). I have just set these to 01 02 in my example: # force note on/vel0 to off 9X XX 00 = 8X
# note on - send sysex and block IF M0 == 90 00 SND F0 01 02 90 67 7F 80 67 00 F7 XX = XX +B END
# note off, send sysex and block IF M0 == 80 00 SND F0 01 02 90 67 3F 80 67 00 F7 XX = XX +B ENDRegards, Nic.
|
|
|
Post by crony on Aug 22, 2018 8:26:54 GMT
Hmm..Not sure to understand...Why would I need F0 01 02 ? Going to test this already... Here is the midi implementation of the QU-SB. www.allen-heath.com/media/Qu_MIDI_Protocol_V1.9.pdfI'd like to mute/unmute the Main LR = 67, and see page 5 : Mute on NOTE ON with velocity > or = 40 followed by NOTE OFF 9N, CH, 7F, 8N, CH, 00 Mute off NOTE ON with velocity < 40 followed by NOTE OFF 9N, CH, 3F, 8N, CH, 00 Received Mute messages Velocity 00 and NOTE OFF messages are ignored Velocity 01 to 3F = Mute off Velocity 40 to 7F = Mute on
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Aug 22, 2018 9:04:55 GMT
Hi crony , OK, they are not sysex messages. Try this: # qu mute L/R with C-2 on/off # force note on/vel0 to off 9X XX 00 = 8X
# note on - send mute and block IF M0 == 90 00 SND 90 67 7F SND 80 67 00 XX = XX +B END
# note off, send mute and block IF M0 == 80 00 SND 90 67 00 SND 80 67 00 XX = XX +B ENDThis assumes the qu device is operating on channel 1 Regards, Nic.
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Aug 22, 2018 9:06:55 GMT
Maybe you will want to block all messages from your controller going to the qu device.
Just add:
# block all incoming XX = XX +B
to the end of the script
Regards, Nic.
|
|
|
Post by crony on Aug 22, 2018 12:01:59 GMT
Hi Nic, Ok, the mute is working but not the unmute. It's just the unmute that needs to be set between 1 to 3F, you've written 0... I could correct (youhouuuuuuu I'm a genious...lol) and make the unmute working ! # qu mute L/R with C-2 on/off # force note on/vel0 to off 9X XX 00 = 8X # note on - send mute and block IF M0 == 90 00 SND 90 67 7F SND 80 67 00 XX = XX +B END # note off, send mute and block IF M0 == 80 00 SND 90 67 3F SND 80 67 00 XX = XX +B END Super huge thanks Nic
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Aug 22, 2018 12:21:13 GMT
Spot on - that it had to be > 1 did just not register!
|
|
|
Post by crony on Sept 6, 2018 15:56:48 GMT
Hi Nic,
Still having some questions about how to fix this... The mute/unmute works perfect, now I'd like to control the volume of the main out.
So I'd like to convert a cc = 0, midi channel 1, to control the main volume (so the range 0 to 127) of my QUSB mixer.
On the last page of this document, I can see that this is controlled by : L R 67 07
I tried to add this on the below the first rule (for on/off mute/unmute), get no error, but it's not working... (obviously)
IF M1 == B0 00 M2 SND 90 67 07 M2 END
Could you enlight me please ?
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Sept 7, 2018 8:47:51 GMT
Hi crony , From the documentation, it seems it is expecting an NRPN to control this. Further deciphering of the doc suggests that to control the LR fader you would need something like: # QUSB - LR with CC # handle CC0, CH1 IF M0 == B0 00 SND B0 63 67 # NRPN MSB (main LR) SND B0 62 17 # NRPN LSB (fader) SND B0 06 M2 # MSB (gain from CC val) SND B0 26 07 # LSB (LR index) SND B0 63 7F # NRPN OFF SND B0 62 7F # NRPN OFF XX = XX +B ENDI have no idea if this is correct, but let me know how you get on. Also, be careful with using CC0 as this is a bank select message (I block it above just in case) Regards, Nic.
|
|
|
Post by crony on Sept 7, 2018 15:08:48 GMT
Wow, that works absolutely perfectly !!!! Thanks again, you roxxxxx
|
|