<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Incepdion</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De:</b> Pd-list <pd-list-bounces@lists.iem.at> em nome de Christof Ressi <christof.ressi@gmx.at><br>
<b>Enviado:</b> domingo, 20 de janeiro de 2019 10:25<br>
<b>Para:</b> Miller Puckette; Pd-List<br>
<b>Assunto:</b> Re: [PD] loading Camomile plug-ins using vstplugin~</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Sorry, I got confused! you were (obviously) talking about loading the Camomile plugin inside Pd with [vstplugin~]. And yeah, this probably won't work for reason you've mentioned.<br>
When I announced [vstplugin~] people immediately came up with this idea but they were joking (I hope!)<br>
<br>
> > Perhaps there's a way vstplugin~ could load the VST in such a way as to have<br>
> > it only make calls back into vstplugin~ but not into Pd?<br>
<br>
there's not much I can do in [vstplugin~], VST plugins are basically a black box. Maybe [vstplugin~] + Camomile works if the Pd app is compiled with PDINSTANCE? But again, I don't see why anyone would want to do this instead of just loading the patch as an
 abstraction?<br>
<br>
Christof<br>
<br>
> Gesendet: Sonntag, 20. Januar 2019 um 11:12 Uhr<br>
> Von: "Christof Ressi" <christof.ressi@gmx.at><br>
> An: "Miller Puckette" <msp@ucsd.edu><br>
> Cc: pd-list@iem.at<br>
> Betreff: Re: [PD] loading Camomile plug-ins using vstplugin~<br>
><br>
> Hi Miller, I'm the developer of [vstplugin~].<br>
> <br>
> > Anyhow, who would ever want to do this? <br>
> <br>
> I hope nobody :-) the idea of hosting VST plugins inside a Pd patch which itself is used as a VST plugin sounds pretty absurd to me. Every decent DAW lets you connect VST plugins freely in FX chains, so I don't see any reason for opening VST plugins within
 other VST plugins.<br>
> <br>
> I've also heard the joke about using [vstplugin~] + Camomile to host Pd inside Pd (to go "full circle") - which I think should actually work, but I wouldn't recommend it either :-).<br>
> <br>
> Christof<br>
> <br>
> > Gesendet: Sonntag, 20. Januar 2019 um 02:52 Uhr<br>
> > Von: "Miller Puckette" <msp@ucsd.edu><br>
> > An: pd-list@iem.at<br>
> > Betreff: [PD] loading Camomile plug-ins using vstplugin~<br>
> ><br>
> > To Pd list -<br>
> > <br>
> > In case anyone else thought they could use vstplugin~ (By Hannes, available<br>
> > from <a href="https://git.iem.at/pd/vstplugin">https://git.iem.at/pd/vstplugin</a>) to load Camomile
<br>
> > (<a href="https://github.com/pierreguillot/Camomile">https://github.com/pierreguillot/Camomile</a>) -<br>
> > <br>
> > I don't think it works.  Unless I'm misreading things, once Camomile calls<br>
> > pd_init(), that call doesn't go to the pd_init that's compiled into<br>
> > Camomile (via libpd) but instead calls pd_init from the Pd that called<br>
> > vstplugin~ that called Camomile.  This does nothing, and the next thing libpd<br>
> > tries to access in the Pd instance fails.<br>
> > <br>
> > Here, Pure Data itself (the calling program) is compiled single-thread, and<br>
> > libpd is compiled multi-thread; this means data structures in the two are<br>
> > different so they can't call back and forth; anything in libpd had better<br>
> > refer to its own version of things and not the calling program's.<br>
> > <br>
> > Perhaps there's a way vstplugin~ could load the VST in such a way as to have<br>
> > it only make calls back into vstplugin~ but not into Pd?  It's all a bit<br>
> > confusing to me.  Anyhow, who would ever want to do this?  (Except actually<br>
> > for complicated reasons I would :)<br>
> > <br>
> > Miller<br>
> > <br>
> > <br>
> > <br>
> > _______________________________________________<br>
> > Pd-list@lists.iem.at mailing list<br>
> > UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list">
https://lists.puredata.info/listinfo/pd-list</a><br>
> > <br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> Pd-list@lists.iem.at mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list">
https://lists.puredata.info/listinfo/pd-list</a><br>
> <br>
<br>
<br>
<br>
_______________________________________________<br>
Pd-list@lists.iem.at mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list">
https://lists.puredata.info/listinfo/pd-list</a><br>
</div>
</span></font></div>
</div>
</body>
</html>