Playback of Heartbeat at Different BPM
Hello!
I am doing a project where I need to change the bpm of a recorded heartbeat and play it back at specific rates.
I have been looking into beat~ and bonk~ for bpm detection, and I am wondering if I can use these to set a specific bpm playback rate? Or if there is another object I might need for playback?
Basic goal would be to record a heartbeat, and play back that loop at different rates, so for example it starts off at 80 bpm, and I can play it back at 150 bpm, 20 bpm, 400 bpm etc.
I'm somewhat of a newbie so any pointers would be greatly appreciated!
Edit: This pdf has shown me how to create beats from scratch at specific bpm, now just wondering if I can play back a recorded audio at different bpm.
http://www.gamessound.com/lessons/max06.pdf
Would it be possible to alter the "speed" input of free_elastic to playback different bpm?
I would do what the game sound people do; try to atomize the sound as much as possible.
get a heartbeat sound that can be split up into the two "ba-bump" parts and trigger them after each other.
then you don't need time stretching, you don't need fancy granular anythings, just two sfplay~ objects and a tiny sequencer that bangs away.
There are many timestretch/time compress algorithms in DAW/VST land that do not cause pitchshift. Surely there is an object like that?
Thank you! I will look into both of those.