Pd-Pulp icon indicating copy to clipboard operation
Pd-Pulp copied to clipboard

Only one instance of the plugin can be loaded in the host

Open ghost opened this issue 10 years ago • 2 comments

OK, I believe this is due to the fact, that Pd uses global namespace for it's internals. So, guys, what are your thoughts on the issue? Any ideas on workaround or something?

ghost avatar Aug 21 '15 12:08 ghost

This project partly emerged out of a collaboration with the JUCE people to get libpd running inside JUCE and as Fabian (from the JUCE team) states in this video, we are looking to find a reasonable solution not just some kind of hack. That of course requires people from the pure data and libpd communities to find a way to finally resolve this issue.

We actually want to make this issue more visible, because we hope to accelerate the process with more attention on this.

logsol avatar Aug 21 '15 13:08 logsol

@logsol its a hack but it works so far: https://github.com/x37v/pdlv2/blob/7f7335e3163cbedd84b50087993e1c0263fff480/src/plugin.cpp#L134

the radium project does the same thing: https://github.com/kmatheussen/libpd/blob/1f99d6b3328978b5db9c237f1ce5d0666c582d22/libpd_wrapper/m_libpd.c#L39

Clearly a multi instance supported libpd solution would be better but this could get you there in the mean time.

x37v avatar Mar 24 '16 18:03 x37v