zarox commited on
Commit
9203d26
·
1 Parent(s): 27f6051
Files changed (1) hide show
  1. app.py +28 -26
app.py CHANGED
@@ -64,32 +64,34 @@ def process_audio(input_file,
64
  with gr.Blocks(title="Audio Fusion") as iface:
65
  gr.Markdown("<p align='center'><h1>Audio Fusion</h1></p>")
66
 
67
- input_audio = gr.Audio(label="Upload your music file", type="filepath")
68
-
69
- # 8d Effect and its arguments
70
- with gr.Tab("8d Effect"):
71
- d_check = gr.Checkbox(label="Apply 8D effect")
72
- with gr.Column():
73
- pan = gr.Slider(label="8D - Pan Boundary", minimum=0, maximum=100, value=100)
74
- jump = gr.Slider(label="8D - Jump Percentage", minimum=1, maximum=100, value=5)
75
- time = gr.Slider(label="8D - Time L to R (s)", minimum=1, maximum=30, value=10)
76
- volx = gr.Slider(label="8D - Volume Multiplier", minimum=1, maximum=20, value=6)
77
-
78
- # SLowed Effect and its arguments
79
- with gr.Tab("Slowed Effect"):
80
- speed_check = gr.Checkbox(label="Apply slowed effect")
81
- with gr.Row():
82
- speed = gr.Slider(label="Slowed - Speed Multiplier", minimum=0.1, maximum=4, step=0.01, value=0.92)
83
-
84
- # Reverb Effect and its arguments
85
- with gr.Tab("Reverb Effect"):
86
- reverb_check = gr.Checkbox(label="Apply reverb effect")
87
- with gr.Column():
88
- room = gr.Slider(label="Reverb - Room Size", minimum=0, maximum=2, step=0.01, value=0.8)
89
- damp = gr.Slider(label="Reverb - Damping", minimum=0, maximum=2, value=1)
90
- width = gr.Slider(label="Reverb - Width", minimum=0, maximum=2, step=0.1, value=0.5)
91
- wet = gr.Slider(label="Reverb - Wet Level", minimum=0, maximum=2, step=0.1, value=0.3)
92
- dry = gr.Slider(label="Reverb - Dry Level", minimum=0, maximum=2, step=0.1, value=0.8)
 
 
93
 
94
  inputs = [input_audio, d_check, pan, jump, time, volx, speed_check, speed, reverb_check, room, damp, width, wet, dry]
95
  output = [gr.Audio(label="Download processed music", type="filepath")]
 
64
  with gr.Blocks(title="Audio Fusion") as iface:
65
  gr.Markdown("<p align='center'><h1>Audio Fusion</h1></p>")
66
 
67
+ input_audio = gr.Audio(label="Upload your music file", type="filepath")
68
+
69
+ # 8d Effect and its arguments
70
+ with gr.Tab("8d Effect"):
71
+ d_check = gr.Checkbox(label="Apply 8D effect")
72
+ with gr.Column(visible=False):
73
+ pan = gr.Slider(label="8D - Pan Boundary", minimum=0, maximum=100, value=100)
74
+ jump = gr.Slider(label="8D - Jump Percentage", minimum=1, maximum=100, value=5)
75
+ time = gr.Slider(label="8D - Time L to R (s)", minimum=1, maximum=30, value=10)
76
+ volx = gr.Slider(label="8D - Volume Multiplier", minimum=1, maximum=20, value=6)
77
+
78
+ # SLowed Effect and its arguments
79
+ with gr.Tab("Slowed Effect"):
80
+ speed_check = gr.Checkbox(label="Apply slowed effect")
81
+ with gr.Row(visible=False):
82
+ speed = gr.Slider(label="Slowed - Speed Multiplier", minimum=0.1, maximum=4, step=0.01, value=0.92)
83
+
84
+ # Reverb Effect and its arguments
85
+ with gr.Tab("Reverb Effect"):
86
+ reverb_check = gr.Checkbox(label="Apply reverb effect")
87
+ with gr.Column(visible=False):
88
+ room = gr.Slider(label="Reverb - Room Size", minimum=0, maximum=2, step=0.01, value=0.8)
89
+ damp = gr.Slider(label="Reverb - Damping", minimum=0, maximum=2, value=1)
90
+ width = gr.Slider(label="Reverb - Width", minimum=0, maximum=2, step=0.1, value=0.5)
91
+ wet = gr.Slider(label="Reverb - Wet Level", minimum=0, maximum=2, step=0.1, value=0.3)
92
+ dry = gr.Slider(label="Reverb - Dry Level", minimum=0, maximum=2, step=0.1, value=0.8)
93
+
94
+
95
 
96
  inputs = [input_audio, d_check, pan, jump, time, volx, speed_check, speed, reverb_check, room, damp, width, wet, dry]
97
  output = [gr.Audio(label="Download processed music", type="filepath")]