Midi Panic on the Bomebox

Hi,

I tried to script a midi panic button. On an input midi event, send all midi notes off on all midi channel. I couldn't find a way to implement this.

 

Also I made a mute pedal, that mute a midi channel, but I should send all midi notes off on that channel when I mute it, otherwise I get stucked notes if the channel is muted before all notes are turned off (which happens).

 

So : How could I send all notes off messages ?

 

Thank you very much in advance !

Well most MIDI devices recognize the MIDI all Notes Off message which is Controller 123 or 7B so you could send this.

B0 7B FF B1 7B FF … BF 7B FF

This can be done in one line of output.

If the device doesn’t recognize all notes off, then you would need to set up a timer that iterates through the channels and devices sending of each note off message on every iteration 16 channels times 128 notes. (2048 individual note off messages)

 

I’ve attached an example.

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz


Attachments:
1554385937451_All-Notes-Off-Iteration-2019-04-04.bmtp

Here is the code for the timer translator
// For all channels all notes before firing this timer
// This is the translator used to fire the the timer
// set ga=16
// set gb=128
// pp=ga*gb
// execute translator pp times
// And the timer translator itself
// get channel
oo=ga-1
// get note
pp=gb-1
//next channel for next iteraton
if pp==0 then ga=ga-1
// decrement note number
gb=gb-1
// start note count on new channnel
if gb==0 then gb=128
Outgoing Note-Off MIDI CH oo Note pp Velocity 0

// For all channels all notes before firing this timer
// This is the translator used to fire the the timer

ga=16
gb=128
pp=ga*gb
execute timer pp times

------------------------

// And the timer translator itself

// get channel
oo=ga-1
// get note
pp=gb-1

//next channel for next iteraton
if pp==0 then ga=ga-1
// decrement note number
gb=gb-1
// start note count on new channnel
if gb==0 then gb=128

Outgoing Note-Off MIDI CH oo Note pp Velocity 0

This is perfect, thank you very much !

First I started with CC#123, but my pulse2 didn’t react to it (it worked with the other synths) which is strange because according to the manual, it should.

So I did the second solution, but per channel.

Glad to have helped!