Skip to content

Commit

Permalink
Write fermata for rest and mRest in PAE output
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Feb 20, 2024
1 parent 7ce8b6d commit 383dcaf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/iopae.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 383dcaf

Please sign in to comment.