def __init__(self, midiOutStream, device): """ Sets a default output stream, and sets the device from where the input comes """ if midiOutStream is None: self.midiOutStream = MidiOutStream() else: self.midiOutStream = midiOutStream