<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Thomas, <div><br></div><div>For multi-instance midi and message hooks, you can have a look at this part of Camomile:</div><div><a href="https://github.com/pierreguillot/Camomile/blob/master/Source/Pd/x_libpd_multi.h">https://github.com/pierreguillot/Camomile/blob/master/Source/Pd/x_libpd_multi.h</a><br></div><div><a href="https://github.com/pierreguillot/Camomile/blob/master/Source/Pd/x_libpd_multi.c">https://github.com/pierreguillot/Camomile/blob/master/Source/Pd/x_libpd_multi.c</a><br></div><div>This doesn't require any change to Pd.</div><div>Cheers,</div><div><br></div><div>Pierre</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">Le mar. 6 nov. 2018 à 23:10, Thomas Mayer <<a href="mailto:thomas@residuum.org">thomas@residuum.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have taken up my work on my FLOSS projects again, and I am currently<br>
working on multiinstance support in libpd for the C# wrapper. The work<br>
is going quite well, only two things are bothering me:<br>
<br>
- I do not use the main instance (pd_maininstance in the Pd source<br>
code), because not using it makes the wrapper easier to maintain. What<br>
are possible negative side effects of that?<br>
<br>
- As far as I can see, MIDI and messaging hooks are not associated with<br>
a Pd instance, and especially not decoupled. Is there a way to set hooks<br>
to instances, and hook up to the same symbol in different instances? How<br>
would that be possible in libpd code? What are changes in Pd itself, if<br>
necessary?<br>
<br>
Thanks,<br>
Thomas<br>
-- <br>
"As long as people kept worrying that the machines were taking over,<br>
they wouldn't notice what was really happening. Which was that the<br>
programmers were taking over." (Robert Anton Wilson - The Homing Pidgeons)<br>
<a href="http://www.residuum.org/" rel="noreferrer" target="_blank">http://www.residuum.org/</a><br>
<br>
<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>
<a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a><br>
</blockquote></div>