From 45f98adcc56d636ecc85759233273738930d2dca Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 6 Apr 2008 22:33:07 +0000 Subject: [PATCH] Use flats in C major --- Sources/VLLilypondWriter.cpp | 2 +- Sources/VLSheetView.mm | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Sources/VLLilypondWriter.cpp b/Sources/VLLilypondWriter.cpp index 6a5355d..465b764 100644 --- a/Sources/VLLilypondWriter.cpp +++ b/Sources/VLLilypondWriter.cpp @@ -40,7 +40,7 @@ void VLLilypondWriter::VisitMeasure(size_t m, VLProperties & p, VLMeasure & meas else measNo[0] = 0; - fUseSharps = p.fKey >= 0; + fUseSharps = p.fKey > 0; fInPickup = fInPickup && !m && meas.NoChords(); // diff --git a/Sources/VLSheetView.mm b/Sources/VLSheetView.mm index d0b2fae..eb017c1 100644 --- a/Sources/VLSheetView.mm +++ b/Sources/VLSheetView.mm @@ -159,8 +159,8 @@ VLMusicElement sSemi2Accidental[12][12] = { {_ F _ _ N _ F _ _ N _ N}, // Eb major - 3 flats {_ F _ _ N _ F _ F _ _ N}, // Bb major - 2 flats {_ F _ F _ _ F _ F _ _ N}, // F major - 1 flat + {_ F _ F _ _ F _ F _ F _}, // C major // C C#D D#E F F#G G#A A#B - {_ S _ S _ _ S _ S _ S _}, // C major {_ S _ S _ N _ _ S _ S _}, // G major - 1 sharp {N _ _ S _ N _ _ S _ S _}, // D major - 2 sharps {N _ _ S _ N _ N _ _ S _}, // A major - 3 sharps @@ -177,7 +177,7 @@ VLMusicElement sSemi2Accidental[12][12] = { { int semi = pitch % 12; int key = [self song]->fProperties.front().fKey; - bool useSharps = key >= 0; + bool useSharps = key > 0; return sSemi2Pitch[useSharps][semi]; } @@ -901,13 +901,11 @@ static int8_t sSharpAcc[] = { { bool inMeasureSelection = fCursorRegion == kRegionMeasure; - NSLog(@"Dragged\n"); if (!inMeasureSelection) [super mouseDragged:event]; [self autoscroll:event]; if (inMeasureSelection) [self adjustSelection:event]; - NSLog(@"Region: %d\n", fCursorRegion); } - (void) keyDown:(NSEvent *)event