/tothebeat

"Beatmatch" tempo to a heart rate monitor. (Recurse)

Primary LanguageMax

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.

Usage

Without a heart rate monitor

You don't need a heart rate monitor to play around with the Max patch. See the following gif:

2024-05-05 01 19 39

With a heart rate monitor

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.