Class: Reflex::NoteEvent
- Inherits:
-
Event
- Object
- Event
- Reflex::NoteEvent
- Defined in:
- lib/reflex/note_event.rb
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
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
22 23 24 |
# File 'lib/reflex/note_event.rb', line 22 def off?() get_action == OFF end |
#on? ⇒ Boolean
18 19 20 |
# File 'lib/reflex/note_event.rb', line 18 def on?() get_action == ON end |