Hi everyone
I started using the Cabbage framework from version 2.3 to create plugins.
One of these plugins requires loading wav files which I have implemented in a working way.
The plug in provides for saving presets as the factory examples
In version 2.3 the presets worked fine for me and the files loaded with the file path saved correctly.
In subsequent versions of cabbage I found problems in the behavior of the presets that I was unable to resolve. It seems that when you save a preset the file path is saved with the addition of the path where the csd file is located.
This causes the file to fail to load when the preset is recalled.
Starting from the “DiskinFilePlayer.csd” patch present in the factory examples, I added the save presets with name function and called it “presets_DirectoryFileError”
This patch explains very clearly the problem I encountered. Just load any wav file into the patch and save the preset with a name then try to reload the preset again.
You can see the path of the file saved in the preset at the top left.
Thanks in advance, hoping someone can help me.
presets_DirectoryFileError.csd (13.5 KB)