Rythm detection with accelerometers

Mayou's icon

Hello,

I would like to have your opinion about rythm detection : repetitive movements with sensors (accelerometers).

I would like to link the movement rythm detection with the phase vocoder to change a music file tempo. I am ok with the phase vocoder but I would like to have some help on rythme detection.

Maybe you already know some patches on the subject ?

I am thinking about these steps :
- giving some hits with the sensor at a specified rythm
- recording the time events in a coll object
- maybe averaging a set of detections
- linking the real time rythm detection to the tempo provided by a phase vocoder (ok)

Any ideas ?

Thanks in advance,

Mathieu

Mayou's icon

In fact I just want to know how I could do this thing :

Clicking on a bang object at a specified speed and then modifying a number box which represent the rythm of the events (bang clicking)

brendan mccloskey's icon

search this forum for 'tap tempo'; look at the helpfiles for global transport and timer

seejayjames's icon

yep, timer helpfile, grab (say) 4 bang durations into [accum], divide by 4, there's a good average to start with.

Mayou's icon

Thanks a lot

brendan mccloskey's icon

here are two excellent examples of tap tempo, 1 with global transport the other without; i pulled them off the forum, so their operation is a little unclear; to me anyway

Max Patch
Copy patch and select New From Clipboard in Max.

without:

Max Patch
Copy patch and select New From Clipboard in Max.

with:

Mayou's icon

That's great ! Thank you !

I will see which one will work better with the phase vocoder.

I think that the second version is quite good.

Max Patch
Copy patch and select New From Clipboard in Max.

I found this version on the Internet :

But it is more a sequencer approach, you have to tap 4 times to set the tempo value.

Thanks a lot

Mathieu