<div dir="ltr">it's an abstraction that contains [readsf~], so I'm sending it an open message with the name of the sound file, hoping it finds from the declared paths.<br><br>so, I'm using [declare -path ../] to load the path relative to the patch's path.<div><br></div><div>that is "/Users/porres/Desktop/pdreverb/05dattorro/../" by the way, and it shows up as one of the search paths when using  "verbose on".<br><br>So, when I open my abstraction, I can see the declared path as one of the places it searched until it found my abstraction.</div><div><br></div><div>Now, when trying to open a sound file from within that abstraction, it can't find the wave file I'm looking for, and if I check the verbose print I can also see that it didn't look for the path I had declared.<br><br>Here's a full print<br><br><div><u><i>tried /Users/porres/Documents/Pd/externals/else/piano.wav and failed</i></u></div><div><u><i>tried /Users/porres/Documents/Pd/externals/piano.wav and failed</i></u></div><div><u><i>tried /Users/porres/Documents/Pd/externals/cyclone/piano.wav and failed</i></u></div><div><u><i>tried /Users/porres/Documents/Pd/externals/else/piano.wav and failed</i></u></div><div><u><i>tried /Users/porres/Documents/Pd/externals/soundhack/piano.wav and failed</i></u></div><div><u><i>tried /Users/porres/Documents/Pd/sounds/piano.wav and failed</i></u></div><div><u><i>tried /Users/porres/Library/Pd/piano.wav and failed</i></u></div><div><u><i>tried /Library/Pd/piano.wav and failed</i></u></div><div><u><i>tried /Applications/Pd-0.48-0.app/Contents/Resources/Scripts/../extra/piano.wav and failed</i></u></div><div><u><i>tried /Applications/Pd-0.48-0.app/Contents/Resources/Scripts/../doc/5.reference/piano.wav and failed</i></u></div><br><br></div><div>Now, if I try to laod inside my abstraction a pd patch (that is, another abstraction) that's inside the declared path, it can look for it and find it there. I tried loading a file named "fm.pd", it works, and here's what I got.<br><br><i><u>tried /Users/porres/Desktop/pdreverb/05dattorro/../fm.pd and succeeded</u></i><br><br> just like that, it succeeded in the first attempt!</div><div><br></div><div>So, this all makes me believe that the declared paths relative to the patch are not, somehow, listed as search paths for other things like sound files, or maybe that's a problem with [readsf~]?<br><br>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-14 14:10 GMT-03:00 Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'd suggest turning on "verbose" andwatching it search for the file.  When<br>
you use relative names for files loaded from abstractions, the "relativity"<br>
can be from where the abstraction is found, or from the calling patch, depending<br>
on where the declare object is.  It can get very confusing!<br>
<br>
cheers<br>
Miller<br>
<div><div class="h5"><br>
On Sat, Oct 14, 2017 at 06:59:58PM +0200, IOhannes m zmölnig wrote:<br>
> On 10/14/2017 06:55 PM, Alexandre Torres Porres wrote:<br>
> > People, were you ever able to use [declare] to load paths relative to the<br>
> > patch and then load things like sound files? I cannot seem to do this, see<br>
> > my newly opened issue.<br>
> ><br>
> > <a href="https://github.com/pure-data/pure-data/issues/234" rel="noreferrer" target="_blank">https://github.com/pure-data/<wbr>pure-data/issues/234</a><br>
> ><br>
><br>
><br>
> whether the search path is used for opening data files, depends on the<br>
> actual object.<br>
> so which object are you using to open soundfiles?<br>
><br>
> fgmadsr<br>
> IOhannes<br>
><br>
<br>
<br>
<br>
<br>
</div></div>> ______________________________<wbr>_________________<br>
> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
</blockquote></div><br></div>