def parseData(self, strData, number=None): ''' Get MIDI data from a binary string representation. Calls midi.translate.midiStringToStream. ''' from music21.midi import translate as midiTranslate self.stream = midiTranslate.midiStringToStream(strData)