Class: Reflex::MIDIEvent
- Inherits:
-
Event
- Object
- Event
- Reflex::MIDIEvent
- Defined in:
- lib/reflex/midi_event.rb
Instance Method Summary collapse
- #channel_pressure? ⇒ Boolean
- #control_change? ⇒ Boolean (also: #cc?)
- #inspect ⇒ Object
- #key_pressure? ⇒ Boolean
- #note_off? ⇒ Boolean
- #note_on? ⇒ Boolean
- #pitch_bend_change? ⇒ Boolean
- #program_change? ⇒ Boolean (also: #pc?)
- #system? ⇒ Boolean
Instance Method Details
#channel_pressure? ⇒ Boolean
44 45 46 |
# File 'lib/reflex/midi_event.rb', line 44 def channel_pressure?() get_action == CHANNEL_PRESSURE end |
#control_change? ⇒ Boolean Also known as: cc?
32 33 34 |
# File 'lib/reflex/midi_event.rb', line 32 def control_change?() get_action == CONTROL_CHANGE end |
#inspect ⇒ Object
60 61 62 63 |
# File 'lib/reflex/midi_event.rb', line 60 def inspect() "#<Reflex::MIDIEvent action:%s channel:%d data:[%d, %d] captured?:%s>" % [action, channel, data1, data2, captured?] end |
#key_pressure? ⇒ Boolean
48 49 50 |
# File 'lib/reflex/midi_event.rb', line 48 def key_pressure?() get_action == KEY_PRESSURE end |
#note_off? ⇒ Boolean
28 29 30 |
# File 'lib/reflex/midi_event.rb', line 28 def note_off?() get_action == NOTE_OFF end |
#note_on? ⇒ Boolean
24 25 26 |
# File 'lib/reflex/midi_event.rb', line 24 def note_on?() get_action == NOTE_ON end |
#pitch_bend_change? ⇒ Boolean
52 53 54 |
# File 'lib/reflex/midi_event.rb', line 52 def pitch_bend_change?() get_action == PITCH_BEND_CHANGE end |
#program_change? ⇒ Boolean Also known as: pc?
38 39 40 |
# File 'lib/reflex/midi_event.rb', line 38 def program_change?() get_action == PROGRAM_CHANGE end |
#system? ⇒ Boolean
56 57 58 |
# File 'lib/reflex/midi_event.rb', line 56 def system?() get_action == SYSTEM end |