class Music::Transcription::Tempo::QNPM
Public Instance Methods
to_bpm(beat_dur)
click to toggle source
# 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()
click to toggle source
# File lib/music-transcription/conversion/tempo_conversion.rb, line 20 def to_npm Tempo::NPM.new(Rational(@value,4)) end
to_nps()
click to toggle source
# File lib/music-transcription/conversion/tempo_conversion.rb, line 24 def to_nps Tempo::NPS.new(Rational(@value,240)) end
to_s()
click to toggle source
# File lib/music-transcription/model/tempo.rb, line 19 def to_s; "#{@value}qnpm" end