Old 09-20-2016, 07:35 AM   #1
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,733
Default Q: All Note Off Signal with JSFX

Hi,

How would you send an all notes off signal with JSFX ?

Thx !
X-Raym is offline   Reply With Quote
Old 09-20-2016, 08:22 AM   #2
geraintluff
Human being with feelings
 
geraintluff's Avatar
 
Join Date: Nov 2009
Location: mostly inside my own head
Posts: 328
Default

Here's a cheat-sheat on midi.org: https://www.midi.org/specifications/...f-midi-message

CC 123 is "All Notes Off", CC 120 is "All Sound Off" (which means cut off all note tails as well). I believe all well-behaved synths should be paying attention to these controllers.

It says to send these controllers with value 0, but (as far as I remember from the spec) it also says *any* controller value for those controllers should be interpreted as note/sound off.

(Depending what your goal is, you might also consider CC 121 "Reset All Controllers" - useful if you might have sustain pedal on.)

Last edited by geraintluff; 09-20-2016 at 08:30 AM.
geraintluff is offline   Reply With Quote
Old 09-20-2016, 09:43 AM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,733
Default

Thanks for the details :P so it's number 123. ok !

According to the script Note to CC I made from other scripts,
the code should be somethig like

Code:
msg23 = (123+256*vel)|0;                                     
midisend(offset, 11*16, msg23);
do you know what value should I put as "vel" ?
EDIT: ok it is written in the doc you sent me? v=0

Last edited by X-Raym; 09-20-2016 at 09:59 AM.
X-Raym is offline   Reply With Quote
Old 09-20-2016, 02:10 PM   #4
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,133
Default

Yeah, that's right, so simplified (and with channel added):

Code:
// ch = 0..15
midisend(ofs, 0xB0 | ch, 123);
Tale is offline   Reply With Quote
Old 09-20-2016, 03:29 PM   #5
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,733
Default

Oh thanks Tale, I actually needed the filter the channel, so your code is very welcome :P

I plan to use it for my new JSFX effects:
MIDI Notes Sequence with JSFX: Demo on Makey Makey



Cheers !
X-Raym is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.