Spaces:
Running
Running
housekeeping
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def convert_table_to_audio(markdown_table, resolution=8, bpm = 120.0):
|
|
79 |
if velocity > 0:
|
80 |
if inst in MIDI_NOTENUM.keys():
|
81 |
midinote = MIDI_NOTENUM[inst]
|
82 |
-
note = pretty_midi.Note(velocity=velocity, pitch=midinote, start=note_length * (j-1)+0.
|
83 |
pm_inst.notes.append(note)
|
84 |
|
85 |
# convert to audio
|
|
|
79 |
if velocity > 0:
|
80 |
if inst in MIDI_NOTENUM.keys():
|
81 |
midinote = MIDI_NOTENUM[inst]
|
82 |
+
note = pretty_midi.Note(velocity=velocity, pitch=midinote, start=note_length * (j-1)+0.0001, end=note_length * j)
|
83 |
pm_inst.notes.append(note)
|
84 |
|
85 |
# convert to audio
|