Spaces:
Runtime error
Runtime error
Emanuele Lapponi
commited on
Commit
·
7a70037
1
Parent(s):
99be972
:bug: fix repetizer
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ if audio.any():
|
|
102 |
if np.random.randint(100) < prob and pshift
|
103 |
else chunk
|
104 |
)
|
105 |
-
chunk = chunk
|
106 |
chunk = np.flip(chunk) if np.random.randint(100) < prob and reverse else chunk
|
107 |
processed += [s for s in chunk]
|
108 |
|
|
|
102 |
if np.random.randint(100) < prob and pshift
|
103 |
else chunk
|
104 |
)
|
105 |
+
chunk = np.concatenate([chunk, chunk]) if np.random.randint(100) < prob and reps else chunk
|
106 |
chunk = np.flip(chunk) if np.random.randint(100) < prob and reverse else chunk
|
107 |
processed += [s for s in chunk]
|
108 |
|