Loadbang to trigger "read" message (novice question)

technopoem's icon

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!

brendan mccloskey's icon

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

Brendan

ShelLuser's icon

And another possible solution could be the trigger object.

Rick's icon

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

technopoem's icon

Great!

Thanks!!!