diff --git a/mingus/midi/sequencer.py b/mingus/midi/sequencer.py index 7cb4e82..1607b8f 100644 --- a/mingus/midi/sequencer.py +++ b/mingus/midi/sequencer.py @@ -139,9 +139,9 @@ def play_Note(self, note, channel=1, velocity=100): you can set the Note.velocity and Note.channel attributes, which will take presedence over the function arguments. """ - if hasattr(note, "velocity"): + if hasattr(note, "velocity") and velocity == None: velocity = note.velocity - if hasattr(note, "channel"): + if hasattr(note, "channel") and channel == None: channel = note.channel self.play_event(int(note) + 12, int(channel), int(velocity)) self.notify_listeners(