Beispiel #1
0
 def view_pianoroll(self, idx):
     datp.visualize_piano_roll(self[idx])
Beispiel #2
0
def visualize_song(song_filepath: str):
    pm = pretty_midi.PrettyMIDI(song_filepath)
    piano_roll = pm.get_piano_roll(const.FS)
    visualize_piano_roll(piano_roll, const.FS)