sweetcocoa / pop2piano

Official Repo of the paper "Pop2Piano : Pop Audio-based Piano Cover Generation"
454 stars 46 forks source link

MIDI file tempo setting #2

Open hetima opened 2 years ago

hetima commented 2 years ago

For specify the tempo of the output midi file, added midi_bpm=120.0 option to TransformerWrapper.generate() to be carried up to PrettyMIDI() of MidiTokenizer.notes_to_midi().

I don't think this will affect the existing scripts, but it's a rough implementation so I'm not sure.