Use your crash cymbal as a midi controller!
In order to use this, you can put a drum trigger on your cymbal stand (rather than the cymbal itself), plug the drum trigger into your computer through an audio interface or something cheaper like this.
Then:
- Download JACK Audio and configure it to use your intended audio input
- Download Go
- Clone this repo and run
go mod tidy
- Run
go run jack-peak-meter.go
.
This is based off of an existing tool that shows a volume meter of an audio input https://github.com/gethiox/jack-peak-meter. Modifications were done in this PR to make the MIDI functionality work. The program uses a volume spike backoff algorithm, and has the outgoing MIDI functionality here and here.
Thank you @gethiox for the tool to build this on top of! I like the original README and it's staying here:
Welcome!
Well, it's not as ultimate as it could be but also it's not so bad so far.
ULTIMATE SOUND VISUALIZER 2,000,000
® uses JACK Audio Connection Kit as base sound system,
if you are using Ubuntu or another distribution with PulseAudio I have good news for you — You even don't need to
download this piece of script on your computer. I made it for myself as my first attempt into Go
programming language.
Code uses xthexder's go-jack library/bindings for JACK Audio Connection Kit.
./jack-peak-meter -title
go build jack-peak-meter.go