Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mingus/midi/sequencer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down