Fix low MMA pitches

This commit is contained in:
Matthias Neeracher 2007-05-06 05:21:04 +00:00
parent 4afefae126
commit 9d2eef93b2

View File

@ -255,7 +255,7 @@ void VLNote::MMAName(std::string & name, VLFraction at, VLFraction dur, VLFracti
if (pitch != kNoPitch) { if (pitch != kNoPitch) {
for (int raise = (pitch-kMiddleC)/kOctave; raise>0; --raise) for (int raise = (pitch-kMiddleC)/kOctave; raise>0; --raise)
name += '+'; name += '+';
for (int lower = (kMiddleC-pitch)/kOctave; lower>0; --lower) for (int lower = (kMiddleC+kOctave-1-pitch)/kOctave; lower>0; --lower)
name += '-'; name += '-';
} }
if (fTied & kTiedWithNext) if (fTied & kTiedWithNext)