Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/engraving/dom/chordlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ void ChordList::read(XmlReader& e, int mscVersion)
} else if (tag == "renderFunction") {
readRenderList(e.readText(), renderListFunction);
} else if (tag == "renderBase") {
readRenderList(e.readText(), renderListBase);
readRenderList(e.readText(), renderListBass);
} else {
e.unknown();
}
Expand Down Expand Up @@ -1803,8 +1803,8 @@ void ChordList::write(XmlWriter& xml) const
if (!renderListFunction.empty()) {
writeRenderList(xml, renderListFunction, "renderFunction");
}
if (!renderListBase.empty()) {
writeRenderList(xml, renderListBase, "renderBase");
if (!renderListBass.empty()) {
writeRenderList(xml, renderListBass, "renderBase");
}
for (const auto& p : *this) {
const ChordDescription& cd = p.second;
Expand Down Expand Up @@ -1923,7 +1923,7 @@ void ChordList::unload()
m_symbols.clear();
fonts.clear();
renderListRoot.clear();
renderListBase.clear();
renderListBass.clear();
chordTokenList.clear();
m_autoAdjust = false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/engraving/dom/chordlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class ChordList : public std::map<int, ChordDescription>
std::list<ChordFont> fonts;
std::list<RenderAction> renderListRoot;
std::list<RenderAction> renderListFunction;
std::list<RenderAction> renderListBase;
std::list<RenderAction> renderListBass;
std::list<ChordToken> chordTokenList;
static int privateID;

Expand Down
2 changes: 1 addition & 1 deletion src/engraving/dom/chordrest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ EngravingItem* ChordRest::drop(EditData& data)
if (!style().styleB(Sid::concertPitch) && !interval.isZero()) {
interval.flip();
int rootTpc = transposeTpc(harmony->rootTpc(), interval, true);
int baseTpc = transposeTpc(harmony->baseTpc(), interval, true);
int baseTpc = transposeTpc(harmony->bassTpc(), interval, true);
score()->undoTransposeHarmony(harmony, rootTpc, baseTpc);
}
// render
Expand Down
2 changes: 1 addition & 1 deletion src/engraving/dom/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4284,7 +4284,7 @@ void Score::cmdRealizeChordSymbols(bool literal, Voicing voicing, HDuration dura
if (!concertPitch) {
offset = interval.chromatic;
}
notes = r.generateNotes(h->rootTpc(), h->baseTpc(),
notes = r.generateNotes(h->rootTpc(), h->bassTpc(),
literal, voicing, offset);
}

Expand Down
2 changes: 1 addition & 1 deletion src/engraving/dom/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6534,7 +6534,7 @@ void Score::undoAddElement(EngravingItem* element, bool addToLinkedStaves, bool
interval.flip();
}
int rootTpc = transposeTpc(h->rootTpc(), interval, true);
int baseTpc = transposeTpc(h->baseTpc(), interval, true);
int baseTpc = transposeTpc(h->bassTpc(), interval, true);
score->undoTransposeHarmony(h, rootTpc, baseTpc);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/engraving/dom/excerpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ void Excerpt::createExcerpt(Excerpt* excerpt)
}
Harmony* h = toHarmony(e);
int rootTpc = mu::engraving::transposeTpc(h->rootTpc(), interval, true);
int baseTpc = mu::engraving::transposeTpc(h->baseTpc(), interval, true);
int baseTpc = mu::engraving::transposeTpc(h->bassTpc(), interval, true);
// mmrests are on by default in part
// if this harmony is attached to an mmrest,
// be sure to transpose harmony in underlying measure as well
Expand Down
Loading
Loading