craffel / pretty-midi

Utility functions for handling MIDI data in a nice/intuitive way.
MIT License
856 stars 151 forks source link

Init with mido object parameter #200

Closed mbobcik closed 6 months ago

mbobcik commented 3 years ago

Hi, I started working with this library and I noticed it uses mido. In my project I have mido objects and I would like to use pretty_midi functions on them. Instead of saving it to temporary midi file and loading it again, possibility to pass the mido object to PrettyMidi would speed up things. Or is there any other way I'm not aware of?

My intention is to select just one track from midi file and generate chroma from it.

craffel commented 3 years ago

That's not currently supported, but it would make sense to support.