3 ms·
Yup, there’s a stand-alone piece of software called Waveclock which can do that: https://wavesum.net/waveclock-audio-to-midi-clock.html https://wavesum.net/wave
by tomduncalf 5y ago
Yup, there’s a stand-alone piece of software called Waveclock which can do that: https://wavesum.net/waveclock-audio-to-midi-clock.html https://wavesum.net/waveclock-audio-to-midi-clock.html.
This will output midi clock messages, so you’d need to find a way to convert these to trigger whatever you want to trigger. There’s probably software to do this, or you could write your own.
You’ll want to create a “loopback” or “virtual” MIDI cable so your software can receive the MIDI messages from Waveclock (on Mac you can use the built in IAC Bus feature for this, on Windows I think you’ll need a driver, or you might be able to directly create a midi input in your code depending on the library), then it should be a fairly simple case of responding to MIDI clock messages (there are usually 24 clock messages per beat, so you’ll want to only respond to every 1 in 24).
There are libraries for pretty much every language to make working with MIDI easier - JS supports WebMIDI (and there are npm libs to make working with it easier), JUCE is a good C++ framework for this kind of thing, and for Swift you can try AudioKit.
For the musicians out there, Ableton Live 11 can also follow the tempo of live music and sync your set to it.