zarox commited on
Commit
d6c1a9f
·
1 Parent(s): 34e5573
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -12,18 +12,18 @@ def process_audio(input_file,
12
  # Load the sound file
13
  sound = Fusion.loadSound(input_file)
14
  os.remove(os.path.abspath(input_file))
15
- effect_str = []
16
 
17
  # Apply effects based on user choices
18
  if effect_8d:
19
  sound = Fusion.effect8D(sound, pan_boundary, jump_percentage, time_l_to_r*1000, volume_multiplier)
20
- effect_str.append("8d")
21
  if effect_slowed:
22
  sound = Fusion.effectSlowed(sound, speed_multiplier)
23
- effect_str.append("Slowed")
24
  if effect_reverb:
25
  sound = Fusion.effectReverb(sound, room_size, damping, width, wet_level, dry_level, str(secrets.token_hex(5)))
26
- effect_str.append("Reverb")
27
 
28
  output_file = f"{input_file} {' + '.join(effects_str)} - {'By AudioFusion'}"
29
 
 
12
  # Load the sound file
13
  sound = Fusion.loadSound(input_file)
14
  os.remove(os.path.abspath(input_file))
15
+ effects_str = []
16
 
17
  # Apply effects based on user choices
18
  if effect_8d:
19
  sound = Fusion.effect8D(sound, pan_boundary, jump_percentage, time_l_to_r*1000, volume_multiplier)
20
+ effects_str.append("8d")
21
  if effect_slowed:
22
  sound = Fusion.effectSlowed(sound, speed_multiplier)
23
+ effects_str.append("Slowed")
24
  if effect_reverb:
25
  sound = Fusion.effectReverb(sound, room_size, damping, width, wet_level, dry_level, str(secrets.token_hex(5)))
26
+ effects_str.append("Reverb")
27
 
28
  output_file = f"{input_file} {' + '.join(effects_str)} - {'By AudioFusion'}"
29