Forums > MaxMSP

sfinfo~ for mp3?

October 1, 2013 | 3:41 pm

My question is simple, is there a way to open mp3 files with sfinfo? if not, then is there a way at least to know the sampling rate of an mp3 through max msp?

October 1, 2013 | 5:09 pm

the samplingrate of an mp3 … well, in theory it can differ from 441100, but in practice …

for the other info such as length … import it, write the buffer to a scratch file ("/maxmsp/current.aiff"), then get sfinfo~ of that.

October 1, 2013 | 5:13 pm

then an mp3 sampling rate is always 44.1kHz? Another question is, can I modify the sampling values of an mp3 and then rewrite it as an mp3 in max msp?

October 1, 2013 | 8:16 pm

in almost any case it is 44.1
i dont think you can encode in maxmsp, you can only import

March 28, 2015 | 8:50 am

I had the same problem with mp3 and sfinfo~ :
when you try to open a mp3 with sfinfo~ it gives an error message.
You can surround this :
open the mp3 directly into a named sfplay~ (name it with a "name info" message)
you’d access to the file infos using a "getnamed info" message to the sfinfo~

it works on windows and max 7.
hope it helps.

March 29, 2015 | 7:18 am

Made this abstraction sometime ago to fill a jit.cellblock with mp3 tags. Maybe I can find the whole patch if you’re interested.

– Pasted Max Patch, click to expand. –
Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP