From 5e053eb3809903b7f97566a10fe773d49f644eda Mon Sep 17 00:00:00 2001 From: Andrew Hankinson Date: Mon, 11 Mar 2024 17:43:30 +0100 Subject: [PATCH] Formatting --- include/vrv/iopae.h | 1 + src/featureextractor.cpp | 4 ++-- src/iopae.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/vrv/iopae.h b/include/vrv/iopae.h index 7d40d7db64e..77313365e15 100644 --- a/include/vrv/iopae.h +++ b/include/vrv/iopae.h @@ -95,6 +95,7 @@ class PAEOutput : public Output { * Helper method to return a string representation of the PAE duration. */ static std::string GetPaeDur(data_DURATION dur, int ndots); + private: /** * @name Methods for writing containers (measures, staff, etc) scoreDef and related. diff --git a/src/featureextractor.cpp b/src/featureextractor.cpp index cc0854ce3dd..fad1e07b47b 100644 --- a/src/featureextractor.cpp +++ b/src/featureextractor.cpp @@ -72,9 +72,9 @@ void FeatureExtractor::Extract(const Object *object) std::stringstream pitch; std::stringstream pitchWithDuration; - + pitchWithDuration << PAEOutput::GetPaeDur(note->GetDur(), note->GetDots()); - + data_OCTAVE oct = note->GetOct(); char octSign = (oct > 3) ? '\'' : ','; int signCount = (oct > 3) ? (oct - 3) : (4 - oct); diff --git a/src/iopae.cpp b/src/iopae.cpp index 0c730ac9eb1..2c8f098e8a2 100644 --- a/src/iopae.cpp +++ b/src/iopae.cpp @@ -566,7 +566,7 @@ std::string PAEOutput::GetPaeDur(data_DURATION ndur, int ndots) case (DURATION_semifusa): dur = "6"; break; default: LogWarning("Unsupported duration"); dur = "4"; } - + if (ndots > 0) { dur += std::string(ndots, '.'); }