Spaces:
Running
Running
UPDATE
Browse files
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 |
-
|
| 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 |
-
|
| 21 |
if effect_slowed:
|
| 22 |
sound = Fusion.effectSlowed(sound, speed_multiplier)
|
| 23 |
-
|
| 24 |
if effect_reverb:
|
| 25 |
sound = Fusion.effectReverb(sound, room_size, damping, width, wet_level, dry_level, str(secrets.token_hex(5)))
|
| 26 |
-
|
| 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 |
|