lib/patchmaster/predicates.rb in patchmaster-0.0.3 vs lib/patchmaster/predicates.rb in patchmaster-0.0.4
- old
+ new
@@ -60,9 +60,14 @@
self >= 0xf8 && self <= 0xff
end
alias_method :rt?, :realtime?
end
+# All the methods here delegate to the first byte in the array, so for
+# example the following two are equivalent:
+#
+# my_array.note_on?
+# my_array[0].note_on?
class Array
def high_nibble
self[0].high_nibble
end