From 9d2eef93b2ffbebbbbdb18245851500afd29025e Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 6 May 2007 05:21:04 +0000 Subject: [PATCH] Fix low MMA pitches --- Sources/VLModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/VLModel.cpp b/Sources/VLModel.cpp index 700e2a8..557cc93 100644 --- a/Sources/VLModel.cpp +++ b/Sources/VLModel.cpp @@ -255,7 +255,7 @@ void VLNote::MMAName(std::string & name, VLFraction at, VLFraction dur, VLFracti if (pitch != kNoPitch) { for (int raise = (pitch-kMiddleC)/kOctave; raise>0; --raise) name += '+'; - for (int lower = (kMiddleC-pitch)/kOctave; lower>0; --lower) + for (int lower = (kMiddleC+kOctave-1-pitch)/kOctave; lower>0; --lower) name += '-'; } if (fTied & kTiedWithNext)