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 <[email protected]> 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
> [email protected]
> https://lists.puredata.info/listinfo/pd-dev
>
_______________________________________________
Pd-dev mailing list
[email protected]
https://lists.puredata.info/listinfo/pd-dev

Reply via email to