plugdata icon indicating copy to clipboard operation
plugdata copied to clipboard

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

Open charlesneimog opened this issue 1 year ago • 6 comments

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.

charlesneimog avatar Jun 17 '24 12:06 charlesneimog

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

timothyschoen avatar Jun 17 '24 12:06 timothyschoen

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.

charlesneimog avatar Jun 17 '24 12:06 charlesneimog

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

timothyschoen avatar Jun 17 '24 13:06 timothyschoen

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.

charlesneimog avatar Jun 17 '24 13:06 charlesneimog

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 avatar Jun 26 '24 17:06 porres

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 :)

porres avatar Jun 26 '24 17:06 porres