plugdata-team / plugdata

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

The way plugdata-plugin saves a patch in a host session #758

Closed jyg closed 8 months ago

jyg commented 1 year ago

This is not a bug report, but the documentation may report this behaviour so that everybody should be aware of it. (Tested with Reaper, linux)

Modifying a patch from host

-create a DAW session with plugdata fx

Now :

If you want your original patch to be explicitly saved once you edited it in the DAW, you have to explicitly save it from plugdata menu. Anyway, the plugdata console says explicitly where the patch is saved. _/tmp/mypatch.pd means locally.

I suppose that any other opened fx-instances of patch are not refreshed nor updated, in the same way you could run several instances of puredata program with the same patch. ( I assume this but didn't check it.)

Modifying a patch from standalone

timothyschoen commented 1 year ago

I think the problem is that we store the patch inside the DAW project instead of just having it be a file link. Maybe we should have a setting, load patches from files or load patches from state?

Alternatively, we could do this:

I think there's no ideal solution here unfortunately... But this could help

jyg commented 1 year ago

Maybe we should have a setting, load patches from files or load patches from state?

I think this would be a great option, because both can have their utility, depending on use case. For example, DAW state can simplify state saving of, say, a same synth-patch but with various presets.

camomile has a "refresh button", on a "per effect" approach. On the other hand, an option to open patches from file location makes it easier to update a DAW session when you are developping a patch.

  • By default, open patches from file location instead from DAW state

  • If the file was moved/doesn't exist anymore, ask the user to locate it manually, or load from state

  • (we store the patch to DAW state as well, as a kind of backup)

  • If you close the DAW without saving the patch to a file, it should also automatically load from state

+1

timothyschoen commented 8 months ago

I've found a way to make sure the patch will find abstractions/resources, while not actually loading the file from disk.

So that should mean you no longer need to save the patch to file, it can just load it directly out of your DAW project :)