Forums > MaxMSP

How to retrieve the length of a loaded sample?

December 12, 2012 | 9:47 pm

If i load a sample into a buffer, how can i know it’s length? I see i can set a lot of stuff (lenght, samplerate) on the bufferobject, but not anything to get information from it.


December 12, 2012 | 10:05 pm

You’d use the info~ object, as described in MSP tutorial 14.


December 12, 2012 | 10:06 pm
– Pasted Max Patch, click to expand. –

December 13, 2012 | 8:13 am

Have you seen my reply to your other recent topic? The included patch makes use of the info~ object in order to obtain the total length of the buffer…

http://cycling74.com/forums/topic.php?id=44161


December 13, 2012 | 9:36 am

Ah, thanks. max/msp has been a while for me, i have to look up quite a lot and totally forgot about info~.

And i I hadnd’t seen your message at the time, Pedro, i wasn’t at a computer running max. Oh but wait, wasn’t there a website that could draw max patches?


Viewing 5 posts - 1 through 5 (of 5 total)