Class: NoteSender
- Inherits:
-
Object
- Object
- NoteSender
- Defined in:
- lib/midinous/proc_midi.rb
Instance Attribute Summary collapse
-
#chan ⇒ Object
readonly
Returns the value of attribute chan.
-
#note ⇒ Object
readonly
Returns the value of attribute note.
-
#vel ⇒ Object
readonly
Returns the value of attribute vel.
Instance Method Summary collapse
-
#initialize(note, chan, vel) ⇒ NoteSender
constructor
A new instance of NoteSender.
- #play ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(note, chan, vel) ⇒ NoteSender
Returns a new instance of NoteSender.
104 105 106 107 108 |
# File 'lib/midinous/proc_midi.rb', line 104 def initialize(note,chan,vel) @note = note @chan = chan @vel = vel end |
Instance Attribute Details
#chan ⇒ Object (readonly)
Returns the value of attribute chan.
103 104 105 |
# File 'lib/midinous/proc_midi.rb', line 103 def chan @chan end |
#note ⇒ Object (readonly)
Returns the value of attribute note.
103 104 105 |
# File 'lib/midinous/proc_midi.rb', line 103 def note @note end |
#vel ⇒ Object (readonly)
Returns the value of attribute vel.
103 104 105 |
# File 'lib/midinous/proc_midi.rb', line 103 def vel @vel end |