@foone Now I'm imagining it as a MIDI device, and it reacts to any note event, but only when first sending a program change event for instrument 128 (Gunshot in General MIDI). Don't forget the classic MIDI Panic button in case a note "hangs" (might be problematic in fully automatic firearms).