class Music::Transcription::Tempo::NPS

Public Instance Methods

to_bpm(beat_dur) click to toggle source
# File lib/music-transcription/conversion/tempo_conversion.rb, line 66
def to_bpm beat_dur
  Tempo::BPM.new(Rational(60,@value*beat_dur))
end
to_npm() click to toggle source
# File lib/music-transcription/conversion/tempo_conversion.rb, line 70
def to_npm
  Tempo::NPM.new(Rational(60,@value))
end
to_qnpm() click to toggle source
# File lib/music-transcription/conversion/tempo_conversion.rb, line 62
def to_qnpm
  Tempo::QNPM.new(Rational(240,@value))
end
to_s() click to toggle source
# File lib/music-transcription/model/tempo.rb, line 22
def to_s; "#{@value}nps" end