[PD-dev] Multiinstance support in libpd

Pierre Guillot guillotpierre6 at gmail.com
Wed Nov 7 18:22:35 CET 2018


Hi Thomas,

For multi-instance midi and message hooks, you can have a look at this part
of Camomile:
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.c
This doesn't require any change to Pd.
Cheers,

Pierre

Le mar. 6 nov. 2018 à 23:10, Thomas Mayer <thomas at residuum.org> a écrit :

> Hi,
>
> I have taken up my work on my FLOSS projects again, and I am currently
> working on multiinstance support in libpd for the C# wrapper. The work
> is going quite well, only two things are bothering me:
>
> - I do not use the main instance (pd_maininstance in the Pd source
> code), because not using it makes the wrapper easier to maintain. What
> are possible negative side effects of that?
>
> - As far as I can see, MIDI and messaging hooks are not associated with
> a Pd instance, and especially not decoupled. Is there a way to set hooks
> to instances, and hook up to the same symbol in different instances? How
> would that be possible in libpd code? What are changes in Pd itself, if
> necessary?
>
> Thanks,
> Thomas
> --
> "As long as people kept worrying that the machines were taking over,
> they wouldn't notice what was really happening. Which was that the
> programmers were taking over." (Robert Anton Wilson - The Homing Pidgeons)
> http://www.residuum.org/
>
>
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20181107/074c2ecc/attachment.html>


More information about the Pd-dev mailing list