Length of recording

bogh's icon

I am just getting back into Max/MSP after many years, and I'm working on a small sampler project.
I'm recording a live input using the record~ object, storing it in the buffer~.
My buffer has a total length of 10,000 ms, but I need to know know long my actual recording is.
Can someone help me with an idea about how to get the length of the recording - either in samples or miliseconds?
Thanks!

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

[timer]? Not sure how precise this Max object is (as I assume it's scheduler dependent, as opposed to signal-based objects); try this:

bogh's icon

That's exactly what I was looking for.
This is plenty precise for my needs.
Thanks!