Hi,
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.
How to get the length of a sample in buffer~ (in samples) ??
Re: How to get the length of a sample in buffer~ (in samples) ??
info~ gives you the time in ms.
and the sample rate
---> all you need to calculate the length in samples
Robert
and the sample rate
---> all you need to calculate the length in samples
Robert
Re: How to get the length of a sample in buffer~ (in samples) ??
use info~ to get length in ms.
then mstosamps~ to automatically get the length in samples, according to your project sample rate.
f.e
then mstosamps~ to automatically get the length in samples, according to your project sample rate.
f.e
Re: How to get the length of a sample in buffer~ (in samples) ??
Done n' done!
Thx!!
Thx!!
Re: How to get the length of a sample in buffer~ (in samples) ??
I realise when you're stuck you want to get things resolved as quickly as possible, but could you please not cross post as a matter of course? This one was correctly posted in the MaxMSP forum, and now 4 different people in 2 different threads have spent time helping you.
Thanks
-A
Thanks
-A
Re: How to get the length of a sample in buffer~ (in samples) ??
Of course ... I actually was not dreaming of such quick responses on anything really ... My bad.pukunui wrote:I realise when you're stuck you want to get things resolved as quickly as possible, but could you please not cross post as a matter of course? This one was correctly posted in the MaxMSP forum, and now 4 different people in 2 different threads have spent time helping you.
Thanks
-A
Yet thanks ,)
P.