I have a large number of audio files named 1.wav, 2.wav, 3.wav, etc... and I am sending the message:
"open $1.wav, 1"
to an [sfplay~] object. The $1 is being replaced by an int. This is working very well.
What I'd like to do is put this large number of audio files (100 or so) into a subfolder, to make my patcher folder a little bit neater.
So, the Max patch would be in a folder called something like "MyMaxPatch" and the audio files would be in "MyMaxPatch/MyAudioSubFolder".
Can someone tell me what message I should send to [sfplay~] that is similar to the one above where the audio files are all in a subfolder.
Here is the message I tried, but it did not work
"open ./MyAudioSubFolder/$1.wav, 1"
If possible, I'd like to use a relative path, in case I move the folder to another machine.
Any help would be greatly appreciated,