Spaces:
Build error
Build error
new sound
Browse files- assets/snare4.wav +0 -0
- pages/common.py +1 -1
- pages/sonification_utils.py +1 -1
assets/snare4.wav
ADDED
|
Binary file (17.2 kB). View file
|
|
|
pages/common.py
CHANGED
|
@@ -33,4 +33,4 @@ def get_new_ref():
|
|
| 33 |
return str(uuid.uuid4()).upper().split("-")[0]
|
| 34 |
|
| 35 |
|
| 36 |
-
AUDIO_PATH = "assets/
|
|
|
|
| 33 |
return str(uuid.uuid4()).upper().split("-")[0]
|
| 34 |
|
| 35 |
|
| 36 |
+
AUDIO_PATH = "assets/snare4.wav"
|
pages/sonification_utils.py
CHANGED
|
@@ -127,7 +127,7 @@ def sonify_x_ax(xs, ys, x_mode, y_mode, gaps=0.5):
|
|
| 127 |
if x_deltas[idx] > 0.0:
|
| 128 |
marks.append(Silence(secs=gap_ax(x_deltas[idx])))
|
| 129 |
|
| 130 |
-
return
|
| 131 |
|
| 132 |
|
| 133 |
def get_audio_comp(arr, frame_rate, visible=True, autoplay=False) -> str:
|
|
|
|
| 127 |
if x_deltas[idx] > 0.0:
|
| 128 |
marks.append(Silence(secs=gap_ax(x_deltas[idx])))
|
| 129 |
|
| 130 |
+
return stage.get_ndarray(Chain(*marks))
|
| 131 |
|
| 132 |
|
| 133 |
def get_audio_comp(arr, frame_rate, visible=True, autoplay=False) -> str:
|