Browse Source

Really fix carla-single

tags/v2.1-rc1
falkTX 5 years ago
parent
commit
026362b5a6
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      data/carla-single

+ 6
- 4
data/carla-single View File

@@ -49,7 +49,7 @@ Possible formats:
- dssi
- lv2
- vst|vst2
- gig
- vst3
- sf2
- sfz

@@ -96,7 +96,7 @@ if len(sys.argv) == arg:
# --------------------------------------------------------------------------------------------------------
# Set format

if sys.argv[arg] in ("internal", "ladspa", "dssi", "lv2", "vst", "vst2", "vst3", "au", "gig", "sf2", "sfz"):
if sys.argv[arg] in ("internal", "ladspa", "dssi", "lv2", "vst", "vst2", "vst3", "au", "sf2", "sfz"):
FORMAT = sys.argv[arg]
arg += 1

@@ -143,7 +143,7 @@ if len(sys.argv) > arg:
# Set uniqueId (optional)

if len(sys.argv) > arg:
if FORMAT in ("internal", "dssi", "lv2", "au", "gig", "sf2", "sfz"):
if FORMAT in ("internal", "dssi", "lv2", "au", "sf2", "sfz"):
print("uniqueId is not used in this format, ignored")
else:
try:
@@ -192,7 +192,7 @@ if ARCH not in ("native", "posix32", "posix64", "win32", "win64"):
print("Invalid arch")
sys.exit(1)

if FORMAT not in ("internal", "ladspa", "dssi", "lv2", "vst2", "gig", "sf2", "sfz"):
if FORMAT not in ("internal", "ladspa", "dssi", "lv2", "vst2", "vst3", "au", "sf2", "sfz"):
print("Invalid format")
sys.exit(1)

@@ -207,6 +207,7 @@ LADSPA_PATH = os.getenv("LADSPA_PATH")
DSSI_PATH = os.getenv("DSSI_PATH")
LV2_PATH = os.getenv("LV2_PATH")
VST2_PATH = os.getenv("VST_PATH")
VST3_PATH = os.getenv("VST3_PATH")
SF2_PATH = os.getenv("SF2_PATH")
SFZ_PATH = os.getenv("SFZ_PATH")

@@ -214,6 +215,7 @@ if LADSPA_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_LADSPA"] = LAD
if DSSI_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_DSSI"] = DSSI_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 VST3_PATH is not None: os.environ["ENGINE_OPTION_PLUGIN_PATH_VST3"] = VST3_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



Loading…
Cancel
Save