Spaces:
Running
on
Zero
Running
on
Zero
ButterCream
commited on
Commit
·
2775d2b
1
Parent(s):
25e344b
further fine grained s-curve control
Browse files
app.py
CHANGED
@@ -245,7 +245,7 @@ def generate(audio_path, ins, speed, alpha, beta, embedding, steps=200):
|
|
245 |
synthaud[right:] = 0
|
246 |
for k in range(int(len(synthaud) * trail_percent)):
|
247 |
s = s_curve(k / int(len(synthaud) * trail_percent))
|
248 |
-
synthaud[right - int(len(synthaud) * trail_percent) + k]
|
249 |
|
250 |
|
251 |
audio = np.concatenate((audio, synthaud))
|
|
|
245 |
synthaud[right:] = 0
|
246 |
for k in range(int(len(synthaud) * trail_percent)):
|
247 |
s = s_curve(k / int(len(synthaud) * trail_percent))
|
248 |
+
synthaud[right - int(len(synthaud) * trail_percent) + k] /= s
|
249 |
|
250 |
|
251 |
audio = np.concatenate((audio, synthaud))
|