How to retrieve the length of a loaded sample?

Dec 12, 2012 at 9:47pm

How to retrieve the length of a loaded sample?

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.

Dec 12, 2012 at 10:05pm

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

Dec 12, 2012 at 10:06pm
– Pasted Max Patch, click to expand. –
Dec 13, 2012 at 8:13am

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…

Dec 13, 2012 at 9:36am

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?


You must be logged in to reply to this topic.