Loading a file into a buffer from an encapsulated folder
Hello I have been trying to find an answer all morning. Is there a message I can send with the file path so I don't have to have all the audio files out of folders. I have seen patchers where people are using 'thispatcher' object, but when I try to use their patches it doesn't seem to work for me (maybe I'm using it wrong). Also I can't figure out how these patchers are supposed to be working. Another forum suggested something like 'read C:folderfile.wav' message but that didn't work for me either.
Just to be clear my patch is in a folder containing all the audio files, but I just have sub folders to keep them organised as there is lots of them. I want to load them automatically with some sort of message when I open the patch. It seems like it should be very straight forward but I can't find an answer.
If you send path message to thispatcher, it outputs
absolute path to itself to right outlet.
Just combine that with the name of the folder or folder/subfolder
and use it , for example for folder named Audio1 insert :
sprintf symout %sAudio1
But you are not telling what you do with that folder path to load the samples
umenu autopopulate ? something else ?
How about checking polybuffer~ and readfolder message ?
Ahh thank you that is all I needed to know! I can't believe it's as simple as using the absolute path file. Completely my fault for not joining the dots. Yes that is perfect anyways thank you for spelling it out for me!
these "path" releated things are often difficult while you program.
to check if a method you tried works or not, close everything including the main patcher and then reopen everything.
same goes for many things releated to networking and for [active].