Changed `map_to_wav` name to `notes_to_midi`
Browse files
audio.py
CHANGED
@@ -108,7 +108,7 @@ def display_audio(pm: pretty_midi.PrettyMIDI, seconds=-1) -> display.Audio:
|
|
108 |
return display_obj
|
109 |
|
110 |
|
111 |
-
def
|
112 |
"""
|
113 |
Convert "song map" to midi file (reverse process with respect to
|
114 |
midi_to_notes) and (optionally) save it, generating a PrettyMidi object in the process.
|
|
|
108 |
return display_obj
|
109 |
|
110 |
|
111 |
+
def notes_to_midi(song_map: pd.DataFrame, out_file: str, velocity: int=50) -> pretty_midi.PrettyMIDI:
|
112 |
"""
|
113 |
Convert "song map" to midi file (reverse process with respect to
|
114 |
midi_to_notes) and (optionally) save it, generating a PrettyMidi object in the process.
|