Forums > MaxMSP

Loadbang to trigger "read" message (novice question)

Sep 29 2012 | 1:19 pm


I have a patch where I want to load multiple "buffer" objects with different audio files.
Every time I open the patch, I have to manually hit the "read" message loading the "buffer" object
and find the files manually inside of Finder on my mac. Is there a way I can trigger a "read" message with the location
of the audio files pre-programmed within the contents of the message by sending a loadbang to the message?

Here is the signal path of what I’m trying to do:

LOADBANG >>> "Read" message (with location of audio file stored inside of this message) >>> Buffer~


Sep 29 2012 | 2:16 pm

maybe try the [loadmess] object, if Max can ‘see’ the files (set in File Preferences) use [loadmess replace thisIsMyFile.aif]


Sep 29 2012 | 3:04 pm

And another possible solution could be the trigger object.

Sep 29 2012 | 3:16 pm

You can also specify the path without changing the file preferences, for example..
[loadmess read "your_hard_drive_name":/"the_folder_your_sound_is_in"/"sound_to_read_into_buffer.aif"]

Sep 29 2012 | 11:06 pm



Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP