added verbose when getting midi music
Browse files- playback.py +1 -0
playback.py
CHANGED
|
@@ -11,6 +11,7 @@ def get_music(midi_file):
|
|
| 11 |
"""
|
| 12 |
Load a midi file and return the PrettyMIDI object and the audio signal
|
| 13 |
"""
|
|
|
|
| 14 |
music = PrettyMIDI(midi_file=midi_file)
|
| 15 |
waveform = music.fluidsynth()
|
| 16 |
return music, waveform
|
|
|
|
| 11 |
"""
|
| 12 |
Load a midi file and return the PrettyMIDI object and the audio signal
|
| 13 |
"""
|
| 14 |
+
print(f"Getting MIDI music from: {midi_file}")
|
| 15 |
music = PrettyMIDI(midi_file=midi_file)
|
| 16 |
waveform = music.fluidsynth()
|
| 17 |
return music, waveform
|