Class: Music::Transcription::Tempo::QNPM
Constant Summary
CONVERSION_METHOD, PARSER
Constants included
from Parseable
Parseable::DEFAULT_SPLIT_PATTERN
Instance Attribute Summary
#value
Instance Method Summary
collapse
#==, #clone, #convert, #initialize
Methods included from Parseable
included
Instance Method Details
#to_bpm(beat_dur) ⇒ Object
28
29
30
|
# File 'lib/music-transcription/conversion/tempo_conversion.rb', line 28
def to_bpm beat_dur
Tempo::BPM.new(Rational(@value,4*beat_dur))
end
|
#to_npm ⇒ Object
20
21
22
|
# File 'lib/music-transcription/conversion/tempo_conversion.rb', line 20
def to_npm
Tempo::NPM.new(Rational(@value,4))
end
|
#to_nps ⇒ Object
24
25
26
|
# File 'lib/music-transcription/conversion/tempo_conversion.rb', line 24
def to_nps
Tempo::NPS.new(Rational(@value,240))
end
|
#to_s ⇒ Object
19
|
# File 'lib/music-transcription/model/tempo.rb', line 19
def to_s; "#{@value}qnpm" end
|