Skip to content

Commit

Permalink
fix #20849: Chords do not change in 'Concert Pitch'
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Apr 23, 2013
1 parent e450ab5 commit dd8e95f
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions libmscore/transpose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,18 +227,13 @@ void Score::cmdTransposeStaff(int staffIdx, Interval interval, bool useDoubleSha
foreach(Note* n, nl)
transpose(n, interval, useDoubleSharpsFlats);
}
}

for (Measure* m = firstMeasure(); m; m = m->nextMeasure()) {
foreach (Element* e, *m->el()) {
if (e->type() != Element::HARMONY)
foreach (Element* e, segment->annotations()) {
if ((e->type() != Element::HARMONY) || (e->track() < startTrack) || (e->track() >= endTrack))
continue;
if (e->track() >= startTrack && e->track() < endTrack) {
Harmony* h = static_cast<Harmony*>(e);
int rootTpc = transposeTpc(h->rootTpc(), interval, false);
int baseTpc = transposeTpc(h->baseTpc(), interval, false);
undoTransposeHarmony(h, rootTpc, baseTpc);
}
Harmony* h = static_cast<Harmony*>(e);
int rootTpc = transposeTpc(h->rootTpc(), interval, false);
int baseTpc = transposeTpc(h->baseTpc(), interval, false);
undoTransposeHarmony(h, rootTpc, baseTpc);
}
}
}
Expand Down

0 comments on commit dd8e95f

Please sign in to comment.