From 562c9905db0fd69a9e4a6f376d9089e98a53592c Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Mon, 20 Jan 2025 10:47:27 +0100 Subject: [PATCH] Penality for note spelling is incorrect for Ab (4 flats) Backport of #5257 --- libmscore/pitchspelling.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libmscore/pitchspelling.cpp b/libmscore/pitchspelling.cpp index 74814a9b087b1..e3c7fa6fad7e4 100644 --- a/libmscore/pitchspelling.cpp +++ b/libmscore/pitchspelling.cpp @@ -14,13 +14,13 @@ // algorithmus from Emilios Cambouropoulos as published in: // "Automatic Pitch Spelling: From Numbers to Sharps and Flats" -#include "note.h" +#include "chord.h" #include "key.h" +#include "note.h" +#include "part.h" #include "pitchspelling.h" -#include "staff.h" -#include "chord.h" #include "score.h" -#include "part.h" +#include "staff.h" #include "utils.h" #include "audio/midi/event.h" @@ -432,7 +432,7 @@ static const int enharmonicSpelling[15][34] = { //As f c g d a e b 1, 1, 1, 1, 1, 1, // bb 1, 1, 0, 0, 0, 0, 0, // b - 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, // # 1, 1, 1, 1, 1, 1, 1 // ## },