Hello
I am writing my own sample player as PD external.
Right now, when I load the audio samples into the object (using messages like "load path/to/file/a4.wav") I have to specify the full path of each sample.
Is there a C function that gives me the path of the containing patch?
Right now I have an additional messy patch that uses the getdir object and some "dirty tricks" to go around the issue, but there must be a much simpler way ...
If you want to have a look at the project, it's here:
https://github.com/nicolamontecchio/pd_sampleplayer
It has only been tested with mono samples, and I am still polishing much of the code, but it works well enough for me to attach a midi keyboard and play
Thanks!
Nicola