umenu file types : how to select only soundfiles

Feb 18, 2011 at 11:50am

umenu file types : how to select only soundfiles

The functionning of the file types filter in umenu is not quite clear.
Should we indicate the type to exclude or to include ?
What about populating the menu only with soundfiles ?
.wav, .aiff does not seem to work.
Thanks for your help

#55032
Feb 18, 2011 at 11:57am

The filetypes are WAVE, AIFF (4 letters).
It’s a bit more tricky wih mp3, you first need to adapt the max-fileformat.txt file (in the c74/init/ folder).

For instance, you can add a line like

max fileformat .mp3 "MP3 " 0 "MP3 audio file" audiofile;

and use “MP3 ” (with the quotes to keep the space) as an argument for the types message of umenu.

p

#198146
Feb 18, 2011 at 12:12pm

Great, thanks a lot

Writing WAVE, AIFF in the File Type edit box excludes all other types of files.

RC

#198147
Feb 18, 2011 at 12:29pm

De right outlet of the dropfile object reports file type; a useful tool in this context. AIFC is also an aiff file type.

#198148
Sep 4, 2012 at 8:52am

Definitely have a hard time with mp3. Yesterday I got it to work adding MPG3 (as shown from the right outlet of dropfile for some of my files) and “Mp3 ” in the filetypes but today it doesn’t work anymore… Also added the line given by Patrick at the end of the fileformat doc but I got the impression it was already included… I attach my fileformat doc. And here’s the patch I wanted to modify :

– Pasted Max Patch, click to expand. –
Attachments:
  1. maxfileformats.txt
#198149
Sep 4, 2012 at 1:48pm

Just noticed sfplay~ can’t read mp3… Was confused because yesterday I extended a working a patch designed to fill and use a playlist using [buffer~] and [groove~] to retrieve tags using [jit.qt.movie]. I’ll try with buffer~.

#198150
Nov 30, 2013 at 2:58pm

Thanks Pat! Worked for me just like you said. “Mp3 ” is already on the list, but as a moviefile for some reason. I also added my own custom file type, a save file for the application i’m working on which is really just a text file, with this line:

max fileformat .sic “SIC ” 0 “Sound Infused Comic file” textfile;

Now i’m wondering but assuming… these definitions will persist when the patch is turned into a standalone?

#274229

You must be logged in to reply to this topic.