Ejemplo n.º 1
0
 def test_from_file(self):
     """ Load a file with default options. """
     options = SegmentedMidiInput.process_option_dict({})
     mid = SegmentedMidiInput.from_file(MIDI_FILE, options=options)
Ejemplo n.º 2
0
 def test_from_file_with_options(self):
     """ Load a file with time unit and offset options. """
     options = SegmentedMidiInput.process_option_dict(
         {"time_unit": SEGMENTED_MIDI[1], "tick_offset": SEGMENTED_MIDI[2]}
     )
     mid = SegmentedMidiInput.from_file(SEGMENTED_MIDI[0], options=options)