Spaces:
Running
Running
UPDATE
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def process_audio(input_file,
|
|
| 15 |
|
| 16 |
# Apply effects based on user choices
|
| 17 |
if effect_8d:
|
| 18 |
-
sound = Fusion.effect8D(sound, pan_boundary, jump_percentage, time_l_to_r, volume_multiplier)
|
| 19 |
effect_str.append("8d")
|
| 20 |
if effect_slowed:
|
| 21 |
sound = Fusion.effectSlowed(sound, speed_multiplier)
|
|
@@ -38,29 +38,23 @@ iface = gr.Interface(
|
|
| 38 |
gr.Audio(label="Upload your music file", type="filepath"),
|
| 39 |
|
| 40 |
# 8d Effect and its arguments
|
| 41 |
-
gr.
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
gr.Slider(label="Volume Multiplier", minimum=1, value=6),
|
| 47 |
-
),
|
| 48 |
|
| 49 |
-
#
|
| 50 |
-
gr.
|
| 51 |
-
|
| 52 |
-
gr.Slider(label="Speed Multiplier", minimum=0.1, maximum=2, step=0.1, value=0.92),
|
| 53 |
-
),
|
| 54 |
|
| 55 |
# Reverb Effect and its arguments
|
| 56 |
-
gr.
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
gr.Slider(label="Dry Level", minimum=0, maximum=1, step=0.1, value=0.8),
|
| 63 |
-
),
|
| 64 |
],
|
| 65 |
outputs=gr.Audio(label="Download processed music", type="filepath"),
|
| 66 |
title="Audio Fusion"
|
|
|
|
| 15 |
|
| 16 |
# Apply effects based on user choices
|
| 17 |
if effect_8d:
|
| 18 |
+
sound = Fusion.effect8D(sound, pan_boundary, jump_percentage, time_l_to_r*1000, volume_multiplier)
|
| 19 |
effect_str.append("8d")
|
| 20 |
if effect_slowed:
|
| 21 |
sound = Fusion.effectSlowed(sound, speed_multiplier)
|
|
|
|
| 38 |
gr.Audio(label="Upload your music file", type="filepath"),
|
| 39 |
|
| 40 |
# 8d Effect and its arguments
|
| 41 |
+
gr.Checkbox(label="Apply 8D effect"),
|
| 42 |
+
gr.Slider(label="8D - Pan Boundary", minimum=0, maximum=100, value=100),
|
| 43 |
+
gr.Slider(label="8D - Jump Percentage", minimum=1, maximum=100, value=5),
|
| 44 |
+
gr.Slider(label="8D - Time L to R (s)", minimum=1, maximum=30, value=10),
|
| 45 |
+
gr.Slider(label="8D - Volume Multiplier", minimum=1, maximum=20, value=6),
|
|
|
|
|
|
|
| 46 |
|
| 47 |
+
# SLowed Effect and its arguments
|
| 48 |
+
gr.Checkbox(label="Apply slowed effect"),
|
| 49 |
+
gr.Slider(label="Slowed - Speed Multiplier", minimum=0.1, maximum=4, step=0.01, value=0.92),
|
|
|
|
|
|
|
| 50 |
|
| 51 |
# Reverb Effect and its arguments
|
| 52 |
+
gr.Checkbox(label="Apply reverb effect"),
|
| 53 |
+
gr.Slider(label="Reverb - Room Size", minimum=0, maximum=2, step=0.01, value=0.8),
|
| 54 |
+
gr.Slider(label="Reverb - Damping", minimum=0, maximum=2, value=1),
|
| 55 |
+
gr.Slider(label="Reverb - Width", minimum=0, maximum=2, step=0.1, value=0.5),
|
| 56 |
+
gr.Slider(label="Reverb - Wet Level", minimum=0, maximum=2, step=0.1, value=0.3),
|
| 57 |
+
gr.Slider(label="Reverb - Dry Level", minimum=0, maximum=2, step=0.1, value=0.8),
|
|
|
|
|
|
|
| 58 |
],
|
| 59 |
outputs=gr.Audio(label="Download processed music", type="filepath"),
|
| 60 |
title="Audio Fusion"
|