class Array

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?

Public Instance Methods

chan?()
Alias for: channel?
channel() click to toggle source
# File lib/patchmaster/predicates.rb, line 76
def channel
  self[0].channel
end
channel?() click to toggle source
# File lib/patchmaster/predicates.rb, line 80
def channel?
  self[0].channel?
end
Also aliased as: chan?
controller?() click to toggle source
# File lib/patchmaster/predicates.rb, line 106
def controller?
  self[0].controller?
end
Also aliased as: ctrl?
ctrl?()
Alias for: controller?
high_nibble() click to toggle source
# File lib/patchmaster/predicates.rb, line 72
def high_nibble
  self[0].high_nibble
end
note?() click to toggle source

Returns true if self is a message that targets a note (note on, note off, or poly pressure).

# File lib/patchmaster/predicates.rb, line 102
def note?
  self[0].note?
end
note_off?() click to toggle source
# File lib/patchmaster/predicates.rb, line 90
def note_off?
  self[0].note_off?
end
Also aliased as: off?
note_on?() click to toggle source
# File lib/patchmaster/predicates.rb, line 85
def note_on?
  self[0].note_on?
end
Also aliased as: on?
off?()
Alias for: note_off?
on?()
Alias for: note_on?
pb?()
Alias for: pitch_bend?
pc?()
Alias for: program_change?
pitch_bend?() click to toggle source
# File lib/patchmaster/predicates.rb, line 116
def pitch_bend?
  self[0].pitch_bend?
end
Also aliased as: pb?
poly_press?()
Alias for: poly_pressure?
poly_pressure?() click to toggle source
# File lib/patchmaster/predicates.rb, line 95
def poly_pressure?
  self[0].poly_pressure?
end
Also aliased as: poly_press?
program_change?() click to toggle source
# File lib/patchmaster/predicates.rb, line 111
def program_change?
  self[0].program_change?
end
Also aliased as: pc?
realtime?() click to toggle source
# File lib/patchmaster/predicates.rb, line 126
def realtime?
  self[0].realtime?
end
Also aliased as: rt?
rt?()
Alias for: realtime?
sys?()
Alias for: system?
system?() click to toggle source
# File lib/patchmaster/predicates.rb, line 121
def system?
  self[0].system?
end
Also aliased as: sys?