get value of BPM from waveform~

pb21's icon

Ive read the setbpm reference but cannot see how to see the actual bpm value of the waveform~.

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

I've got the setbpm object in there and clicking it the waveform changes from milliseconds to bars and ive looked at the rightmost bottom outlet which is where I believe the data gets spat out.
help would be appreciated I am sure its a simple thing but just cannot work it out

Ben Bracken's icon

If I understand what you are asking, you can use the attr_bpm attribute to set this.

-Ben

pb21's icon

When I crop the waveform even if slightly the bpm will change and the reference for waveworm says "waveform~ can also calculate a tempo that fits your current selection, via the setbpm message."

I would like to see that calculated BPM as a number , if its an attribute I guess I can see it in the inspector but how do I get to see that value in the application itself?

Ben Bracken's icon
Max Patch
Copy patch and select New From Clipboard in Max.

There are a lot of ways to get the value of an attribute, here are a few:

pb21's icon

there thats the bit that i couldnt find, ive looked in my cipriani books but that was too focused on sound, I couldnt find any max books and didnt know what to search for in the documentation to get the desired result.

Thank you Ben.