<div dir="ltr">Working like a charm now, thanks Miller!<div><br></div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 9, 2021 at 3:39 PM Iain Duncan <<a href="mailto:iainduncanlists@gmail.com">iainduncanlists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Perfect! That one's much more comprehensible for my less-than-stellar C chops.  :-)<div><br></div><div>thanks!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 9, 2021 at 3:36 PM Miller Puckette <<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Exactly.<br>
<br>
I now see that there's a better example in the binbuf_read_via_canvas()<br>
function in m_binbuf.c<br>
<br>
cheers<br>
M<br>
<br>
On Wed, Jun 09, 2021 at 03:31:17PM -0700, Iain Duncan wrote:<br>
> Ah got it, presumably I get what I'm looking for in char *dirresult?<br>
> <br>
> assumption taken from:<br>
> EXTERN int open_via_path(const char *dir, const char *name, const char *ext,<br>
>     char *dirresult, char **nameresult, unsigned int size, int bin);<br>
> <br>
> thanks again!<br>
> <br>
> On Wed, Jun 9, 2021 at 3:28 PM Miller Puckette <<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>> wrote:<br>
> <br>
> > Yeah... open_via_path and scoop up the full path it reports back - then<br>
> > close the file and let s7 reopen it :)<br>
> ><br>
> > M<br>
> > On Wed, Jun 09, 2021 at 03:26:35PM -0700, Iain Duncan wrote:<br>
> > > Thanks Miller. Looking at that example, this seems to be a way to open<br>
> > and<br>
> > > read in the whole file into C, which I could do, but the path of least<br>
> > > resistance for me so far has been to pass the actual loading to s7. Is<br>
> > > there a way to just get the full path for a file found from the Pd<br>
> > > filepath? (if not, I suppose I'll read the file in and the eval_string on<br>
> > > it or something...)<br>
> > ><br>
> > > thanks!<br>
> > > iain<br>
> > ><br>
> > ><br>
> > > On Wed, Jun 9, 2021 at 3:13 PM Miller Puckette <<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>> wrote:<br>
> > ><br>
> > > > open_via_path() should do it.  See for instance open_soundfile() in<br>
> > > > d_soundfile.c<br>
> > > ><br>
> > > > cheers<br>
> > > > M<br>
> > > ><br>
> > > > On Wed, Jun 09, 2021 at 02:57:16PM -0700, Iain Duncan wrote:<br>
> > > > > Hi folks, I tried to google this, but of course am swamped with<br>
> > results<br>
> > > > on<br>
> > > > > how to load things in the patcher instead of what I'm looking for.<br>
> > Can<br>
> > > > > anyone point me at how to use the filepath to load files in an<br>
> > external?<br>
> > > > In<br>
> > > > > Max I have s4m find the fullpath for the bootstrap files and then<br>
> > load<br>
> > > > them<br>
> > > > > up through s7s native load function with the fullpath. If anyone has<br>
> > an<br>
> > > > > example of something similar for Pd, that would be lovely!<br>
> > > > ><br>
> > > > > thanks<br>
> > > ><br>
> > > > > _______________________________________________<br>
> > > > > Pd-dev mailing list<br>
> > > > > <a href="mailto:Pd-dev@lists.iem.at" target="_blank">Pd-dev@lists.iem.at</a><br>
> > > > ><br>
> > > ><br>
> > <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Ddev&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=39U4MIEK2DpJZblMb2hW4LrL86NA-Fm7lh9jTc1PtDw&s=uthX9eWCbvFepVl85UPukc4ORK0FbfTxuf-LSSYwmD0&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.puredata.info_listinfo_pd-2Ddev&d=DwICAg&c=-35OiAkTchMrZOngvJPOeA&r=XprZV3Fxus2L1LCw80hE4Q&m=39U4MIEK2DpJZblMb2hW4LrL86NA-Fm7lh9jTc1PtDw&s=uthX9eWCbvFepVl85UPukc4ORK0FbfTxuf-LSSYwmD0&e=</a><br>
> > > ><br>
> > > ><br>
> > > > --<br>
> > > ><br>
> ><br>
> > --<br>
> ><br>
<br>
-- <br>
</blockquote></div>
</blockquote></div>