MIDI Panic module based on MICROCHIP PIC12C508 or 16F84. To build the firmware, checkout GNU Pic Utilities, then :
cd src && make
The panic device can run as a standalone module :
Or be include in an existing device. Eg. a MIDI Thru-box:The 16F84A version require a 4MHz external oscillator. If you want run the device with internal oscillator (not recommanded), add the USE_INTERNAL_OSC
flag in Makefile:
ASMFLAGS="-w1 -D HAVE_RUNNING_STATUS -D USE_INTERNAL_OSC"
The pinout for the 16F84A version is as follow:
S1 = pin 6 (PORTB-0)
S2 = pin 7 (PORTB-1)
S4 = pin 8 (PORTB-2)
MIDI IN = pin 18 (PORTA-1)
MIDI OUT = pin 1 (PORTA-2)
- If no switch is active (S1 or S2), the panic device act as a passthrough device.
- If S1 is active, the panic device send a
Note Off
message for each note (from 0 to 127). It take several seconds to complete. - If S2 is active, the panic devise send a
All Sounds Off
message. Some old sound generators may not understand this mesage but it take less than 10ms to complete. - S3 prevents unintentional actions on S1 or S2.
- If S4 is active (connect to ground), the Panic device use the
Running Status
to shortenNote Off
messages. It as no effect with theAll sounds Off
message.