Merge pull request #12863 from Jojo-Schmitz/caesura-single-stroke
[MU4] Add single stroke caesura
This commit is contained in:
commit
ffe2053adf
5 changed files with 7 additions and 15 deletions
|
@ -47,6 +47,7 @@ const std::vector<BreathType> Breath::breathList {
|
|||
{ SymId::caesuraShort, true, 2.0 },
|
||||
{ SymId::caesuraThick, true, 2.0 },
|
||||
{ SymId::chantCaesura, true, 2.0 },
|
||||
{ SymId::caesuraSingleStroke, true, 2.0 },
|
||||
};
|
||||
|
||||
//---------------------------------------------------------
|
||||
|
|
|
@ -3809,7 +3809,7 @@ constexpr const std::array<const char*, size_t(SymId::lastSym) + 1> SymNames::s_
|
|||
QT_TRANSLATE_NOOP("engraving/sym", "Caesura"),
|
||||
QT_TRANSLATE_NOOP("engraving/sym", "Curved caesura"),
|
||||
QT_TRANSLATE_NOOP("engraving/sym", "Short caesura"),
|
||||
"Single stroke caesura",
|
||||
QT_TRANSLATE_NOOP("engraving/sym", "Single stroke caesura"),
|
||||
QT_TRANSLATE_NOOP("engraving/sym", "Thick caesura"),
|
||||
"Accentus above",
|
||||
"Accentus below",
|
||||
|
|
|
@ -991,21 +991,11 @@ QString ExportBrailleImpl::brailleBreath(Breath* breath)
|
|||
return QString();
|
||||
}
|
||||
|
||||
switch (breath->symId()) {
|
||||
case SymId::breathMarkTick:
|
||||
case SymId::breathMarkComma:
|
||||
case SymId::breathMarkUpbow:
|
||||
case SymId::breathMarkSalzedo:
|
||||
return BRAILLE_BREATH;
|
||||
case SymId::caesura:
|
||||
case SymId::caesuraShort:
|
||||
case SymId::caesuraThick:
|
||||
case SymId::caesuraCurved:
|
||||
if (breath->isCaesura()) {
|
||||
return BRAILLE_CAESURA;
|
||||
default:
|
||||
break;
|
||||
} else {
|
||||
return BRAILLE_BREATH;
|
||||
}
|
||||
return QString();
|
||||
}
|
||||
|
||||
BarLine* ExportBrailleImpl::lastBarline(Measure* measure, track_idx_t track)
|
||||
|
|
|
@ -969,7 +969,7 @@ PalettePtr PaletteCreator::newBreathPalette(bool defaultPalette)
|
|||
}
|
||||
|
||||
for (BreathType breath : Breath::breathList) {
|
||||
if (breath.id == SymId::chantCaesura && defaultPalette) {
|
||||
if ((breath.id == SymId::chantCaesura || breath.id == SymId::caesuraSingleStroke) && defaultPalette) {
|
||||
continue;
|
||||
}
|
||||
auto a = Factory::makeBreath(gpaletteScore->dummy()->segment());
|
||||
|
|
|
@ -256,6 +256,7 @@
|
|||
"caesura": null,
|
||||
"caesuraCurved": null,
|
||||
"caesuraShort": null,
|
||||
"caesuraSingleStroke": null,
|
||||
"caesuraThick": null,
|
||||
"chantCaesura": null,
|
||||
"coda": null,
|
||||
|
|
Loading…
Reference in a new issue