plugdata-team / plugdata

Pure Data as a plugin, with a new GUI
https://plugdata.org
GNU General Public License v3.0
1.43k stars 62 forks source link

Add `#X declare -lib/-path` when using else/cyclone or others #1641

Open charlesneimog opened 2 months ago

charlesneimog commented 2 months ago

Hello,

Guys, I was talking about purr-data, pd-extended, etc, and one of the errors related to these software (we conclude) is that they embed externals, so if you try to open, in Pd Vanilla, patches developed in these environments, we will have errors related externals missing without knowing the externals or libraries.

One way to work between environments is to add the #X declare -lib/-path in the Patch. Note that I am not talking about the object #X obj declare but the canvas method declare.

What do you think about it?

Obs.: I will ask if Pure-Data devs can add some error when path or library is not found for the declare object.

timothyschoen commented 2 months ago

Not a bad idea, though I wonder what will happen if ELSE or cyclone is not installed? Will Pd-vanilla complain?

charlesneimog commented 2 months ago

For now no, but I believe that we can ask people of Pd to add it. I will implement this in one PR then I believe I can be more persuasive hehehe.

timothyschoen commented 2 months ago

Oh, I thought the opposite, no warning would be good. You'd already get a warning if it can't find the object after all

charlesneimog commented 2 months ago

Hmmm, it's true! And with deken and Ctrl you can find the library. So just the #X declare maybe could solve.

The problem is that sometimes we want to automate things that the user should take care of.

porres commented 1 month ago

What do you think about it?

I think it's a bad/terrible idea to have this without the actual [declare] object

And lets us not be influenced by dead software :) or a software that tried to revive a dead software and seems to be dying as well... let them work that out on their own

porres commented 1 month ago

Obs.: I will ask if Pure-Data devs can add some error when path or library is not found for the declare object.

I already asked for it, see https://github.com/pure-data/pure-data/issues/281

oh boy, what a long discussion...

I have to read it through again, but go ahead and have fun as well :) I remember IOhannes didn't like much the idea, maybe you can back me up :)