Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -249,7 +249,7 @@ def Humanize_MIDI(input_midi,
|
|
| 249 |
else:
|
| 250 |
|
| 251 |
fdur = ((t-16768) // 8)
|
| 252 |
-
fvel = ((
|
| 253 |
|
| 254 |
x = torch.LongTensor(final_song).to(device_type)
|
| 255 |
|
|
@@ -266,7 +266,7 @@ def Humanize_MIDI(input_midi,
|
|
| 266 |
y = out.tolist()[0]
|
| 267 |
|
| 268 |
gdur = ((y-16768) // 8)
|
| 269 |
-
gvel = ((
|
| 270 |
|
| 271 |
if humanize_durations:
|
| 272 |
fdur = gdur
|
|
|
|
| 249 |
else:
|
| 250 |
|
| 251 |
fdur = ((t-16768) // 8)
|
| 252 |
+
fvel = ((t-16768) % 8)
|
| 253 |
|
| 254 |
x = torch.LongTensor(final_song).to(device_type)
|
| 255 |
|
|
|
|
| 266 |
y = out.tolist()[0]
|
| 267 |
|
| 268 |
gdur = ((y-16768) // 8)
|
| 269 |
+
gvel = ((y-16768) % 8)
|
| 270 |
|
| 271 |
if humanize_durations:
|
| 272 |
fdur = gdur
|