X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpitch.cc;h=bc8a9e45a6cd9b8467ecc3af1344deed84da3998;hb=f26ba98bff8314bf0b379d3eea7fb3bee7e31dc3;hp=7c43708890d506db29b1059ecafc77ef4d56b7bc;hpb=a276a19dc6bd57832db3107f2f2cbb04cb4677b6;p=lilypond.git diff --git a/lily/pitch.cc b/lily/pitch.cc index 7c43708890..bc8a9e45a6 100644 --- a/lily/pitch.cc +++ b/lily/pitch.cc @@ -67,6 +67,10 @@ Pitch::tone_pitch () const o--; } + /* + we're effictively hardcoding the octave to 6 whole-tones, + which is as arbitrary as coding it to 1200 cents + */ Rational tones ((o + n / scale_->step_tones_.size ()) * 6, 1); tones += scale_->step_tones_[n % scale_->step_tones_.size ()]; @@ -119,7 +123,7 @@ Pitch::normalize () alteration_ = Rational (0); alteration_ -= tone_pitch () - pitch; } - while (alteration_ < Rational(-1)) + while (alteration_ < Rational (-1)) { if (notename_ == 0) {