shell doesn't work in windows. there might be a similar object (although I didn't find it yet), or I can try any other kind of command.
but it would be nice to do it directly from Pd. I can do it already with wav files through wavinfo, but it's a bit exagerated to convert several Gbs of mp3 to wav, when I only need the information (I'm even not going to play them).

You can run that command with the shell object from extended.. can't you?

On Sat, Apr 4, 2015 at 7:21 PM, Joćo Pais <jmmmpais@gmail.com> wrote:
I couldn't find an answer for this, so I doubt there is one: I have 100s
of mp3 files, from which I needed to extract data - namely name, and
duration.
Would that be file name, or artist name?

yes, file name. although as a general idea it's interesting to get any field of the metadata.


As I can tell, there isn't any object that does this, e.g. like
[ext13/wavinfo] (hopefully I'm wrong).
Does anyone has an elegant solution for this?
On Linux I'd simply run the sox or soxi command from the command line:
soxi *.mp3
and save its output to a textfile.
Afaik sox is available for Windows as well, perhaps take a look at
http://sox.sourceforge.net/SoX

yes, I imagine there is no other choice with current pd objects. which is a pity, as mp3 support is far from ideal.

_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list