Handle clap as format in carla-single script

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-10-22 15:35:48 +01:00
parent 0132f1ae47
commit de6833ab60
No known key found for this signature in database
GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 5 additions and 2 deletions

View File

@ -50,6 +50,7 @@ Possible formats:
- lv2 - lv2
- vst|vst2 - vst|vst2
- vst3 - vst3
- clap
- jsfx - jsfx
- sf2 - sf2
- sfz - sfz
@ -98,7 +99,7 @@ if len(sys.argv) == arg:
# -------------------------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------------------------
# Set format # Set format
if sys.argv[arg] in ("internal", "ladspa", "dssi", "lv2", "vst", "vst2", "vst3", "au", "jsfx", "sf2", "sfz"): if sys.argv[arg] in ("internal", "ladspa", "dssi", "lv2", "vst", "vst2", "vst3", "au", "clap", "jsfx", "sf2", "sfz"):
FORMAT = sys.argv[arg] FORMAT = sys.argv[arg]
arg += 1 arg += 1
@ -194,7 +195,7 @@ if ARCH not in ("native", "posix32", "posix64", "win32", "win64"):
print("Invalid arch") print("Invalid arch")
sys.exit(1) sys.exit(1)
if FORMAT not in ("internal", "ladspa", "dssi", "lv2", "vst2", "vst3", "au", "jsfx", "sf2", "sfz"): if FORMAT not in ("internal", "ladspa", "dssi", "lv2", "vst2", "vst3", "au", "clap", "jsfx", "sf2", "sfz"):
print("Invalid format") print("Invalid format")
sys.exit(1) sys.exit(1)
@ -210,6 +211,7 @@ DSSI_PATH = os.getenv("DSSI_PATH")
LV2_PATH = os.getenv("LV2_PATH") LV2_PATH = os.getenv("LV2_PATH")
VST2_PATH = os.getenv("VST_PATH") VST2_PATH = os.getenv("VST_PATH")
VST3_PATH = os.getenv("VST3_PATH") VST3_PATH = os.getenv("VST3_PATH")
CLAP_PATH = os.getenv("CLAP_PATH")
SF2_PATH = os.getenv("SF2_PATH") SF2_PATH = os.getenv("SF2_PATH")
SFZ_PATH = os.getenv("SFZ_PATH") SFZ_PATH = os.getenv("SFZ_PATH")
@ -218,6 +220,7 @@ if DSSI_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_DSSI"] = DSS
if LV2_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_LV2"] = LV2_PATH if LV2_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_LV2"] = LV2_PATH
if VST2_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_VST2"] = VST2_PATH if VST2_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_VST2"] = VST2_PATH
if VST3_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_VST3"] = VST3_PATH if VST3_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_VST3"] = VST3_PATH
if CLAP_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_CLAP"] = CLAP_PATH
if SF2_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_SF2"] = SF2_PATH if SF2_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_SF2"] = SF2_PATH
if SFZ_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_SFZ"] = SFZ_PATH if SFZ_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_SFZ"] = SFZ_PATH