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
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
Great, thanks a lot
Writing WAVE, AIFF in the File Type edit box excludes all other types of files.
RC
De right outlet of the dropfile object reports file type; a useful tool in this context. AIFC is also an aiff file type.
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 :
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~.
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?