TomRB22 commited on
Commit
f97762f
1 Parent(s): 3a0d063

Reduced default velocity to 50

Browse files
Files changed (1) hide show
  1. audio.py +2 -2
audio.py CHANGED
@@ -91,7 +91,7 @@ def display_audio(pm: pretty_midi.PrettyMIDI, seconds=-1) -> display.Audio:
91
  return display.Audio(waveform_short, rate=_SAMPLING_RATE)
92
 
93
 
94
- def map_to_wav(song_map: pd.DataFrame, out_file: str, velocity: int=100) -> pretty_midi.PrettyMIDI:
95
  """
96
  Convert "song map" to midi file (reverse process with respect to
97
  midi_to_notes) and (optionally) save it, generating a PrettyMidi object in the process.
@@ -137,7 +137,7 @@ def map_to_wav(song_map: pd.DataFrame, out_file: str, velocity: int=100) -> pret
137
  def generate_and_display(model: VAE,
138
  out_file: str=None,
139
  z_sample: tf.Tensor=None,
140
- velocity: int=100,
141
  seconds: int=120) -> display.Audio:
142
  """
143
  Generate a song, (optionally) save it and display it.
 
91
  return display.Audio(waveform_short, rate=_SAMPLING_RATE)
92
 
93
 
94
+ def map_to_wav(song_map: pd.DataFrame, out_file: str, velocity: int=50) -> pretty_midi.PrettyMIDI:
95
  """
96
  Convert "song map" to midi file (reverse process with respect to
97
  midi_to_notes) and (optionally) save it, generating a PrettyMidi object in the process.
 
137
  def generate_and_display(model: VAE,
138
  out_file: str=None,
139
  z_sample: tf.Tensor=None,
140
+ velocity: int=50,
141
  seconds: int=120) -> display.Audio:
142
  """
143
  Generate a song, (optionally) save it and display it.