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)
def test_from_file(self): """ Load a file with default options. """ options = SegmentedMidiInput.process_option_dict({}) mid = SegmentedMidiInput.from_file(MIDI_FILE, options=options)
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)