lib/patchmaster/connection.rb in patchmaster-1.1.2 vs lib/patchmaster/connection.rb in patchmaster-2.0.0
- old
+ new
@@ -40,10 +40,10 @@
end
def accept_from_input?(bytes)
return true if @input_chan == nil
return true unless bytes.channel?
- bytes.note? && bytes.channel == @input_chan
+ bytes.channel == @input_chan
end
# Returns true if the +@zone+ is nil (allowing all notes throught) or if
# +@zone+ is a Range and +note+ is inside +@zone+.
def inside_zone?(note)