How to retrieve the length of a loaded sample?

    Dec 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.

    • Dec 12 2012 | 10:05 pm
      You'd use the info~ object, as described in MSP tutorial 14.
    • Dec 12 2012 | 10:06 pm
    • Dec 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...
    • Dec 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?