|
Post by Mitchell on Oct 7, 2018 14:28:41 GMT
Hi, I'm trying to update a MIDI Designer layout with a SYSEX dump. Using MD 2.97 Beta. One problem I have is that the CC#s are reversed on every other SYSEX Byte number so say I need to send 00 to my layout but the SYSEX message shows 7F.
So far I have something like this
IF M2 == 20 10 02 01 #OTTOBIT JR ID
SND B2 10 M9
SND B2 11 M10 #and so on for all pedal controls
END
Is there a concise way to send the inverse of M9?
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Oct 8, 2018 8:37:47 GMT
Hi,
Yes, use the MAT rule's '^' operator to reverse:
MAT M9 = M9 ^ 7F
which will flip M9 in place
Regards, Nic.
|
|
|
Post by Mitchell on Oct 9, 2018 22:20:57 GMT
Thanks Nic, I got it all figured out now. Very excited about using Stream Byter for this.
|
|
|
Post by lapractica on Jul 17, 2019 16:39:18 GMT
Hi Nic and Mitch, I am trying to do what Mitch was doing but I am 100% green/new to Stream Byter or this technical with music gear in general. I feel like I have an okay understanding of Midi but this is out of my wheelhouse. Is there anywhere you could point me to to help me learn this part of Stream Byter? A lot of the documents say that folks on this forum might help write code for/with you. Would this be a better route for a n00b like me?
Thanks for any help you can provide!
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jul 17, 2019 18:41:57 GMT
Hi lapractica, The StreamByter language has seen some improvements over the last few months which make writing code a little easier. However, these recent enhancements have not as yet made it into MDP. What do you want to do? Regards, Nic.
|
|
slmnv
Converser
Posts: 22
|
Post by slmnv on Aug 5, 2019 17:35:03 GMT
MAT M9 = M9 ^ 7Fwhich will flip M9 in place Nic, I noticed it is not commutative operator bitwise exclusive or, though it should be, test is below, is it by design or some other reason for that ? IF LOAD ASS I0 = 00 00 MAT I0 = I0 ^ 7F # flips value to 7F MAT I1 = 7F ^ I1 # value still zero SND F0 I0 I1 F7 END
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Aug 6, 2019 9:31:18 GMT
Hi slmnv, Yeah, that's a bug. If the value following the '^' resolves to 0 then the result is being returned as 0. That is obviously not correct. This is fixed for the next update which is in the works. Thanks for reporting this. Regards, Nic.
|
|