Spaces:
Running
Running
ageraustine
commited on
Commit
•
578970b
1
Parent(s):
7a6969a
svs
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import numpy as np
|
|
4 |
import os
|
5 |
import base64
|
6 |
from streamlit import session_state as st_state
|
|
|
7 |
import librosa
|
8 |
import soundfile as sf
|
9 |
from scipy.signal import butter, sosfilt
|
@@ -131,16 +132,45 @@ if st.button("Apply Compression"):
|
|
131 |
st_state.augmented_audio = compress(st_state.augmented_audio, threshold, ratio, knee, max_gain)
|
132 |
|
133 |
# EQ
|
|
|
|
|
134 |
col1, col2, col3 = st.columns(3)
|
135 |
|
136 |
with col1:
|
137 |
-
eq_low =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
|
139 |
with col2:
|
140 |
-
eq_mid =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
with col3:
|
143 |
-
eq_high =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
|
145 |
if st.button("Apply EQ"):
|
146 |
if st_state.augmented_audio is None:
|
|
|
4 |
import os
|
5 |
import base64
|
6 |
from streamlit import session_state as st_state
|
7 |
+
import streamlit_vertical_slider as svs
|
8 |
import librosa
|
9 |
import soundfile as sf
|
10 |
from scipy.signal import butter, sosfilt
|
|
|
132 |
st_state.augmented_audio = compress(st_state.augmented_audio, threshold, ratio, knee, max_gain)
|
133 |
|
134 |
# EQ
|
135 |
+
|
136 |
+
|
137 |
col1, col2, col3 = st.columns(3)
|
138 |
|
139 |
with col1:
|
140 |
+
eq_low = svs.vertical_slider(
|
141 |
+
key="eq_low",
|
142 |
+
default_value=0.0,
|
143 |
+
step=0.1,
|
144 |
+
min_value=-10.0,
|
145 |
+
max_value=10.0,
|
146 |
+
slider_color="green",
|
147 |
+
track_color="lightgray",
|
148 |
+
thumb_color="red"
|
149 |
+
)
|
150 |
|
151 |
with col2:
|
152 |
+
eq_mid = svs.vertical_slider(
|
153 |
+
key="eq_mid",
|
154 |
+
default_value=0.0,
|
155 |
+
step=0.1,
|
156 |
+
min_value=-10.0,
|
157 |
+
max_value=10.0,
|
158 |
+
slider_color="green",
|
159 |
+
track_color="lightgray",
|
160 |
+
thumb_color="red"
|
161 |
+
)
|
162 |
|
163 |
with col3:
|
164 |
+
eq_high = svs.vertical_slider(
|
165 |
+
key="eq_high",
|
166 |
+
default_value=0.0,
|
167 |
+
step=0.1,
|
168 |
+
min_value=-10.0,
|
169 |
+
max_value=10.0,
|
170 |
+
slider_color="green",
|
171 |
+
track_color="lightgray",
|
172 |
+
thumb_color="red"
|
173 |
+
)
|
174 |
|
175 |
if st.button("Apply EQ"):
|
176 |
if st_state.augmented_audio is None:
|