Class: SMF::VirtualNote
- Inherits:
-
VoiceMessage
- Object
- Event
- MIDIMessage
- ChannelMessage
- VoiceMessage
- SMF::VirtualNote
- Defined in:
- lib/smf/toy/virtual.rb
Instance Attribute Summary collapse
-
#length ⇒ Object
Returns the value of attribute length.
-
#note ⇒ Object
Returns the value of attribute note.
-
#offvel ⇒ Object
Returns the value of attribute offvel.
-
#vel ⇒ Object
Returns the value of attribute vel.
Attributes inherited from ChannelMessage
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(offset, ch, note, vel, offvel, length) ⇒ VirtualNote
constructor
A new instance of VirtualNote.
Methods inherited from ChannelMessage
Methods inherited from Event
Constructor Details
#initialize(offset, ch, note, vel, offvel, length) ⇒ VirtualNote
Returns a new instance of VirtualNote.
110 111 112 113 |
# File 'lib/smf/toy/virtual.rb', line 110 def initialize(offset, ch, note, vel, offvel, length) super(offset, ch) @note, @vel, @offvel, @length = note, vel, offvel, length end |
Instance Attribute Details
#length ⇒ Object
Returns the value of attribute length.
115 116 117 |
# File 'lib/smf/toy/virtual.rb', line 115 def length @length end |
#note ⇒ Object
Returns the value of attribute note.
115 116 117 |
# File 'lib/smf/toy/virtual.rb', line 115 def note @note end |
#offvel ⇒ Object
Returns the value of attribute offvel.
115 116 117 |
# File 'lib/smf/toy/virtual.rb', line 115 def offvel @offvel end |
#vel ⇒ Object
Returns the value of attribute vel.
115 116 117 |
# File 'lib/smf/toy/virtual.rb', line 115 def vel @vel end |