Help Needed with Multiple Audio files patch.

    Apr 26 2014 | 5:57 pm
    Hi all,
    I'm a bit of a newcomer when it comes to Max. I've only ever used it to programme mxj objects before.
    I'm trying to create a patch that loads in 3 audio files, plays them all simultaneously and allows the user to switch between the 3 - allowing a direct comparison.
    I've got my sfplay~ set up and that's all working as I've attached an open message to check.
    So far I've got folder set up to take the files from any folder dragged into dropfile. Folder's then put into umenu and this does indeed display the wav files that are dropped in.
    I've additionally got an sflist~ but I've no idea how to connect it to the audio files in umenu to make it work!
    Am I going about it in the right way, or is there a simpler way? How's best to get sflist~ and umenu talking and thus the respective audio files playing simultaneously?
    Any help would be greatly appreciated.

    • Apr 27 2014 | 1:45 pm
      Anyone? :(
      I'm really rather stuck with this :(
    • Apr 27 2014 | 2:13 pm
      you'd rather have 3 sfplay~ running at the same time, of which 2 have their volume down, only 1 can be heard, than using sflist~ ; sflist~ does not really suit well what you want
    • Apr 27 2014 | 2:16 pm
      Thanks for your reply, Vichug. I'd started with sflist~ as umenu presents a nice way of switching between files but I guess I'd glazed over the easier route!
      I'll give it a go and bump this thread if I run in to any further problems.
      Many thanks :)
      P.s. would you happen to know a way to be able to load files in to the 3 respective sfplay~ objects at the same time? Or will it just have to be a one by one job?
    • Apr 27 2014 | 7:22 pm
      ye, let me try !
    • Apr 27 2014 | 9:23 pm
      Thanks Vichug, that works a treat. I'll incorporate it in to my patch.
      Attached is my latest version of the patch.
      I've got a simple select object set up so that it automates the levels of each sfplay depending on which umenu item is chosen and that works really well.
      I'm part way through adding another bit that automates the number of sfplay objects used depending on how many files are in the umenu which works to an extent but needs some refining with some logic.
      Thanks for your help :)
    • Apr 27 2014 | 10:02 pm
      hth :)