Beispiel #1
0
    def parseFile(self, fp, number=None):
        '''
        Get MIDI data from a file path.

        Calls midi.translate.midiFilePathToStream.
        '''
        from music21.midi import translate as midiTranslate
        midiTranslate.midiFilePathToStream(fp, self.stream)
Beispiel #2
0
    def parseFile(self, fp, number=None, **keywords):
        '''
        Get MIDI data from a file path.

        Calls midi.translate.midiFilePathToStream.
        '''
        from music21.midi import translate as midiTranslate
        midiTranslate.midiFilePathToStream(fp, self.stream, **keywords)
Beispiel #3
0
def load_midi(path):
    return translate.midiFilePathToStream(path)
def load_midi(path):
    return translate.midiFilePathToStream(path)