How to get the length of a sample loaded in buffer~ (in samples) ??

Parametex's icon

Hello,

I can't seem to find a solution for getting information (the length in samples) of the audio file that is loaded into buffer.

Anybody in the know please help,!

Cheers,
P.

Antoine Villeret's icon

you should take a look at info~...

a.

kp*'s icon
Max Patch
Copy patch and select New From Clipboard in Max.

& translate:

Parametex's icon

Great, thank you very much!

I tried that once but got some weird float result ?!?

Thanks,
P.