Forums > MaxMSP

Loadbang to trigger "read" message (novice question)

September 29, 2012 | 1:19 pm

Hello,

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~

Thanks!


September 29, 2012 | 2:16 pm

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

Brendan


September 29, 2012 | 3:04 pm

And another possible solution could be the trigger object.


September 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"]


September 29, 2012 | 11:06 pm

Great!

Thanks!!!


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