|
Post by bongojak on Dec 23, 2022 22:59:52 GMT
I'd like to use my expression pedal at velocity 127 (top of the pedal) to send a Control change message
so 1-126 is the same but when i get to 127 i'd like a CC sent. I know it's an if/ then Script, it's just figuring out the code to make it work...
my expression pedal is CC87
At Velocity 127 i'll like it to send CC71..toggle on/off (on at velocity 127, off at velocity126)
This is a complicated idea i have for my RC600 loop station. in the Slicer effect at the top of the expression pedal i want it to go to dotted 1/16th note, up and down makes longer and shorter "slices"... Currently i have this working with a 2nd footswitch to change to dotted 1/16th note with CC 71... it works, but would be WAY COOLER if i didn't have to jump around
Thanks i'll be updating this post as i get it figured out and hopefully with your help. you all ROCK!!
|
|
abadam
Developer 
Rotten Apple
Posts: 52
|
Post by abadam on Dec 24, 2022 10:18:13 GMT
if m0 == B0 $87 ass i0 = $127 if m2 < i0 ass i0 = 0 end if i1 != i0 send m0 $71 i0 ass i1 = i0 end end
|
|
|
Post by bongojak on Dec 27, 2022 3:30:30 GMT
Thank you SO much for the help abadom! abadamThat helps a bunch but I was wrong on my CC.. I ment to ask for CC 88 on midi channel 4 at velocity 127 to trigger CC 71. is the the B0 = $87 for the midi channel and cc? Sorry I get lost in these things, I do appreciate your help!! Attachments:

|
|
|
Post by redheronmusic on Dec 27, 2022 13:21:20 GMT
Control change message format is Bx YY ZZ, x is channel 0-F, YY is the Cc 0-127, Zz is the value 0-127. So for CC 88 on channel 4, change the test to if m0 == B3 $88 SB works in hex, so the $ lets you use 88 instead of converting to hex (58h) This is the basic MIDI message format: www.midi.org/specifications-old/item/table-1-summary-of-midi-message
|
|
|
Post by bongojak on Dec 27, 2022 14:51:40 GMT
Thank you redheronmusic!! Everything is working perfectly! You ROCK!! working script for cc 88 at velocity 127 to trigger CC 71 (top of expression pedal)… plus change midi CC 87 to 88 # controllers BX 57 = BX 58 # remap CC87 to CC88 # expression velocity 1-126 127 is cc70 if M0 == B3 $88 ass I0 = $127 if M2 < I0 ass I0 = 0 end if I1 != I0 send M0 $71 I0 ass I1 = I0 end end
|
|