Class: MidiLyrics::Tempo

Inherits:
Object
  • Object
show all
Defined in:
lib/midi_lyrics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fields = {}) ⇒ Tempo

Returns a new instance of Tempo.



10
11
12
13
# File 'lib/midi_lyrics.rb', line 10

def initialize(fields = {})
  self.start = fields[:start].to_f
  self.tempo = fields[:tempo].to_f
end

Instance Attribute Details

#durationObject

Returns the value of attribute duration.



8
9
10
# File 'lib/midi_lyrics.rb', line 8

def duration
  @duration
end

#startObject

Returns the value of attribute start.



8
9
10
# File 'lib/midi_lyrics.rb', line 8

def start
  @start
end

#tempoObject

Returns the value of attribute tempo.



8
9
10
# File 'lib/midi_lyrics.rb', line 8

def tempo
  @tempo
end