Class: Reflex::NoteEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/reflex/note_event.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



26
27
28
29
# File 'lib/reflex/note_event.rb', line 26

def inspect()
  "#<Reflex::NoteEvent action:%s channel:%d note:%d vel:0f time:%f captured?:%s>" %
    [action, channel, note, velocity, time, captured?]
end

#off?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/reflex/note_event.rb', line 22

def off?()
  get_action == OFF
end

#on?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/reflex/note_event.rb', line 18

def on?()
  get_action == ON
end