-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow pre-loaded mido.MidiFile objects to be passed as an argument to…
… PrettyMIDI (#241) * Implemented mido_object argument in PrettyMIDI to pass pre-loaded mido.MidiFile objects - implemented unit test to verify PrettyMIDI object initialization * rearranged PrettyMIDI arguments to keep mido_object as the last one * updated PrettyMIDI docstring to reflect the same argument order as the constructor definition * Modified PrettyMIDI constructor logic to raise a ValueError if both the midi_file and mido_object arguments are provided. Related Changes: - Updated test_pm_object_initialization to reflect this change. - Updated PrettyMIDI docstring to reflect this change. - Added ValueError tests in test_pm_object_initialization
- Loading branch information
Showing
2 changed files
with
96 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters