logsol / Pd-Pulp

Run pure-data inside VST host applications
http://pd-pulp.net
154 stars 12 forks source link

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

Open ghost opened 8 years ago

ghost commented 8 years ago

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?

logsol commented 8 years ago

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.

x37v commented 8 years ago

@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.