class Music::Transcription::Tempo::NPM

Public Instance Methods

to_bpm(beat_dur) click to toggle source
# File lib/music-transcription/conversion/tempo_conversion.rb, line 42
def to_bpm beat_dur
  Tempo::BPM.new(Rational(@value,beat_dur))
end
to_nps() click to toggle source
# File lib/music-transcription/conversion/tempo_conversion.rb, line 38
def to_nps
  Tempo::NPS.new(Rational(@value,60))
end
to_qnpm() click to toggle source
# File lib/music-transcription/conversion/tempo_conversion.rb, line 34
def to_qnpm
  Tempo::QNPM.new(4*@value)
end
to_s() click to toggle source
# File lib/music-transcription/model/tempo.rb, line 20
def to_s; "#{@value}npm" end