TomRB22 commited on
Commit
64b1f25
1 Parent(s): 7befa11

Changed `map_to_wav` name to `notes_to_midi`

Browse files
Files changed (1) hide show
  1. audio.py +1 -1
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 map_to_wav(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.
 
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.