Skip to content

Commit

Permalink
import Volpiano barlines and breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Aug 8, 2024
1 parent 4b4f0cd commit 3ada618
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/iovolpiano.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

//----------------------------------------------------------------------------

#include "barline.h"
#include "clef.h"
#include "doc.h"
#include "layer.h"
Expand Down Expand Up @@ -110,6 +111,20 @@ bool VolpianoInput::Import(const std::string &volpiano)
else if (ch == 'I' || ch == 'W' || ch == 'X' || ch == 'Y' || ch == 'Z') {
accidVal = ACCIDENTAL_WRITTEN_n;
}
else if (ch == '3') {
BarLine *single = new BarLine();
layer->AddChild(single);
}
else if (ch == '4') {
BarLine *dbl = new BarLine();
dbl->SetForm(BARRENDITION_dbl);
layer->AddChild(dbl);
}
else if (ch == '7') {
BarLine *takt = new BarLine();
takt->SetMethod(BARMETHOD_takt);
layer->AddChild(takt);
}
}

// add minimal scoreDef
Expand Down

0 comments on commit 3ada618

Please sign in to comment.