umenu file types : how to select only soundfiles

    Feb 18 2011 | 11:50 am
    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

    • Feb 18 2011 | 11:57 am
      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.
    • Feb 18 2011 | 12:12 pm
      Great, thanks a lot
      Writing WAVE, AIFF in the File Type edit box excludes all other types of files.
    • Feb 18 2011 | 12:29 pm
      De right outlet of the dropfile object reports file type; a useful tool in this context. AIFC is also an aiff file type.
    • Sep 04 2012 | 8:52 am
      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 :
    • Sep 04 2012 | 1:48 pm
      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 []. I'll try with buffer~.
    • Nov 30 2013 | 10:58 pm
      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?