This project beatmatches techno music (generated by Max) to a heartbeat (captured by a wearable heart rate monitor).
serve_hr.py
connects to a heart rate monitor and streams heart rate data over OSC. The Max patch collects that data through OSC to update a metronome's BPM.
This project was created at Recurse Center in March 2024.
You don't need a heart rate monitor to play around with the Max patch. See the following gif:
In short, run python3 serve_hr.py
, then run the Max patch.
This script should work with any wearable/Bluetooth Low Energy device that transmits Heart Rate Measurement data. The device originally used to create this script can be found here, but a cheaper one should work fine.
To identify the device's name, use a tool such as Bluetility. Once identified, replace DEVICE_NAME
in the serve_hr.py
script with the correct name.