lib/patchmaster/predicates.rb in patchmaster-1.1.2 vs lib/patchmaster/predicates.rb in patchmaster-2.0.0
- old
+ new
@@ -9,10 +9,10 @@
def channel
self & 0x0f
end
def channel?
- self >= PM::NOTE_ON && self < PM::SYSEX
+ self >= PM::NOTE_OFF && self < PM::SYSEX
end
alias_method :chan?, :channel?
def note_on?
(self & 0xf0) == PM::NOTE_ON