From 383dcaf54fade21ceb206565a61b446edfa01ee4 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Tue, 20 Feb 2024 15:56:36 +0100 Subject: [PATCH] Write fermata for rest and mRest in PAE output --- src/iopae.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/iopae.cpp b/src/iopae.cpp index 6fc7fa27d76..938efd8d54f 100644 --- a/src/iopae.cpp +++ b/src/iopae.cpp @@ -401,7 +401,12 @@ void PAEOutput::WriteMRest(MRest *mRest) if (m_skip) return; + bool fermata = this->HasFermata(mRest); + if (fermata) m_streamStringOutput << "("; + m_streamStringOutput << "="; + + if (fermata) m_streamStringOutput << ")"; } void PAEOutput::WriteMultiRest(MultiRest *multiRest) @@ -479,7 +484,13 @@ void PAEOutput::WriteRest(Rest *rest) if (m_skip) return; this->WriteDur(rest); + + bool fermata = this->HasFermata(rest); + if (fermata) m_streamStringOutput << "("; + m_streamStringOutput << "-"; + + if (fermata) m_streamStringOutput << ")"; } void PAEOutput::WriteSpace(Space *space)