|
Post by doublemike on May 27, 2024 14:24:38 GMT
Hello, I really need help please. My brain is boiIing!! I use a midi controller called xone k2 and I’m trying to use it with button lightning with AUM. I use a script found in the forum to make a switch on/off on notes. But I try to exclude some notes from the script to keep the « momentary » proprety of some switches… I tried differents ways with modifying or with a second instance to get around but I always have conflicts I need to exclude these 4 notes : 9E 24 9E 25 9E 26 9E 27 and this is the script IF LOAD ASS L0 = 0 END # block all note offs 9D XX 00 = 8X ![8D](//storage.proboards.com/forum/images/smiley/insane.png) = XX +B 9E XX 00 = 8X 8E = XX +B IF MT == 90 # get current toggle state ASS I0 = LM1 # toggle is off IF I0 == 0 ASS LM1 = 1 # switch toggle on END # toggle is on IF I0 == 1 # rewrite to note off MAT M0 = M0 - 10 ASS LM1 = 0 # switch toggle off END END thank you for your help!!!
|
|
|
Post by doublemike on May 28, 2024 9:59:30 GMT
I found a partial solution with two scripts…
I modified the sripth above with blocking the notes but I need another script for only pass through these notes
What is the good way to write a script to let pass only one note?
I tried this :
IF M0 != 9E IF M1 != 24 BLOCK END END
But it does’t works, all the notes on from midi channel 15 pass through I thought I missed something so simple.
Help me pleaaaassse!!!
|
|
|
Post by doublemike on May 28, 2024 10:16:13 GMT
Ok i used < and > to block higher and lower notes but if I want to use a simple pass through for one note is there a simple solution?
|
|
abadam
Developer ![*](//storage.proboards.com/forum/images/stars/star_lime.png)
Rotten Apple
Posts: 61
|
Post by abadam on May 28, 2024 15:01:36 GMT
ignore an event early, use the exit command
if m0 == 9e 24 exit end
passthrough just a set of notes:
9E 24-27 = XX +C # clone required range XX = XX +B # block everything else
|
|