Class: SMF::VirtualNote

Inherits:
VoiceMessage show all
Defined in:
lib/smf/toy/virtual.rb

Instance Attribute Summary collapse

Attributes inherited from ChannelMessage

#ch

Attributes inherited from Event

#offset

Instance Method Summary collapse

Methods inherited from ChannelMessage

#==

Methods inherited from Event

#<=>, #==, #eql?, #hash

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

#lengthObject

Returns the value of attribute length.



115
116
117
# File 'lib/smf/toy/virtual.rb', line 115

def length
  @length
end

#noteObject

Returns the value of attribute note.



115
116
117
# File 'lib/smf/toy/virtual.rb', line 115

def note
  @note
end

#offvelObject

Returns the value of attribute offvel.



115
116
117
# File 'lib/smf/toy/virtual.rb', line 115

def offvel
  @offvel
end

#velObject

Returns the value of attribute vel.



115
116
117
# File 'lib/smf/toy/virtual.rb', line 115

def vel
  @vel
end