falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.55k stars 144 forks source link

Carla Configuration Files (Carla2.conf and CarlaPlugins5.conf specifically) #1868

Open SkettiSouls opened 3 months ago

SkettiSouls commented 3 months ago

Im working on a NixOS module in order to declare Carla configuration (planning to use QuantumCoded/patchwork in order to allow Carla to set stuff like "LastBPM" imperatively on top of the declared file) and have run into a few issues with the configuration files.

Firstly, it seems Carla ignores any paths specified in Carla2.conf if the path variable doesn't have a directory under ~/ set. For example if the "LADSPA" setting under "[Paths]" is set to the /nix/store path to a ladspa plugin, Carla doesn't add that directory, but if the same /nix/store path is set AFTER the path "/home/USER/.ladpsa" everything works fine. My current solution is to just force set the ".ladspa" directory before the user defined ladspa paths, but is there a way around this?

Secondly, I have some questions about the binary paths (I think?) I'm seeing every so often in the Carla configuration files. For example the "Geometry" setting under "[General]" in Carla2.conf and seemingly all of CarlaPlugins5.conf. Ideally I'd like to allow users of the module to declare their plugins rather than have to use the "Add Plugins" and "Refresh" menus every time, but I'm at a loss for how to declare these large strings. Is there an alternative I can use?

Thanks in advance :)