TW
Seeker
Posts: 4
|
Post by TW on Jul 8, 2020 21:08:00 GMT
Hello,
I'm mapping program changes to chords. Using this script:
CX 6B = 9X 16 48 NX 16 = XX 34 +C NX 16 = XX 38 +C NX 16 = XX 3A +C NX 16 = XX 3F +C NX 16 = XX 48 +C NX 16 = XX +B CX 6B = XX +B
How do I set the length of the notes??
Thanks for any help!
Tom
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jul 9, 2020 15:52:49 GMT
Hi TW , You need to send a note on and then a note off afterwards to set the length. Otherwise the note will sound forever. You need to specify how long the note is in milliseconds. Example based on your rules below, sounds the chord for 1 second. CX 6B = 9X 16 48
9X 16 = 9X 34 +C 9X 16 = 9X 38 +C 9X 16 = 9X 3A +C 9X 16 = 9X 3F +C 9X 16 = 9X 48 +C
9X 16 = 8X 34 +C +D1000 9X 16 = 8X 38 +C +D1000 9X 16 = 8X 3A +C +D1000 9X 16 = 8X 3F +C +D1000 9X 16 = 8X 48 +C +D1000
NX 16 = XX +B CX 6B = XX +BRegards, Nic.
|
|
TW
Seeker
Posts: 4
|
Post by TW on Jul 9, 2020 17:07:56 GMT
Thanks Nic!
Quick follow up ...
Is it possible to hold the chord until the next chord is triggered?
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jul 9, 2020 17:24:55 GMT
Hi TW , For doing that you would have to resort to more complex rules, but for most synths this shortcut might work. Add this rule to the top of your rules: CX = BX 7B 00 +CWhen any program change is received an 'all notes off' message is sent first. Be careful here if you leave all those delayed note offs in your rules. They will still get triggered and might cut off notes unexpectedly. Regards, Nic.
|
|
TW
Seeker
Posts: 4
|
Post by TW on Jul 9, 2020 19:14:56 GMT
Thanks so much Nic!
|
|