sfinfo~ for mp3?
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?
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.
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?
in almost any case it is 44.1
i dont think you can encode in maxmsp, you can only import
Hi,
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.
Made this abstraction sometime ago to fill a jit.cellblock with mp3 tags. Maybe I can find the whole patch if you're interested.