projectlosangeles commited on
Commit
9084ec4
·
verified ·
1 Parent(s): a120f68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -249,7 +249,7 @@ def Humanize_MIDI(input_midi,
249
  else:
250
 
251
  fdur = ((t-16768) // 8)
252
- fvel = (((t-16768) % 8)+1)
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 = (((y-16768) % 8)+1)
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