def trigger(self, vel):
        if vel:
            dur = attack * fs
        else:
            dur = release * fs
        self.target_weight = vel / 127
        self.weight_step = (self.weight - self.target_weight) / dur
        self.compare = operator.ge if self.weight_step > 0 else operator.le
dataset/ETHPy150Open spatialaudio/jackclient-python/examples/midi_sine.py/Voice.trigger/swapped operands of `-`