Class: Musicality::MidiEvent::Expression

Inherits:
Musicality::MidiEvent show all
Defined in:
lib/musicality/performance/midi/midi_events.rb

Constant Summary

Constants inherited from Musicality::MidiEvent

ORDERING

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Musicality::MidiEvent

#<=>

Constructor Details

#initialize(volume) ⇒ Expression

Returns a new instance of Expression.



24
25
26
# File 'lib/musicality/performance/midi/midi_events.rb', line 24

def initialize volume
  @volume = volume
end

Instance Attribute Details

#volumeObject (readonly)

Returns the value of attribute volume.



23
24
25
# File 'lib/musicality/performance/midi/midi_events.rb', line 23

def volume
  @volume
end