'Sets passthrough value, closing all open notes if being disabled.'

@passthrough.setter
@concurrency.serialized
def passthrough(self, value):

    if (self._passthrough == value):
        return
    while self._open_notes:
        self._outport.send(mido.Message('note_off', note=self._open_notes.pop()))
    self._passthrough = value
