|
Post by julienj on Feb 9, 2024 17:25:46 GMT
Damn, I'm so bad at programming :'-( I simply wanted to push a pad of my MPK mini which send a midi CC 20 on channel 15 to remap the midi channel from 15 to 4
My code bellow :
If ME == BE 20 #or B0? XE = X3 End Could someone please explain what I'm doing wrong?
|
|
|
Post by redheronmusic on Feb 10, 2024 3:12:23 GMT
This is the simple transform the SB1 rules excel at
BE 20 = B3 20
but 20h = 32 decimal.
If you mean decimal 20, then use 14h
BE 14 = B3 14 To fix the code you started with SBII rules, this also works
If M0 == BE 20 # or 14
Ass M0 = B3
End
|
|
|
Post by julienj on Feb 13, 2024 16:03:18 GMT
Many thanks for the help redheronmusic You were right, it was BE 14 (hexadecimal). My question was not well formulated but you helped me to find the answer (maybe it could be optimized?) : #remap channel 15 to other channels by pushing on pads
If load
Ass L0 = 0
End
If M0 == BE 14 #on click on Pad1
Ass L0 = 0 Block
End
If M0 == BE 15 #on click on Pad2
Ass L0 = 1 Block
End
If M0 == BE 16 #on click on Pad3
Ass L0 = 2 Block
End
If L0 == 0
XE = X0 # remap channel 15 to 1
End
If L0 == 1
XE = X1 # remap channel 15 to 2
End
If L0 == 2
XE = X2 # remap channel 15 to 3
End
|
|