Skip to content

Commit

Permalink
Add stubs for writing segnos, codas and rehearsals
Browse files Browse the repository at this point in the history
  • Loading branch information
SemitoneGene committed Jan 16, 2023
1 parent 992ab7a commit 3d1067a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Sourcecode/private/mx/impl/DirectionWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,33 @@ namespace mx
addDirectionType( outDirType, directionPtr );
}
}

if( myDirectionData.segnos.size() > 0 ) {

for( const auto& rehearsal : myDirectionData.segnos ) {
auto outDirType = core::makeDirectionType();
outDirType->setChoice( core::DirectionType::Choice::segno );
this->addDirectionType( outDirType, directionPtr );
}
}

if( myDirectionData.codas.size() > 0 ) {

for( const auto& rehearsal : myDirectionData.codas ) {
auto outDirType = core::makeDirectionType();
outDirType->setChoice( core::DirectionType::Choice::coda );
this->addDirectionType( outDirType, directionPtr );
}
}

if( myDirectionData.rehearsals.size() > 0 ) {

for( const auto& rehearsal : myDirectionData.rehearsals ) {
auto outDirType = core::makeDirectionType();
outDirType->setChoice( core::DirectionType::Choice::rehearsal );
this->addDirectionType( outDirType, directionPtr );
}
}

if( myIsFirstDirectionTypeAdded )
{
Expand Down

0 comments on commit 3d1067a

Please sign in to comment.