Browse Source

added potential fix for reverb error

Jonathan Higgins 3 months ago
parent
commit
c844422547
2 changed files with 11 additions and 4 deletions
  1. 1 1
      scenes/main/process_help.json
  2. 10 3
      scenes/main/scripts/run_thread.gd

+ 1 - 1
scenes/main/process_help.json

@@ -3458,7 +3458,7 @@
 	"subcategory": "reverb",
 	"title": "Pitched Delay"
   },
-  "rmverb_": {
+  "rmverb": {
 	"category": "time",
 	"description": "This process produces a reverb effect, emulating the way sound bounces around an acoustic space. It has three modes, Small, Medium and Large that aim to emulate three different acoustic spaces.",
 	"inputtype": "[0]",

+ 10 - 3
scenes/main/scripts/run_thread.gd

@@ -1011,6 +1011,9 @@ func _get_slider_values_ordered(node: Node) -> Array:
 
 
 func make_process(node: Node, process_count: int, current_infile: Array, slider_data: Array) -> Array:
+	var args:= []
+	var command
+	
 	# Determine output extension: .wav or .ana based on the node's slot type
 	var extension = ".wav" if node.get_slot_type_right(0) == 0 else ".ana"
 
@@ -1019,9 +1022,13 @@ func make_process(node: Node, process_count: int, current_infile: Array, slider_
 
 	# Get the command name from metadata or default to node name
 	var command_name = str(node.get_meta("command"))
-	command_name = command_name.split("_", true, 1)
-	var command = "%s/%s" %[control_script.cdpprogs_location, command_name[0]]
-	var args = command_name[1].split("_", true, 1)
+	if command_name.find("_") != -1:
+		command_name = command_name.split("_", true, 1)
+		command = "%s/%s" %[control_script.cdpprogs_location, command_name[0]]
+		args = command_name[1].split("_", true, 1)
+	else:
+		command = "%s/%s" %[control_script.cdpprogs_location, command_name]
+		
 	if current_infile.size() > 0:
 		#check if input is empty, e.g. synthesis nodes, otherwise append input file to arguments
 		for file in current_infile: