MUSX Document Model
Loading...
Searching...
No Matches
Others.h
1/*
2 * Copyright (C) 2025, Robert Patterson
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 * THE SOFTWARE.
21 */
22#pragma once
23
24#include <string>
25#include <unordered_map>
26#include <vector>
27#include <memory>
28#include <stdexcept>
29#include <map>
30#include <tuple>
31
32#include "musx/util/EnigmaString.h"
33#include "musx/util/Logger.h"
34#include "musx/util/Fraction.h"
35#include "musx/dom/PercussionNoteType.h"
36
37#include "BaseClasses.h"
38#include "CommonClasses.h"
39#include "Options.h"
40 // do not add other dom class dependencies. Use Implementations.cpp for implementations that need total class access.
41
42namespace musx {
43namespace dom {
44
45class Entry;
46class NoteInfoPtr;
47
48namespace details {
49class FretboardDiagram;
50class GFrameHold;
51class IndependentStaffDetails;
52class StaffGroup;
53}
54
59namespace others {
60
61class Staff;
62class StaffComposite;
63class StaffList;
64class StaffListCategoryScore;
65class StaffListCategoryParts;
66class StaffListRepeatScore;
67class StaffListRepeatParts;
68class StaffListRepeatScoreForced;
69class StaffListRepeatPartsForced;
70
71template<class ScoreList, class PartsList, class ScoreForcedList, class PartsForcedList>
72class StaffListSet;
73
76
79
97class AcciAmountFlats : public OthersArray<int, 7>
98{
99 std::string_view xmlTag() const override { return XmlNodeName; }
100
101public:
103
104 constexpr static std::string_view XmlNodeName = "acciAmountFlats";
106};
107
130class AcciAmountSharps : public OthersArray<int, 7>
131{
132 std::string_view xmlTag() const override { return XmlNodeName; }
133
134public:
136
137 constexpr static std::string_view XmlNodeName = "acciAmountSharps";
139};
140
156class AcciOrderFlats : public OthersArray<unsigned, 7>
157{
158 std::string_view xmlTag() const override { return XmlNodeName; }
159
160public:
162
163 constexpr static std::string_view XmlNodeName = "acciOrderFlats";
165};
166
187class AcciOrderSharps : public OthersArray<unsigned, 7>
188{
189 std::string_view xmlTag() const override { return XmlNodeName; }
190
191public:
193
194 constexpr static std::string_view XmlNodeName = "acciOrderSharps";
196};
197
208{
209public:
216 {
219 StemSide,
221 AboveEntry,
222 BelowEntry,
223 };
224
229 enum class CopyMode
230 {
231 None,
232 Vertical,
234 };
235
241 {
242 Ignore,
243 InsideSlur,
244 AvoidSlur
245 };
246
252 explicit ArticulationDef(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
253 : OthersBase(document, partId, shareMode, cmper), fontMain(new FontInfo(document)), fontAlt(new FontInfo(document)) {}
254
255 char32_t charMain{};
256 std::shared_ptr<FontInfo> fontMain;
258 bool useTopNote{};
259 bool autoHorz{};
260 bool autoVert{};
265 bool insideSlur{};
266 bool noPrint{};
267 bool autoStack{};
270 char32_t charAlt{};
271 std::shared_ptr<FontInfo> fontAlt;
277 bool playArtic{};
280 bool mainIsShape{};
281 bool altIsShape{};
297
298 constexpr static std::string_view XmlNodeName = "articDef";
300};
301
344{
345public:
347 explicit BeatChartElement(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
348 : OthersBase(document, partId, shareMode, cmper, inci)
349 {
350 }
351
367
368 // Populated only when the XML node includes a <control> element
369 std::shared_ptr<Control> control;
370
371 // Populated for standard beat entries (inci > 0)
376
377 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
378 {
380 if (control && getInci() != 0) {
381 MUSX_INTEGRITY_ERROR("Beat chart for measure " + std::to_string(getCmper()) + " has a control instance in inci " + std::to_string(*getInci()));
382 }
383 if (getInci() == 0 && !control) {
384 control = std::make_shared<Control>();
385 MUSX_INTEGRITY_ERROR("Beat chart for measure " + std::to_string(getCmper()) + " is missing its control instance.");
386 }
387 }
388
389 constexpr static std::string_view XmlNodeName = "beatChart";
391};
392
406{
407public:
412 enum class Prefix
413 {
414 None,
415 Minus,
416 Plus,
417 Sharp,
418 Flat
419 };
420
422 explicit ChordSuffixElement(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
423 : OthersBase(document, partId, shareMode, cmper, inci), font(new FontInfo(document))
424 {
425 }
426
427 std::shared_ptr<FontInfo> font;
428 char32_t symbol{};
431 bool isNumber{};
433
434 constexpr static std::string_view XmlNodeName = "chordSuffix";
436};
437
452class ChordSuffixPlayback : public OthersArray<int16_t>
453{
454 std::string_view xmlTag() const override { return XmlNodeName; }
455
456public:
458
459 constexpr static std::string_view XmlNodeName = "chordSuffixPlay";
461};
462
472class ClefList : public OthersBase
473{
474public:
476 explicit ClefList(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
477 : OthersBase(document, partId, shareMode, cmper, inci)
478 {
479 }
480
481 // Public properties corresponding to the XML structure, in the same order as in the XML.
487 int percent{};
490 bool unlockVert{};
492
493 constexpr static std::string_view XmlNodeName = "clefEnum";
495};
496
503class DrumStaff : public OthersBase
504{
505public:
507 explicit DrumStaff(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
508 : OthersBase(document, partId, shareMode, cmper) {}
509
512
513 constexpr static std::string_view XmlNodeName = "drumStaff";
515};
516
524{
525public:
527
528 constexpr static std::string_view XmlNodeName = "drumStaffStyle";
529};
530
540{
541 static constexpr uint32_t SYMBOL_CHARSET_MAC = 0xfff; // (4095)
542 static constexpr uint32_t SYMBOL_CHARSET_WIN = 2;
543
544public:
546 explicit FontDefinition(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
547 : OthersBase(document, partId, shareMode, cmper) {}
548
552 {
553 MacOS,
554 Windows
555 };
556
557 // Public properties corresponding to the XML structure
564 int pitch{};
565 int family{};
566 std::string name;
567
581 bool calcIsSymbolFont() const
582 {
583 if (charsetBank == CharacterSetBank::MacOS && charsetVal == SYMBOL_CHARSET_MAC) {
584 return true;
585 }
586 if (charsetBank == CharacterSetBank::Windows && charsetVal == SYMBOL_CHARSET_WIN) {
587 return true;
588 }
589 return false;
590 }
591
592 constexpr static std::string_view XmlNodeName = "fontName";
594};
595
609class Frame : public OthersBase
610{
611public:
613 explicit Frame(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci = 0)
614 : OthersBase(document, partId, shareMode, cmper, inci) {}
615
619
623 bool iterateRawEntries(std::function<bool(const MusxInstance<Entry>& entry)> iterator) const;
624
630
631 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
632 {
633 this->OthersBase::integrityCheck(ptrToThis);
634 if (startTime && (startEntry || endEntry)) {
635 MUSX_INTEGRITY_ERROR("Frame " + std::to_string(getCmper()) + " has non-zero startTime and non-zero startEntry or endEntry.");
636 }
637 if (!startTime && !startEntry) {
638 MUSX_INTEGRITY_ERROR("Frame " + std::to_string(getCmper()) + " has no start entry.");
639 }
640 if (!startTime && !endEntry) {
641 MUSX_INTEGRITY_ERROR("Frame " + std::to_string(getCmper()) + " has no end entry.");
642 }
643 }
644
645 constexpr static std::string_view XmlNodeName = "frameSpec";
647};
648
649class FretInstrument;
663{
664public:
666 explicit FretboardGroup(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
667 : OthersBase(document, partId, shareMode, cmper, inci)
668 {
669 }
670
672 std::string name;
673
676
679
680 constexpr static std::string_view XmlNodeName = "fretGroup";
682};
683
693{
694public:
696 explicit FretboardStyle(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
697 : OthersBase(document, partId, shareMode, cmper)
698 {
699 }
700
702 bool rotate{};
720 std::shared_ptr<FontInfo> fretNumFont;
721 std::shared_ptr<FontInfo> fingNumFont;
724 std::string name;
725 std::string fretNumText;
726
727 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
728 {
729 this->OthersBase::integrityCheck(ptrToThis);
730 if (!fretNumFont) {
731 fretNumFont = std::make_shared<FontInfo>(getDocument());
732 }
733 if (!fingNumFont) {
734 fingNumFont = std::make_shared<FontInfo>(getDocument());
735 }
736 }
737
738 constexpr static std::string_view XmlNodeName = "fretStyle";
740};
741
751{
752public:
754 explicit FretInstrument(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
755 : OthersBase(document, partId, shareMode, cmper)
756 {
757 }
758
764 {
765 public:
766 int pitch{};
767 int nutOffset{};
769
771 };
772
773 int numFrets{};
775 std::string name;
776 std::vector<std::shared_ptr<StringInfo>> strings;
777 std::vector<int> fretSteps;
782
783 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
784 {
785 this->OthersBase::integrityCheck(ptrToThis);
786 if (numStrings != int(strings.size())) {
787 MUSX_INTEGRITY_ERROR("Fret instrument " + std::to_string(getCmper()) + " specifies " + std::to_string(numStrings)
788 + " strings but has " + std::to_string(strings.size()) + " StringInfo instances.");
789 }
790 if (!fretSteps.empty() && numFrets != int(fretSteps.size())) {
791 util::Logger::log(util::Logger::LogLevel::Info, "Fret instrument " + std::to_string(getCmper()) + " specifies " + std::to_string(numFrets)
792 + " frets but has " + std::to_string(fretSteps.size()) + " diatonic fret steps specified.");
793 }
794 }
795
796 constexpr static std::string_view XmlNodeName = "fretInst";
798};
799
806class KeyFormat : public OthersBase {
807public:
809 explicit KeyFormat(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
810 : OthersBase(document, partId, shareMode, cmper) {}
811
812 unsigned semitones{};
813 unsigned scaleTones{};
814
815 constexpr static std::string_view XmlNodeName = "keyFormat";
817};
818
825class KeyMapArray : public OthersBase {
826public:
828 explicit KeyMapArray(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
829 : OthersBase(document, partId, shareMode, cmper) {}
830
835 public:
836 bool diatonic{};
837 unsigned hlevel{};
838
840 };
841
842 std::vector<std::shared_ptr<StepElement>> steps;
843
845 unsigned countDiatonicSteps() const
846 {
847 return static_cast<unsigned>(std::count_if(steps.begin(), steps.end(), [](const auto& step) {
848 return step->diatonic;
849 }));
850 }
851
852 constexpr static std::string_view XmlNodeName = "keyMap";
854};
855
863class KeyAttributes : public OthersBase {
864public:
866 explicit KeyAttributes(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
867 : OthersBase(document, partId, shareMode, cmper) {}
868
869 // Public properties corresponding to the XML structure
870 int harmRefer{};
876 int gotoKey{};
880 bool hasClefOctv{};
881
882 constexpr static std::string_view XmlNodeName = "keysAttrib";
884};
885
896public:
898 explicit LayerAttributes(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
899 : OthersBase(document, partId, shareMode, cmper) {}
900
901 // Public properties corresponding to the XML structure
907 bool freezeLayer{};
908 bool playback{};
912 bool hideLayer{};
913
914 constexpr static std::string_view XmlNodeName = "layerAtts";
916};
917
932
957
979
997
998class ShapeExpressionDef;
999class TextExpressionDef;
1000
1008public:
1013 enum class CategoryType : Cmper
1014 {
1015 Invalid,
1016 Dynamics,
1017 TempoMarks,
1022 Misc
1023 };
1024
1026 explicit MarkingCategory(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
1027 : OthersBase(document, partId, shareMode, cmper) {}
1028
1030
1031 // Font information for the marking category
1032 std::shared_ptr<FontInfo> textFont;
1033 std::shared_ptr<FontInfo> musicFont;
1034 std::shared_ptr<FontInfo> numberFont;
1035
1039
1040 // Vertical and horizontal offsets for positioning adjustments
1044
1045 // Usage flags representing certain behaviors and visual elements
1054
1055 // Staff list represented as an integer
1057
1062 std::map<Cmper, MusxInstanceWeak<ShapeExpressionDef>> shapeExpressions;
1063
1068 std::map<Cmper, MusxInstanceWeak<TextExpressionDef>> textExpressions;
1069
1071 std::string getName() const;
1072
1076
1077 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1078 {
1079 this->OthersBase::integrityCheck(ptrToThis);
1080 if (!textFont) {
1081 textFont = std::make_shared<FontInfo>(ptrToThis->getDocument());
1082 MUSX_INTEGRITY_ERROR("Marking category " + std::to_string(getCmper()) + " is missing text font.");
1083 }
1084 if (!musicFont) {
1085 musicFont = std::make_shared<FontInfo>(ptrToThis->getDocument());
1086 MUSX_INTEGRITY_ERROR("Marking category " + std::to_string(getCmper()) + " is missing music font.");
1087 }
1088 if (!numberFont) {
1089 numberFont = std::make_shared<FontInfo>(ptrToThis->getDocument());
1090 util::Logger::log(util::Logger::LogLevel::Info, "Marking category " + std::to_string(getCmper()) + " is missing number font.");
1091 }
1092 }
1093
1094 constexpr static std::string_view XmlNodeName = "markingsCategory";
1096};
1097
1107public:
1109
1110 constexpr static std::string_view XmlNodeName = "markingsCategoryName";
1111};
1112
1120class Measure : public OthersBase {
1121public:
1123 explicit Measure(const DocumentWeakPtr& document, Cmper measureId, ShareMode shareMode, Cmper cmper)
1124 : OthersBase(document, measureId, shareMode, cmper) {}
1125
1136
1139 enum class BarlineType
1140 {
1141 None,
1143 Normal,
1144 Double,
1145 Final,
1146 Solid,
1147 Dashed,
1148 Tick,
1149 Custom
1150 };
1151
1155 {
1156 IfNeeded,
1157 Always,
1158 Never
1159 };
1160
1164 {
1165 IfNeeded,
1166 Always,
1167 Never
1168 };
1169
1171 std::shared_ptr<KeySignature> globalKeySig;
1196 bool noMeasNum{};
1197 bool hasOssia{};
1202 bool hasEnding{};
1204 bool abbrvTime{};
1207 bool hasChord{};
1211 bool pageBreak{};
1212
1215 { return getCmper() == 1 || showFullNames; }
1216
1221
1228 std::optional<int> calcDisplayNumber() const;
1229
1233 MusxInstance<KeySignature> createKeySignature(const std::optional<StaffCmper>& forStaff = std::nullopt) const;
1234
1237 MusxInstance<TimeSignature> createTimeSignature(const std::optional<StaffCmper>& forStaff = std::nullopt) const;
1238
1242 MusxInstance<TimeSignature> createDisplayTimeSignature(const std::optional<StaffCmper>& forStaff = std::nullopt) const;
1243
1250
1256
1261 util::Fraction calcDuration(const std::optional<StaffCmper>& forStaff = std::nullopt) const;
1262
1266 {
1267 return calcDuration() / calcDuration(forStaff);
1268 }
1269
1270 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1271 {
1272 this->OthersBase::integrityCheck(ptrToThis);
1273 if (!globalKeySig) {
1274 globalKeySig = std::make_shared<KeySignature>(getDocument());
1275 }
1276 }
1277
1278 constexpr static std::string_view XmlNodeName = "measSpec";
1280};
1281
1291{
1292public:
1294 explicit MeasureExprAssign(const DocumentWeakPtr& document, Cmper ID, ShareMode shareMode, Cmper cmper, Inci inci)
1295 : OthersBase(document, ID, shareMode, cmper, inci) {}
1296
1300 {
1301 Current,
1302 ToLayer1,
1303 ToLayer2,
1304 ToLayer3,
1305 ToLayer4,
1306 ToChord,
1307 ToExpression,
1308 };
1309
1312 enum class PlaybackStart
1313 {
1318 };
1319
1322 enum class ShowStaffList
1323 {
1324 ScoreAndPart,
1325 ScoreOnly,
1326 PartOnly,
1327 };
1328
1329 // Public properties corresponding to the XML structure
1336 int layer{};
1337 bool voice2{};
1345 bool hidden{};
1351
1355
1359
1363
1367 StaffCmper calcAssignedStaffId(bool forPageView = true) const;
1368
1371 MusxInstance<StaffComposite> createCurrentStaff(bool forPageView = true) const;
1372
1377 EntryInfoPtr calcAssociatedEntry(bool findExact = true) const;
1378
1380 bool calcIsAssignedInRequestedPart() const;
1381
1384 bool calcAppliesToLayer(LayerIndex layerIndex) const;
1385
1388
1389 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1390 {
1391 this->OthersBase::integrityCheck(ptrToThis);
1392 if (!textExprId && !shapeExprId) {
1393 MUSX_INTEGRITY_ERROR("Expression assignment at measure " + std::to_string(getCmper()) + " inci " + std::to_string(getInci().value_or(-1))
1394 + " has no expression definition ID.");
1395 } else if (textExprId && shapeExprId) {
1396 MUSX_INTEGRITY_ERROR("Expression assignment at measure " + std::to_string(getCmper()) + " inci " + std::to_string(getInci().value_or(-1))
1397 + " has both text expr ID " + std::to_string(textExprId) + " and shape expr ID " + std::to_string(shapeExprId));
1398 }
1399 }
1400
1401 constexpr static std::string_view XmlNodeName = "measExprAssign";
1403};
1404
1412public:
1414 explicit MeasureNumberRegion(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
1415 : OthersBase(document, partId, shareMode, cmper) {}
1416
1419 enum class TimePrecision
1420 {
1421 WholeSeconds,
1422 Tenths,
1423 Hundredths,
1424 Thousandths,
1425 };
1426
1429 {
1430 public:
1432
1433 std::shared_ptr<FontInfo> startFont;
1434 std::shared_ptr<FontInfo> multipleFont;
1435 std::shared_ptr<FontInfo> mmRestFont;
1436 std::shared_ptr<Enclosure> startEnclosure;
1437 std::shared_ptr<Enclosure> multipleEnclosure;
1438
1459 bool showOnTop{};
1466
1467 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1468 {
1469 this->ContainedClassBase::integrityCheck(ptrToThis);
1470 if (!startFont) {
1471 startFont = std::make_shared<FontInfo>(ptrToThis->getDocument());
1472 //MUSX_INTEGRITY_ERROR("Measure number region score part data is missing start font.");
1473 }
1474 if (!multipleFont) {
1475 multipleFont = std::make_shared<FontInfo>(ptrToThis->getDocument());
1476 MUSX_INTEGRITY_ERROR("Measure number region score part data is missing multiple numbers font.");
1477 }
1478 if (!mmRestFont) {
1479 mmRestFont = std::make_shared<FontInfo>(ptrToThis->getDocument());
1480 MUSX_INTEGRITY_ERROR("Measure number region score part data is missing multimeasure rest range font.");
1481 }
1482 }
1483
1485 };
1486
1487 // Public properties
1488 std::shared_ptr<ScorePartData> scoreData;
1489 std::shared_ptr<ScorePartData> partData;
1490
1493 char32_t startChar{};
1494 int base{};
1496 std::string prefix;
1497 std::string suffix;
1498
1500 bool noZero;
1501 bool doubleUp{};
1502 bool time{};
1506 int region{};
1508 bool hideScroll{};
1509 bool hidePage{};
1510
1513 bool calcIncludesMeasure(MeasCmper measureId) const
1514 {
1515 return measureId >= startMeas && measureId < endMeas; // endMeas is non-inclusive!
1516 }
1517
1521 int getStartNumber() const { return int(numberOffset + 1); }
1522
1526 std::optional<int> calcDisplayNumberFor(MeasCmper measureId) const;
1527
1531 std::optional<int> calcLastDisplayNumber() const;
1532
1533 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1534 {
1535 this->OthersBase::integrityCheck(ptrToThis);
1536 if (!scoreData) {
1537 scoreData = std::make_shared<ScorePartData>(ptrToThis);
1538 MUSX_INTEGRITY_ERROR("Measure number region " + std::to_string(getCmper()) + " is missing score data.");
1539 }
1540 if (!partData) {
1541 partData = std::make_shared<ScorePartData>(ptrToThis);
1542 MUSX_INTEGRITY_ERROR("Measure number region " + std::to_string(getCmper()) + " is missing part data.");
1543 }
1544 }
1545
1546 constexpr static std::string_view XmlNodeName = "measNumbRegion";
1548};
1549
1559public:
1561 explicit MultimeasureRest(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper startMeasure)
1562 : OthersBase(document, partId, shareMode, startMeasure) {}
1563
1568 int numStart{};
1575 bool useSymbols{};
1576
1578 MeasCmper getStartMeasure() const { return getCmper(); }
1579
1581 int calcNumberOfMeasures() const { return (std::max)(nextMeas - getStartMeasure(), 0); }
1582
1585
1586 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1587 {
1588 this->OthersBase::integrityCheck(ptrToThis);
1589 if (nextMeas <= getStartMeasure()) {
1590 MUSX_INTEGRITY_ERROR("Multimeasure rest at " + std::to_string(getCmper()) + " in part " + std::to_string(getSourcePartId()) + " spans 0 or fewer measures.");
1591 }
1592 }
1593
1594 constexpr static std::string_view XmlNodeName = "mmRest";
1596};
1597
1605public:
1607 explicit MultiStaffGroupId(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
1608 : OthersBase(document, partId, shareMode, cmper) {}
1609
1611
1612 constexpr static std::string_view XmlNodeName = "multiStaffGroupID";
1614};
1615
1623public:
1625 explicit MultiStaffInstrumentGroup(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
1626 : OthersBase(document, partId, shareMode, cmper) {}
1627
1628 std::vector<StaffCmper> staffNums;
1629
1633
1636
1638 std::optional<size_t> getIndexOf(StaffCmper staffId) const
1639 {
1640 for (size_t x = 0; x < staffNums.size(); x++) {
1641 if (staffNums[x] == staffId) return x;
1642 }
1643 return std::nullopt;
1644 }
1645
1649
1652 static void calcAllMultiStaffGroupIds(const DocumentPtr& document);
1653
1654 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1655 {
1656 OthersBase::integrityCheck(ptrToThis);
1657 if (staffNums.empty()) {
1658 MUSX_INTEGRITY_ERROR("MultiStaffInstrumentGroup " + std::to_string(getCmper()) + " contains no staves.");
1659 } else if (staffNums.size() > 3) {
1660 MUSX_INTEGRITY_ERROR("MultiStaffInstrumentGroup " + std::to_string(getCmper()) + " contains more than 3 staves.");
1661 }
1662 }
1663
1664 constexpr static std::string_view XmlNodeName = "multiStaffInstGroup";
1666};
1667
1675{
1676public:
1678
1679 constexpr static std::string_view XmlNodeName = "namePosAbbrv";
1680};
1681
1689{
1690public:
1692
1693 constexpr static std::string_view XmlNodeName = "namePosAbbrvStyle";
1694};
1695
1703{
1704public:
1706
1707 constexpr static std::string_view XmlNodeName = "namePosFull";
1708};
1709
1717{
1718public:
1720
1721 constexpr static std::string_view XmlNodeName = "namePosFullStyle";
1722};
1723
1730class Page : public OthersBase {
1731public:
1733 explicit Page(const DocumentWeakPtr& document, PageCmper pageId, ShareMode shareMode, Cmper cmper)
1734 : OthersBase(document, pageId, shareMode, cmper) {}
1735
1738 int percent{};
1745
1746 std::optional<SystemCmper> lastSystemId;
1747 std::optional<MeasCmper> firstMeasureId;
1748 std::optional<MeasCmper> lastMeasureId;
1749
1751 bool isBlank() const { return firstSystemId < 0; }
1752
1756
1758 static void calcSystemInfo(const DocumentPtr& document);
1759
1760 constexpr static std::string_view XmlNodeName = "pageSpec";
1762};
1763
1764class TextBlock;
1787{
1788public:
1794 {
1795 AllPages,
1796 Even,
1797 Odd
1798 };
1799
1802
1804 explicit PageTextAssign(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
1805 : OthersBase(document, partId, shareMode, cmper, inci)
1806 {
1807 }
1808
1820 bool hidden{};
1826 bool indRpPos{};
1829
1832
1837 std::optional<PageCmper> calcStartPageNumber(Cmper forPartId) const;
1838
1843 std::optional<PageCmper> calcEndPageNumber(Cmper forPartId) const;
1844
1852 util::EnigmaParsingContext getRawTextCtx(Cmper forPartId, std::optional<Cmper> forPageId = std::nullopt) const;
1853
1855 bool isMultiPage() const
1856 { return getCmper() == 0 && startPage != endPage; }
1857
1860 { return isMultiPage() && endPage == 0; }
1861
1862 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1863 {
1864 this->OthersBase::integrityCheck(ptrToThis);
1865 if (getCmper() != 0) {
1866 if (startPage != getCmper() || endPage != getCmper()) {
1867 MUSX_INTEGRITY_ERROR("PageTextAssign " + std::to_string(getCmper()) + " inci " + std::to_string(getInci().value_or(0)) +
1868 " has startPage or endPage value that does not match.");
1869 }
1870 }
1871 }
1872
1879 static MusxInstance<others::PageTextAssign> getForPageId(const DocumentPtr& document, Cmper partId, PageCmper pageId, Inci inci);
1880
1887
1888 constexpr static std::string_view XmlNodeName = "pageTextAssign";
1890};
1891
1900{
1901public:
1903 explicit PartDefinition(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
1904 : OthersBase(document, partId, shareMode, cmper) {}
1905
1906 // Public properties corresponding to the XML structure
1909 int copies{};
1910 bool printPart{};
1918
1921
1924
1927
1929 bool isScore() const { return getCmper() == SCORE_PARTID; }
1930
1934 Cmper calcScrollViewCmper() const;
1935
1940 std::optional<PageCmper> calcPageNumberFromAssignmentId(PageCmper pageAssignmentId) const;
1941
1946
1948 static MusxInstance<PartDefinition> getScore(const DocumentPtr& document);
1949
1952
1953 constexpr static std::string_view XmlNodeName = "partDef";
1955};
1956
1965class PartGlobals : public OthersBase {
1966public:
1968 explicit PartGlobals(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
1969 : OthersBase(document, partId, shareMode, cmper) {}
1970
1971 // Public properties corresponding to the XML structure
1992
1997 Cmper calcScrollViewCmper() const;
1998
1999 constexpr static std::string_view XmlNodeName = "partGlobals";
2001};
2002
2014class PartVoicing : public OthersBase {
2015public:
2021 explicit PartVoicing(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper staff)
2022 : OthersBase(document, partId, shareMode, staff) {}
2023
2025 enum class VoicingType
2026 {
2029 };
2030
2033 {
2034 AllNotes,
2035 TopNote,
2036 BottomNote,
2038 };
2039
2040 bool enabled{};
2043 bool select1st{};
2044 bool select2nd{};
2045 bool select3rd{};
2046 bool select4th{};
2047 bool select5th{};
2053
2058 bool calcShowsLayer(LayerIndex layerIndex, bool frameIsMultilayerInScore) const;
2059
2063 bool calcShowsNote(const NoteInfoPtr& noteInfoPtr) const;
2064
2065 constexpr static std::string_view XmlNodeName = "voicingDef";
2067};
2068
2079public:
2081 explicit PercussionNoteInfo(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
2082 : OthersBase(document, partId, shareMode, cmper, inci) {}
2083
2090 char32_t closedNotehead{};
2091 char32_t halfNotehead{};
2092 char32_t wholeNotehead{};
2093 char32_t dwholeNotehead{};
2094
2096 int calcStaffReferencePosition() const { return staffPosition - 10; }
2097
2101 { return percNoteType & 0xfff; }
2102
2105 unsigned getNoteTypeOrderId() const
2106 { return(percNoteType & 0xf000) >> 12; }
2107
2111
2112 constexpr static std::string_view XmlNodeName = "percussionNoteInfo";
2114};
2115
2121{
2122 JumpAuto,
2123 JumpAbsolute,
2124 JumpRelative,
2126 JumpToMark,
2127 Stop,
2128 NoJump
2129};
2130
2136{
2137 Always,
2138 OnPass,
2139 UntilPass
2140};
2141
2142class RepeatIndividualPositioning;
2143
2152class RepeatBack : public OthersBase {
2153public:
2155 explicit RepeatBack(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
2156 : OthersBase(document, partId, shareMode, cmper) {}
2157
2158 // Public properties corresponding to the XML structure
2167 bool hidden{};
2174
2180
2184
2185 constexpr static std::string_view XmlNodeName = "repeatBack";
2187};
2188
2198{
2199public:
2201 explicit RepeatEndingStart(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
2202 : OthersBase(document, partId, shareMode, cmper)
2203 {
2204 }
2205
2213 bool hidden{};
2223
2225 int calcEndingLength() const;
2226
2230 bool calcIsOpen() const;
2231
2237
2243
2246 std::string createEndingText() const;
2247
2251
2252 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
2253 {
2254 OthersBase::integrityCheck(ptrToThis);
2256 MUSX_INTEGRITY_ERROR("RepeatEndingStart at measure " + std::to_string(getCmper()) + " has an unexpected trigger value " +
2257 std::to_string(int(trigger)));
2258 }
2259 }
2260
2261 constexpr static std::string_view XmlNodeName = "repeatEndingStart";
2263};
2264
2276public:
2278 explicit RepeatEndingText(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
2279 : OthersBase(document, partId, shareMode, cmper) {}
2280
2281 std::string text;
2282
2283 constexpr static std::string_view XmlNodeName = "repeatEndingText";
2285};
2286
2295class RepeatPassList : public OthersArray<int>
2296{
2297 std::string_view xmlTag() const override { return XmlNodeName; }
2298
2299public:
2301
2302 constexpr static std::string_view XmlNodeName = "repeatPassList";
2304};
2305
2316{
2317public:
2326 explicit RepeatIndividualPositioning(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
2327 : OthersBase(document, partId, shareMode, cmper, inci) {}
2328
2331 bool hidden{};
2336
2339};
2340
2349{
2350public:
2352
2353 constexpr static std::string_view XmlNodeName = "separatesRepeatBack";
2354};
2365{
2366public:
2368
2369 constexpr static std::string_view XmlNodeName = "separatesRepeatEndingLine";
2370};
2371
2381{
2382public:
2384
2385 constexpr static std::string_view XmlNodeName = "separatesRepeatEndingText";
2386};
2387
2396{
2397public:
2399
2400 constexpr static std::string_view XmlNodeName = "separatesTextRepeat";
2401};
2402
2444
2469class SplitMeasure : public OthersArray<Evpu>
2470{
2471 std::string_view xmlTag() const override { return XmlNodeName; }
2472
2473public:
2475
2476 constexpr static std::string_view XmlNodeName = "splitMeas";
2478};
2479
2486class StaffList : public OthersArray<StaffCmper>
2487{
2488public:
2490
2494 {
2495 TopStaff = -1,
2496 BottomStaff = -2
2497 };
2498
2500};
2501
2509{
2510public:
2512
2513 constexpr static std::string_view XmlNodeName = "categoryStaffListName";
2514};
2515
2523{
2524 std::string_view xmlTag() const override { return XmlNodeName; }
2525
2526public:
2527 using StaffList::StaffList;
2528
2529 constexpr static std::string_view XmlNodeName = "categoryStaffListParts";
2530};
2531
2539{
2540 std::string_view xmlTag() const override { return XmlNodeName; }
2541
2542public:
2543 using StaffList::StaffList;
2544
2545 constexpr static std::string_view XmlNodeName = "categoryStaffListScore";
2546};
2547
2555{
2556public:
2558
2559 constexpr static std::string_view XmlNodeName = "repeatStaffListName";
2560};
2561
2569{
2570 std::string_view xmlTag() const override { return XmlNodeName; }
2571
2572public:
2573 using StaffList::StaffList;
2574
2575 constexpr static std::string_view XmlNodeName = "repeatStaffListParts";
2576};
2577
2586{
2587 std::string_view xmlTag() const override { return XmlNodeName; }
2588
2589public:
2590 using StaffList::StaffList;
2591
2592 constexpr static std::string_view XmlNodeName = "repeatStaffListPartsOverride";
2593};
2594
2602{
2603 std::string_view xmlTag() const override { return XmlNodeName; }
2604
2605public:
2606 using StaffList::StaffList;
2607
2608 constexpr static std::string_view XmlNodeName = "repeatStaffListScore";
2609};
2610
2619{
2620 std::string_view xmlTag() const override { return XmlNodeName; }
2621
2622public:
2623 using StaffList::StaffList;
2624
2625 constexpr static std::string_view XmlNodeName = "repeatStaffListScoreOverride";
2626};
2627
2636template<class ScoreList, class PartsList, class ScoreForcedList = void, class PartsForcedList = void>
2638{
2639public:
2641 StaffListSet(const DocumentPtr& document, Cmper partId, Cmper staffListId) noexcept;
2642
2647 bool contains(StaffCmper staffId, const MusxInstanceList<StaffUsed>& systemStaves, bool isHidden = false) const noexcept;
2648
2649private:
2650 MusxInstance<StaffList> m_staffList;
2651 MusxInstance<StaffList> m_forcedStaffList;
2652};
2653
2661{
2662public:
2664 explicit StaffSystem(const DocumentWeakPtr& document, Cmper staffSystemId, ShareMode shareMode, Cmper cmper)
2665 : OthersBase(document, staffSystemId, shareMode, cmper)
2666 {
2667 }
2668
2676 double horzPercent{};
2685 bool noNames{};
2689 bool scaleVert{};
2694
2696
2699 MeasCmper getLastMeasure() const { return endMeas - 1; }
2700
2703 int calcNumMeasures() const { return endMeas - startMeas; }
2704
2707
2711
2714
2720 std::pair<util::Fraction, util::Fraction> calcMinMaxStaffSizes() const;
2721
2722 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
2723 {
2724 this->OthersBase::integrityCheck(ptrToThis);
2725 if (startMeas == 0 || endMeas == 0) {
2726 MUSX_INTEGRITY_ERROR("Layout for system " + std::to_string(getCmper())
2727 + " of part " + std::to_string(getSourcePartId()) + " is in an unknown state.");
2728 }
2729 }
2730
2731 constexpr static std::string_view XmlNodeName = "staffSystemSpec";
2733};
2734
2741class StaffUsed : public OthersBase {
2742public:
2744 explicit StaffUsed(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
2745 : OthersBase(document, partId, shareMode, cmper, inci) {}
2746
2749 std::shared_ptr<EnigmaMusicRange> range;
2750
2753
2756
2758 MusxInstance<StaffComposite> getStaffInstance(MeasCmper measureId, Edu eduPosition = 0) const;
2759
2760 constexpr static std::string_view XmlNodeName = "instUsed";
2762};
2763
2774{
2775public:
2777 explicit SystemLock(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
2778 : OthersBase(document, partId, shareMode, cmper) {}
2779
2784
2785 constexpr static std::string_view XmlNodeName = "lockMeas";
2787};
2788
2805{
2806public:
2808 explicit TempoChange(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
2809 : OthersBase(document, partId, shareMode, cmper, inci)
2810 {
2811 }
2812
2813 int ratio{};
2818 int unit{};
2822
2827 int getAbsoluteTempo(NoteType noteType = NoteType::Quarter) const;
2828
2829 constexpr static std::string_view XmlNodeName = "tempoDef";
2831};
2832
2840class TextBlock : public OthersBase
2841{
2842public:
2844
2849 enum class TextType
2850 {
2851 Block,
2852 Expression
2853 };
2854
2856 explicit TextBlock(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
2857 : OthersBase(document, partId, shareMode, cmper) {}
2858
2859 // Public properties corresponding to the XML structure
2868 bool newPos36{};
2871 bool showShape{};
2873 bool wordWrap{};
2879
2885 util::EnigmaParsingContext getRawTextCtx(Cmper forPartId, std::optional<Cmper> forPageId = std::nullopt,
2887
2889 static std::string getText(const DocumentPtr& document, const Cmper textId, Cmper forPartId, bool trimTags = false,
2891
2892 constexpr static std::string_view XmlNodeName = "textBlock";
2894};
2895
2951
2961public:
2963
2964 constexpr static std::string_view XmlNodeName = "textExpressionEnclosure";
2966};
2967
2977{
2978public:
2980 explicit TextRepeatAssign(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
2981 : OthersBase(document, partId, shareMode, cmper, inci)
2982 {
2983 }
2984
2985 // Public properties corresponding to the XML structure
2993 bool hidden{};
2997 bool autoUpdate{};
3001
3007
3011
3012 constexpr static std::string_view XmlNodeName = "textRepeatAssign";
3014};
3015
3028{
3029public:
3035 {
3036 Passes,
3037 RepeatID,
3039 };
3040
3042 explicit TextRepeatDef(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
3043 : OthersBase(document, partId, shareMode, cmper), font(new FontInfo(document))
3044 {
3045 }
3046
3047 // Public properties corresponding to the XML structure
3048 std::shared_ptr<FontInfo> font;
3055 std::vector<int> passList;
3056
3057 constexpr static std::string_view XmlNodeName = "textRepeatDef";
3059};
3060
3070{
3071public:
3073
3074 constexpr static std::string_view XmlNodeName = "textRepeatEnclosure";
3076};
3077
3087{
3088public:
3090 explicit TextRepeatText(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
3091 : OthersBase(document, partId, shareMode, cmper)
3092 {
3093 }
3094
3095 std::string text;
3096
3097 constexpr static std::string_view XmlNodeName = "textRepeatText";
3099};
3100
3110{
3111public:
3113 explicit TimeCompositeLower(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
3114 : OthersBase(document, partId, shareMode, cmper)
3115 {
3116 }
3117
3122 {
3123 public:
3125 bool startGroup{};
3126
3128 };
3129
3130 std::vector<std::shared_ptr<CompositeItem>> items;
3131
3132 constexpr static std::string_view XmlNodeName = "timeLower";
3134};
3135
3145{
3146public:
3148 explicit TimeCompositeUpper(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper)
3149 : OthersBase(document, partId, shareMode, cmper)
3150 {
3151 }
3152
3168
3170 std::vector<std::shared_ptr<CompositeItem>> items;
3171
3172 constexpr static std::string_view XmlNodeName = "timeUpper";
3174};
3175
3188class TonalCenterFlats : public OthersArray<unsigned, 8>
3189{
3190 std::string_view xmlTag() const override { return XmlNodeName; }
3191
3192public:
3194
3195 constexpr static std::string_view XmlNodeName = "fstKeyFlats";
3197};
3198
3210class TonalCenterSharps : public OthersArray<unsigned, 8>
3211{
3212 std::string_view xmlTag() const override { return XmlNodeName; }
3213
3214public:
3216
3217 constexpr static std::string_view XmlNodeName = "fstKeySharps";
3219};
3220
3221} // namespace others
3222} // namespace dom
3223} // namespace musx
DocumentPtr getDocument() const
Gets a reference to the Document.
Definition BaseClasses.h:108
Cmper getSourcePartId() const
Gets the source partId for this instance. If an instance is fully shared with the score,...
Definition BaseClasses.h:124
virtual void integrityCheck(const std::shared_ptr< Base > &ptrToThis)
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition BaseClasses.h:154
ShareMode
Describes how this instance is shared between part and score.
Definition BaseClasses.h:91
Base class for classes that are contained by other classes.
Definition BaseClasses.h:224
ContainedClassBase(const MusxInstance< Base > &parent)
Constructs a ContainedClassBase object.
Definition BaseClasses.h:233
Wraps a frame of shared_ptr<const EntryInfo> and an index for per entry access. This class manages ow...
Definition Entries.h:478
Represents the default font settings for a particular element type.
Definition CommonClasses.h:63
Provides optional per-type extension methods for MusxInstanceList.
Definition MusxInstance.h:103
Wraps an EntryInfo instance and a note index.
Definition Entries.h:1459
Template pattern for OthersBase items consisting of an array of a single item.
Definition BaseClasses.h:353
OthersArray(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition BaseClasses.h:359
Base class for all "others" types.
Definition BaseClasses.h:283
std::optional< Inci > getInci() const
Gets the optional array index (inci).
Definition BaseClasses.h:335
Cmper getCmper() const
Gets the cmper key value.
Definition BaseClasses.h:328
Many element names are embedded directly in top-level xml tags. This encapsulates that pattern.
Definition BaseClasses.h:395
OthersName(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition BaseClasses.h:398
AlignJustify HorizontalAlignment
Horizontal alignment options for page text positioning.
Definition Options.h:1485
VerticalAlignment
Vertical alignment options for page text positioning.
Definition Options.h:1492
TextJustify
Text justification options.
Definition Options.h:1500
Lists the aleration values of each nth flat in a custom key signature. Normally these values are all ...
Definition Others.h:98
static const xml::XmlElementArray< AcciAmountFlats > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:104
Lists the aleration values of each nth sharp in a custom key signature. Normally these values are all...
Definition Others.h:131
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:137
static const xml::XmlElementArray< AcciAmountSharps > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Lists the order of flats by pitch class index (0..6 = C..B) in a custom key signature....
Definition Others.h:157
static const xml::XmlElementArray< AcciOrderFlats > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:163
Lists the order of sharps by pitch class index (0..6 = C..B) in a custom key signature....
Definition Others.h:188
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:194
static const xml::XmlElementArray< AcciOrderSharps > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Stores the properties and behaviors of articulation definitions.
Definition Others.h:208
bool autoVert
Whether vertical auto-positioning is enabled.
Definition Others.h:260
bool useTopNote
"Attach to top note"
Definition Others.h:258
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:298
Evpu distanceFromStemEnd
"On-stem distance from stem end/flag/beam"
Definition Others.h:296
Evpu xOffsetAlt
Horizontal offset for the alternate symbol.
Definition Others.h:278
Evpu yOffsetMain
Vertical offset for the main symbol.
Definition Others.h:273
char32_t charAlt
Alternate symbol character (utf32).
Definition Others.h:270
int startTopNoteDelta
Attack change for the top note.
Definition Others.h:284
int durBotNoteDelta
Duration change for the bottom note.
Definition Others.h:289
char32_t charMain
Main symbol character (utf32).
Definition Others.h:255
Cmper mainShape
Main shape ID (if applicable).
Definition Others.h:282
bool autoStack
Whether automatic stacking is enabled.
Definition Others.h:267
int ampTopNotePercent
Key velocity percentage for the top note.
Definition Others.h:294
int durTopNotePercent
Duration percent change for the top note.
Definition Others.h:290
bool aboveSymbolAlt
Whether the alternate symbol is used above. (Otherwise main symbol is used.)
Definition Others.h:263
int ampBotNotePercent
Key velocity percentage for the bottom note.
Definition Others.h:295
bool centerOnStem
Whether centering on the stem is enabled.
Definition Others.h:268
SlurInteractionMode
Defines the interaction mode with slurs.
Definition Others.h:241
@ Ignore
default value (may not appear in xml)
Evpu defVertPos
Default vertical position.
Definition Others.h:274
Evpu xOffsetMain
Horizontal offset for the main symbol.
Definition Others.h:272
Evpu yOffsetAlt
Vertical offset for the alternate symbol.
Definition Others.h:279
Cmper altShape
Alternate shape ID (if applicable).
Definition Others.h:283
bool altIsShape
Whether the alternate symbol is a shape.
Definition Others.h:281
std::shared_ptr< FontInfo > fontAlt
The font info for the alternate symbol. (xml nodes <fontAlt>, <sizeAlt>, and <efxAlt>)
Definition Others.h:271
int startTopNotePercent
Attack change percent for the top note.
Definition Others.h:286
bool playArtic
Whether playback articulation is enabled.
Definition Others.h:277
bool insideSlur
Whether the articulation is inside a slur. (Used in addition to SlurInteractionMode::InsideSlur)
Definition Others.h:265
AutoVerticalMode autoVertMode
Auto vertical positioning mode.
Definition Others.h:261
int durTopNoteDelta
Duration change for the top note.
Definition Others.h:288
std::shared_ptr< FontInfo > fontMain
The font info for the main symbol. (xml nodes <fontMain>, <sizeMain>, and <efxMain>)
Definition Others.h:256
bool belowSymbolAlt
Whether the alternate symbol is used below. (Otherwise main symbol is used.)
Definition Others.h:264
int ampBotNoteDelta
Key velocity change for the bottom note.
Definition Others.h:293
SlurInteractionMode slurInteractionMode
Slur interaction mode.
Definition Others.h:269
int startBotNotePercent
Attack change percent for the bottom note.
Definition Others.h:287
bool mainIsShape
Whether the main symbol is a shape.
Definition Others.h:280
int durBotNotePercent
Duration percent change for the bottom note.
Definition Others.h:291
CopyMode
Defines the character copy mode (vertical or horizontal)
Definition Others.h:230
@ Vertical
Copy symbol vertically (xml value is "both")
@ None
default value (may not appear in xml)
int ampTopNoteDelta
Key velocity change for the top note.
Definition Others.h:292
AutoVerticalMode
Defines the automatic vertical positioning mode. These values are only meaningful if autoVert is true...
Definition Others.h:216
@ AlwaysNoteheadSide
default value (may not appear in xml)
int startBotNoteDelta
Attack change for the bottom note.
Definition Others.h:285
bool outsideStaff
Whether the articulation is outside the staff.
Definition Others.h:262
bool autoHorz
Whether horizontal auto-positioning is enabled.
Definition Others.h:259
ArticulationDef(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor.
Definition Others.h:252
bool isStemSideWhenMultipleLayers
"Place stem side when multiple layers are present"
Definition Others.h:276
bool noPrint
"Display on screen only (do not print)"
Definition Others.h:266
CopyMode copyMode
"Copy Main Symbol" option.
Definition Others.h:257
bool avoidStaffLines
Whether to avoid staff lines.
Definition Others.h:275
static const xml::XmlElementArray< ArticulationDef > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Control settings for a beat chart, only used when inci == 0.
Definition Others.h:358
Edu totalDur
Total logical duration of the measure (XML: <totalDur>)
Definition Others.h:360
Evpu minWidth
Minimum required width (XML: <minWidth>)
Definition Others.h:362
static const xml::XmlElementArray< Control > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu totalWidth
Total width allocated to the measure (XML: <totalWidth>)
Definition Others.h:361
Evpu allotWidth
Allotted width before justification (XML: <allotWidth>)
Definition Others.h:363
A single beat chart element from Finale's music spacing system.
Definition Others.h:344
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:389
Edu dur
Duration of this beat span.
Definition Others.h:372
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:377
static const xml::XmlElementArray< BeatChartElement > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
std::shared_ptr< Control > control
Control data for this beat chart element (only present for inci == 0)
Definition Others.h:369
BeatChartElement(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
Constructor function.
Definition Others.h:347
Evpu minPos
Minimum position (see remarks in the class-level description of BeatChartElement)
Definition Others.h:375
Evpu endPos
End position of the beat span.
Definition Others.h:374
Evpu pos
Horizontal position within the measure.
Definition Others.h:373
Represents a single element in a chord suffix (e.g., a symbol like "1" or "+").
Definition Others.h:406
static const xml::XmlElementArray< ChordSuffixElement > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
std::shared_ptr< FontInfo > font
Font info for this symbol (xml nodes are <fontID>, <fontSize>, and <efx>)
Definition Others.h:427
Evpu xdisp
Horizontal displacement in EVPU.
Definition Others.h:429
Prefix prefix
Optional prefix for the symbol, e.g., "plus".
Definition Others.h:432
bool isNumber
Indicates the symbol value is numeric rather than a codepoint.
Definition Others.h:431
char32_t symbol
Codepoint of glyph in font. (xml node is <suffix>)
Definition Others.h:428
Evpu ydisp
Vertical displacement in EVPU.
Definition Others.h:430
ChordSuffixElement(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
Constructor function.
Definition Others.h:422
Prefix
Enum for chord symbol prefix options.
Definition Others.h:413
@ None
No prefix (default: may not appear in XML)
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:434
Represents a list of repeat ending numbers for a RepeatEndingStart instance.
Definition Others.h:453
static const xml::XmlElementArray< ChordSuffixPlayback > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:459
Represents an element in multimeasure clef list with its positioning and percentage values.
Definition Others.h:473
bool afterBarline
"Place Clef After Barline"
Definition Others.h:491
ShowClefMode clefMode
The clef mode from the <clefMode> element.
Definition Others.h:489
static const xml::XmlElementArray< ClefList > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
int xEvpuOffset
The xEvpuOffset value from the <xEvpuOffset> element.
Definition Others.h:488
Edu xEduPos
Definition Others.h:483
ClefIndex clefIndex
The 0-based clef index from the <clef> element.
Definition Others.h:482
bool unlockVert
"Allow Vertical Drag"
Definition Others.h:490
ClefList(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
Constructor function.
Definition Others.h:476
Evpu yEvpuPos
The yEvpuPos value from the <yEvpuPos> element.
Definition Others.h:486
int percent
The percentage value from the <percent> element.
Definition Others.h:487
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:493
Identifies the percussion map ("drum library") for a staff style with percussion notation.
Definition Others.h:524
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:528
Identifies the percussion map ("drum library") for a staff with percussion notation.
Definition Others.h:504
DrumStaff(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:507
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:513
static const xml::XmlElementArray< DrumStaff > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Cmper whichDrumLib
Definition Others.h:510
Represents the enclosure settings for text expressions.
Definition CommonClasses.h:574
Enclosure(const DocumentWeakPtr &document, Cmper partId=SCORE_PARTID, ShareMode shareMode=ShareMode::All, Cmper cmper=0)
Constructs an Enclosure object.
Definition CommonClasses.h:600
The name and font characteristics of fonts contained.
Definition Others.h:540
int charsetVal
Definition Others.h:559
bool calcIsSymbolFont() const
Calculates if this font is a symbol font.
Definition Others.h:581
FontDefinition(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:546
CharacterSetBank charsetBank
The character set bank.
Definition Others.h:558
CharacterSetBank
The character set for the bank.
Definition Others.h:552
std::string name
The font name e.g., "Broadway Copyist Text".
Definition Others.h:566
int family
Represents the <family> element, e.g., 0. (use unknown)
Definition Others.h:565
static const xml::XmlElementArray< FontDefinition > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:592
int pitch
Represents the <pitch> element, e.g., 0. (use unknown)
Definition Others.h:564
Represents the attributes of a TGF entry frame.
Definition Others.h:610
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:631
Frame(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci=0)
Constructor function.
Definition Others.h:613
MusxInstanceList< Entry > getEntries() const
Returns a vector of entries contained in the frame.
Definition Others.cpp:58
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:645
Edu startTime
The starting position within the measure. (Appears to be zero when startEntry and endEntry are suppli...
Definition Others.h:618
EntryNumber endEntry
End entry number for this frame. (Appears to be zero when startTime is supplied.)
Definition Others.h:617
bool iterateRawEntries(std::function< bool(const MusxInstance< Entry > &entry)> iterator) const
Iterates all the raw entries in a frame, passing them to the iterator function. If the iterator funct...
Definition Others.cpp:38
EntryNumber startEntry
Start entry number for this frame. (Appears to be zero when startTime is supplied....
Definition Others.h:616
static const xml::XmlElementArray< Frame > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Information for a single string of the fretted instrument.
Definition Others.h:764
int pitch
Open-string MIDI pitch (60 is middle-C.)
Definition Others.h:766
static const xml::XmlElementArray< StringInfo > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Describes a fretted instrument (strings, frets, name, clef). It is used for both TAB notation and Fre...
Definition Others.h:751
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:796
ClefIndex speedyClef
The clef to use when entering notes for this instrument in Speedy Entry.
Definition Others.h:781
std::string name
Display name.
Definition Others.h:775
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:783
static const xml::XmlElementArray< FretInstrument > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
std::vector< std::shared_ptr< StringInfo > > strings
One entry per string: strings.size() should equal numStrings.
Definition Others.h:776
int numStrings
Number of strings (max is 24)
Definition Others.h:774
std::vector< int > fretSteps
Definition Others.h:777
FretInstrument(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor.
Definition Others.h:754
int numFrets
Number of frets.
Definition Others.h:773
A named group of fretboard diagrams associated with a specific fretboard instrument.
Definition Others.h:663
Cmper fretInstId
Fret instrument ID. (xml node <fretInstID>)
Definition Others.h:671
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:680
MusxInstance< FretInstrument > getFretInstrument() const
Get the FretInstrument associated with this fretboard group.
Definition Others.cpp:72
MusxInstanceList< details::FretboardDiagram > getFretboardDiagrams() const
Gets the array of details::FretboardDiagram instances associated with this fretboard group.
Definition Others.cpp:77
FretboardGroup(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
Constructor.
Definition Others.h:666
std::string name
Group name.
Definition Others.h:672
static const xml::XmlElementArray< FretboardGroup > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Fretboard diagram style: shapes, spacing, fonts, and offsets.
Definition Others.h:693
Efix stringGap
Gap between strings.
Definition Others.h:710
Efix fretWidth
Line width of frets.
Definition Others.h:713
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:738
Efix vertHandleOff
Vertical handle offset.
Definition Others.h:718
std::shared_ptr< FontInfo > fingNumFont
Font for fingering numbers.
Definition Others.h:721
bool showLastFret
Show the last fret marker.
Definition Others.h:701
static const xml::XmlElementArray< FretboardStyle > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Efix horzHandleOff
Horizontal handle offset.
Definition Others.h:717
Cmper fingStrShapeId
Fingering string shape ID. (xml node <fingStrShapeID>)
Definition Others.h:704
bool rotate
Rotate the diagram so the nut is on the left.
Definition Others.h:702
bool fingNumWhite
Render fingering numbers in white.
Definition Others.h:703
Cmper barreShapeId
Barre shape ID. (xml node <barreShapeID>)
Definition Others.h:707
Cmper openStrShapeId
Open string shape ID. (xml node <openStrShapeID>)
Definition Others.h:705
FretboardStyle(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor.
Definition Others.h:696
Efix whiteout
Whiteout thickness/extent. (xml node <whiteout>)
Definition Others.h:719
std::string fretNumText
Label preceding fret number (e.g., "fr."). (xml node <fretNumText>)
Definition Others.h:725
Efix horzFingNumOff
Horizontal fingering number offset.
Definition Others.h:722
Efix vertTextOff
Vertical text offset.
Definition Others.h:715
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:727
Efix stringWidth
Line width of strings.
Definition Others.h:712
std::string name
Style name. (xml node <name>)
Definition Others.h:724
std::shared_ptr< FontInfo > fretNumFont
Font for fret numbers.
Definition Others.h:720
Cmper customShapeId
Custom shape ID. (xml node <customShapeID>)
Definition Others.h:708
Efix fretGap
Gap between frets.
Definition Others.h:711
Cmper muteStrShapeId
Muted string shape ID. (xml node <muteStrShapeID>)
Definition Others.h:706
Efix nutWidth
Width of the nut.
Definition Others.h:714
Efix horzTextOff
Horizontal text offset.
Definition Others.h:716
int defNumFrets
Default number of frets.
Definition Others.h:709
Efix vertFingNumOff
Vertical fingering number offset.
Definition Others.h:723
Represents the attributes associated with a Finale key signature.
Definition Others.h:863
bool hasClefOctv
If true, the key signature has clef octave override tables. See details::ClefOctaveFlats and details:...
Definition Others.h:880
int gotoKey
Definition Others.h:876
KeyAttributes(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:866
int harmRefer
Definition Others.h:870
Cmper symbolList
Cmper of the symbol list that specifies the accidentals for the key. These are stored in incidents of...
Definition Others.h:879
int middleCKey
MIDI key number to use for middle C. This value transposes playback if it is set other than the MIDI ...
Definition Others.h:873
Cmper fontSym
Definition Others.h:874
static const xml::XmlElementArray< KeyAttributes > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:882
The key format for a custom key signature.
Definition Others.h:806
KeyFormat(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:809
static const xml::XmlElementArray< KeyFormat > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
unsigned semitones
Number of semitones in the octave (e.g. 12 for standard keys, 24 for 24-EDO, 31 for 31-EDO,...
Definition Others.h:812
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:815
unsigned scaleTones
Number of diatonic steps in the scale (almost always 7).
Definition Others.h:813
Represents a single <keych> element inside the <keyMap>.
Definition Others.h:834
bool diatonic
Whether the step is diatonic (true if <diatonic> is present).
Definition Others.h:836
unsigned hlevel
Harmonic level (scale degree) of this step. (xml node is <hlevel>)
Definition Others.h:837
static const xml::XmlElementArray< StepElement > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
An array of step elements from which one can create a key map.
Definition Others.h:825
std::vector< std::shared_ptr< StepElement > > steps
Collection of keych step elements.
Definition Others.h:842
unsigned countDiatonicSteps() const
Counts the number of diatonic steps in the steps array.
Definition Others.h:845
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:852
KeyMapArray(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:828
static const xml::XmlElementArray< KeyMapArray > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Represents the attributes of a Finale "layer".
Definition Others.h:895
bool freezeLayer
"Freeze Stems and Ties"
Definition Others.h:907
bool playback
If true, playback this layer. If false, the layer is muted.
Definition Others.h:908
int restOffset
"Adjust Floating Rests by " number of staff steps.
Definition Others.h:902
bool ignoreHiddenLayers
"Ignore Hidden Layers"
Definition Others.h:911
bool freezeStemsUp
If true, freeze stems up, otherwise freeze stems down. Only used if freezeLayer is true....
Definition Others.h:906
bool ignoreHiddenNotesOnly
"Ignore Layers Containing Only Hidden Notes" (xml node is <ignoreHidden>)
Definition Others.h:910
bool hideLayer
"Hide Layer when Inactive"
Definition Others.h:912
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:914
bool affectSpacing
"Affect Music Spacing" (xml node is <spacing>)
Definition Others.h:909
static const xml::XmlElementArray< LayerAttributes > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool useRestOffset
"Adjust Floating Rests by ". Determines if restOffset is used. (xml node is <useRestOff>)
Definition Others.h:905
bool onlyIfOtherLayersHaveNotes
"Apply Settings Only if Notes are in Other Layers" (xml node is <floatLayer>)
Definition Others.h:904
LayerAttributes(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:898
bool freezTiesToStems
"Freeze Ties in the Same Direction as Stems" (xml node is <flipTies>)
Definition Others.h:903
Represents the name associated with a MarkingCategory.
Definition Others.h:1106
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1110
Represents a category of markings used.
Definition Others.h:1007
bool usesTextFont
whether this category uses the text font
Definition Others.h:1046
Evpu horzOffset
Additional horizontal offset.
Definition Others.h:1041
bool usesMusicFont
whether this category uses the music font
Definition Others.h:1047
std::string getName() const
gets the name of the marking category
Definition Others.cpp:103
bool usesBreakMmRests
whether this category uses the breakMmRest setting
Definition Others.h:1051
bool usesNumberFont
whether this category uses the number font
Definition Others.h:1048
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:1077
Evpu vertOffsetBaseline
Additional vertical offset.
Definition Others.h:1042
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1094
bool userCreated
whether the user created this category
Definition Others.h:1053
CategoryType
Enumeration for the type of marking category.
Definition Others.h:1014
@ RehearsalMarks
Rehearsal marks, often used for reference points in the score.
@ Dynamics
Dynamics markings, such as forte, piano, etc.
@ Invalid
There should always be a category type supplied.
@ TechniqueText
Technique text such as "pizzicato" or "arco.".
@ Misc
Represents miscellaneous markings that do not fit into other categories.
@ TempoMarks
Tempo indications such as Allegro (with or without metronome marking).
@ TempoAlterations
Tempo alteration markings, such as accel. and rit. (xml value is "tempoAlts")
@ ExpressiveText
Expressive text such as "espressivo.".
std::map< Cmper, MusxInstanceWeak< TextExpressionDef > > textExpressions
A list of text expressions in this category.
Definition Others.h:1068
AlignJustify justification
Justification for the text within the marking.
Definition Others.h:1038
std::shared_ptr< FontInfo > musicFont
Music font.
Definition Others.h:1033
static const xml::XmlElementArray< MarkingCategory > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu vertOffsetEntry
Additional vertical entry offset.
Definition Others.h:1043
std::shared_ptr< FontInfo > textFont
Text font.
Definition Others.h:1032
CategoryStaffListSet createStaffListSet() const
Create a StaffListSet for the given instance. This can be used to interrogate whether a staff appears...
Definition Others.cpp:112
VerticalMeasExprAlign vertAlign
Vertical alignment for the marking.
Definition Others.h:1037
std::map< Cmper, MusxInstanceWeak< ShapeExpressionDef > > shapeExpressions
A list of shape expressions in this category.
Definition Others.h:1062
Cmper staffList
The staff list if useStaffList is true.
Definition Others.h:1056
bool breakMmRest
whether expressions in this category break multimeasure rests
Definition Others.h:1052
bool usesPositioning
whether this category uses the positioning elements (Finale UI only allows true)
Definition Others.h:1049
bool usesStaffList
whether this category uses a staff list
Definition Others.h:1050
MarkingCategory(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:1026
HorizontalMeasExprAlign horzAlign
Horizontal alignment for the marking.
Definition Others.h:1036
CategoryType categoryType
Category type of the marking.
Definition Others.h:1029
std::shared_ptr< FontInfo > numberFont
Number font (not implemented in the Finale U.I.)
Definition Others.h:1034
Assigns a TextExpressionDef or ShapeExpressionDef to a measure.
Definition Others.h:1291
static const xml::XmlElementArray< MeasureExprAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
StaffCmper staffAssign
The staff to which this expression is assigned, or -1 if it is assigned to top staff and -2 if assign...
Definition Others.h:1335
ShowStaffList
Where to show the assignment. (Used both for staff list and singleton assignments....
Definition Others.h:1323
@ ScoreAndPart
Score and Part(s). (Default value may not appear in xml.)
ShowStaffList showStaffList
"Show On Score and Part(s)|Score Only|Part(s) Only".
Definition Others.h:1343
bool hidden
True if the expression is hidden.
Definition Others.h:1345
int rehearsalMarkOffset
Restarts the rehearsal mark sequence at this 1-based sequence value. If this is zero,...
Definition Others.h:1350
ChannelSwitchTarget
The values for "On Playback Affect". The target channels are specified in the Score Manager dropdown ...
Definition Others.h:1300
@ Current
Current channel. (Default value may not appear in xml.)
@ ToExpression
Switch to expression channel. (xml value is "toDyn")
@ ToLayer3
Switch to layer 3 channel. (xml value is "toL3")
@ ToChord
Switch to chord channel. (xml value is "toChord")
@ ToLayer4
Switch to layer 4 channel. (xml value is "toL4")
@ ToLayer2
Switch to layer 2 channel. (xml value is "toL2")
@ ToLayer1
Switch to layer 1 channel. (xml value is "toL1")
bool calcIsHiddenByAlternateNotation() const
Calculates if this assignment is hidden by alternate notation.
Definition Others.cpp:332
bool dontScaleWithEntry
Inverse of "Scale Expression with Attached Note".
Definition Others.h:1341
Cmper staffList
Definition Others.h:1347
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1401
int staffGroup
Assignment is part of a group of assignments associated with a staff list and should be modified as a...
Definition Others.h:1346
Cmper shapeExprId
The Cmper of a shape expression (xml node is <shapeExprID>)
Definition Others.h:1331
int graceNoteIndex
1-based index from leftmost grace note. 0 = main note.
Definition Others.h:1349
MusxInstance< TextExpressionDef > getTextExpression() const
Gets the assigned text expression.
Definition Others.cpp:261
ChannelSwitchTarget channelSwitch
"On Playback Affect" value.
Definition Others.h:1340
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:1389
PlaybackStart playbackStart
Where to start playback.
Definition Others.h:1342
MeasureExprAssign(const DocumentWeakPtr &document, Cmper ID, ShareMode shareMode, Cmper cmper, Inci inci)
Constructor function.
Definition Others.h:1294
Cmper textExprId
The Cmper of a text expression (xml node is <textExprID>)
Definition Others.h:1330
int layer
The 1-based layer number (1..4) to which this expression is assigned. (0 = all layers....
Definition Others.h:1336
CategoryStaffListSet createStaffListSet() const
Create a StaffListSet for the given instance. This can be used to interrogate whether a staff appears...
Definition Others.cpp:277
bool calcAppliesToLayer(LayerIndex layerIndex) const
Calculates if this assignment applies to the specified layer.
Definition Others.cpp:301
Evpu horzEvpuOff
Horizontal Evpu offset from the default position.
Definition Others.h:1332
PlaybackStart
The choice where to start playback.
Definition Others.h:1313
@ PositionInMeasure
Start playback at the Edu position of the assignment. (xml value is "measPos")
@ BeginningOfMeasure
Start playback at beginning of measure. (Default value may not appear in xml.)
bool createdByHp
This assignment was created by Finale's smart playback engine.
Definition Others.h:1344
StaffCmper calcAssignedStaffId(bool forPageView=true) const
Calculates the effective staffId for the assignment, returning top or bottom staff if appropriate.
Definition Others.cpp:306
MusxInstance< StaffComposite > createCurrentStaff(bool forPageView=true) const
Creates the current staff for this assignment.
Definition Others.cpp:327
EntryInfoPtr calcAssociatedEntry(bool findExact=true) const
Calculates the entry associated with the the measure expression. This is the entry that Finale uses f...
Definition Others.cpp:282
Evpu vertEvpuOff
Vertical Evpu offset from the default position (xml node is <vertOff>)
Definition Others.h:1334
bool calcIsAssignedInRequestedPart() const
Calculates if this assignment is assigned in the current part or score, based on the requested part I...
Definition Others.cpp:293
bool voice2
Definition Others.h:1337
MusxInstance< ShapeExpressionDef > getShapeExpression() const
Gets the assigned shape expression.
Definition Others.cpp:269
Edu eduPosition
Horizontal Edu position (xml node is <horzEduOff>)
Definition Others.h:1333
Measure number data that can differ in score or part.
Definition Others.h:1429
bool showOnStart
"Show On Start of Staff System" (xml node is <startOfLine>)
Definition Others.h:1452
Evpu multipleXdisp
Horizontal offset for mid-system numbers.
Definition Others.h:1441
bool showOnEvery
"Show on Every" activates mid-system numbers. (xml node is <multipleOf>)
Definition Others.h:1453
bool useMultipleEncl
Use enclosure for mid-system settings.
Definition Others.h:1458
bool showOnBottom
Show measure numbers on the bottom staff.
Definition Others.h:1460
bool useStartEncl
Use enclosure for start-of-system settings.
Definition Others.h:1457
std::shared_ptr< Enclosure > startEnclosure
Enclosure settings for numbers at start of system.
Definition Others.h:1436
std::shared_ptr< FontInfo > startFont
The font used for numbers at start of system.
Definition Others.h:1433
AlignJustify multipleJustify
Justification for mid-system numbers.
Definition Others.h:1464
static const xml::XmlElementArray< ScorePartData > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
std::shared_ptr< FontInfo > mmRestFont
The font used for multi-measure rest ranges.
Definition Others.h:1435
AlignJustify startAlign
Alignment of numbers at the start of system.
Definition Others.h:1449
bool showOnTop
Show measure numbers on the top staff.
Definition Others.h:1459
int incidence
"Show on Every" value.
Definition Others.h:1448
Evpu startYdisp
Vertical offset for numbers at start of system.
Definition Others.h:1440
bool showMmRange
"Show Measure Ranges on Multimeasure Rests" (xml node is <mmRestRange>)
Definition Others.h:1455
bool excludeOthers
Exclude other staves.
Definition Others.h:1461
int startWith
"Beginning with" value. (This value is 0-based. The Finale UI adds 1 for user display....
Definition Others.h:1447
AlignJustify mmRestJustify
Justification for multi-measure rest ranges.
Definition Others.h:1465
AlignJustify startJustify
Justification for numbers at the start of system.
Definition Others.h:1463
char32_t rightMmBracketChar
UTF-32 code for the right bracket of multi-measure rest ranges.
Definition Others.h:1446
bool hideFirstMeasure
"Hide First Measure Number in Region." (xml node is <exceptFirstMeas>)
Definition Others.h:1454
std::shared_ptr< FontInfo > multipleFont
The font used for mid-system numbers.
Definition Others.h:1434
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:1467
AlignJustify mmRestAlign
Alignment for multi-measure ranges.
Definition Others.h:1451
Evpu multipleYdisp
Vertical offset for mid-system numbers.
Definition Others.h:1442
bool showOnMmRest
"Show on Multimeasure Rests" (xml node is <mmRestRangeForce>)
Definition Others.h:1456
AlignJustify multipleAlign
Alignment for mid-system numbers.
Definition Others.h:1450
Evpu mmRestXdisp
Horizontal offset for multi-measure rest ranges.
Definition Others.h:1443
char32_t leftMmBracketChar
UTF-32 code for the left bracket of multi-measure rest ranges.
Definition Others.h:1445
std::shared_ptr< Enclosure > multipleEnclosure
Enclosure settings for mid-system numbers.
Definition Others.h:1437
Evpu startXdisp
Horizontal offset for numbers at start of system.
Definition Others.h:1439
Evpu mmRestYdisp
Vertical offset for multi-measure rest ranges.
Definition Others.h:1444
bool breakMmRest
Mid-system numbers break multimeasure rests.
Definition Others.h:1462
Represents the Measure Number Region with detailed font and enclosure settings for score and part dat...
Definition Others.h:1411
bool smpteFrames
SMPTE frames (when showing real time measure numbers). This option supercedes timePrecision.
Definition Others.h:1504
std::shared_ptr< ScorePartData > scoreData
Score-wide measure number data.
Definition Others.h:1488
bool hidePage
Indicates if numbers are hidden in Page View.
Definition Others.h:1509
static const xml::XmlElementArray< MeasureNumberRegion > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool hideScroll
Indicates if numbers are hidden in Scroll View and Studio View.
Definition Others.h:1508
std::string prefix
Text prefix for measure numbers (encoded UTF-8).
Definition Others.h:1496
MeasureNumberRegion(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:1414
int base
The base used for measure number calculations. (Frequently 10 for numeric or 26 for alpha)
Definition Others.h:1494
bool doubleUp
Indicates "a, b, c...aa, bb, cc" number style: the symbols are repeated when they exceed the base.
Definition Others.h:1501
int region
The region ID. This 1-based value is set by Finale and never changes, whereas the Cmper may change wh...
Definition Others.h:1506
TimePrecision timePrecision
Precision for real-time sequences.
Definition Others.h:1507
std::optional< int > calcDisplayNumberFor(MeasCmper measureId) const
Returns the visible number for a measure id with respect to the region.
Definition Others.cpp:352
bool calcIncludesMeasure(MeasCmper measureId) const
Calculates whether the input measure is covered by this measure number region.
Definition Others.h:1513
TimePrecision
Precision for time display.
Definition Others.h:1420
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:1533
bool noZero
Indicates the base has no zero value: true for alpha sequences and false for numeric sequences.
Definition Others.h:1500
char32_t startChar
UTF-32 code for the first character in the sequence. (Frequently '0', 'a', or 'A')
Definition Others.h:1493
MeasCmper startMeas
Starting measure number for the region.
Definition Others.h:1491
std::optional< int > calcLastDisplayNumber() const
Returns the last visible number in the region. This function takes into account if the last measure i...
Definition Others.cpp:371
bool time
Display real time sequences rather than numbers or letters.
Definition Others.h:1502
std::string suffix
Text suffix for measure numbers (encoded UTF-8).
Definition Others.h:1497
MeasCmper endMeas
Ending measure number for the region (non-inclusive).
Definition Others.h:1492
int numberOffset
This value is 1 less than the "Starting Number" field in the Finale UI. (xml node is <offset>)
Definition Others.h:1495
int getStartNumber() const
Returns the starting display measure number for this region. The value is irrespective of whether the...
Definition Others.h:1521
bool countFromOne
Start counting from 1 rather than 0, e.g., "1, 2, 3, 4" numbering style (in conjuction with base 10)
Definition Others.h:1499
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1546
std::shared_ptr< ScorePartData > partData
Part-specific measure number data.
Definition Others.h:1489
bool includeHours
Display hours (when showing real time measure numbers)
Definition Others.h:1503
bool useScoreInfoForPart
Use score-wide settings for parts.
Definition Others.h:1505
Represents the attributes of a measure.
Definition Others.h:1120
MusxInstance< KeySignature > createKeySignature(const std::optional< StaffCmper > &forStaff=std::nullopt) const
Creates and returns a shared pointer to an instance of the KeySignature for this measure and staff.
Definition Others.cpp:155
bool hasTextBlock
Indicates if the measure has a measure-assigned text block. See details::MeasureTextAssign.
Definition Others.h:1198
std::shared_ptr< KeySignature > globalKeySig
the global key signature on this measure. Guaranteed to be non-null. (xml node is <keySig>)
Definition Others.h:1171
Evpu width
"Ideal" measure width in Evpu. Page layout determines actual width.
Definition Others.h:1170
PositioningType
Positioning (music spacing) type for the measure.
Definition Others.h:1129
@ BeatChart
Legacy option "Use a Beat Positioning Chart" (xml node is <beatchart>)
@ TimeSignature
Legacy option "Use the Time Signature" (xml node is <timesig>)
@ TimeSigPlusPositioning
"According to the Time Signature" (xml node is <timesigPlusPos>)
@ Manual
"Manually (By Dragging)" the default.
@ BeatChartPlusPositioning
"Using Beat-Chart Spacing" (xml node is <beatchartPlusPos>)
Cmper beats
Number of beats in the measure or the Cmper to a timesigUpper composite numerator list.
Definition Others.h:1172
bool useDisplayTimesig
Indicates whether to use the display time signature.
Definition Others.h:1206
MusxInstance< MeasureNumberRegion > findMeasureNumberRegion() const
Finds the measure number region containing this measure.
Definition Others.cpp:121
Evpu backSpaceExtra
Extra space at end of bar.
Definition Others.h:1179
bool breakMmRest
"Break a Multimeasure Rests" (xml node is <breakRest>)
Definition Others.h:1195
bool abbrvTime
Definition Others.h:1204
bool hasSmartShape
Indicates if the measure has a smart shape.
Definition Others.h:1182
bool groupBarlineOverride
Override the barline specified by a details::StaffGroup (if any)
Definition Others.h:1183
std::optional< int > calcDisplayNumber() const
Calculates the visible number of the measure, based on the first MeasureNumberRegion that contains it...
Definition Others.cpp:144
bool pageBreak
If true, begin new page here. (Behavior is weird if the measure is not the first of its system....
Definition Others.h:1211
bool hasEnding
Indicates the presence of a repeat ending. (xml node is <barEnding>)
Definition Others.h:1202
MusxInstance< TimeSignature > createTimeSignature(const std::optional< StaffCmper > &forStaff=std::nullopt) const
Create a shared pointer to an instance of the TimeSignature for this measure and staff.
Definition Others.cpp:178
bool compositeNumerator
Indicates a composite numerator for the time signature. (xml node is <altNumTsig>)
Definition Others.h:1187
Cmper divBeat
Divisions per beat (Edu) or the Cmper to a timesigLower composite denominator list.
Definition Others.h:1173
util::Fraction calcMinLegacyPickupSpacer() const
Calculates the legacy pickup spacer in any staff, in global Edu values.
Definition Others.cpp:227
bool showFullNames
"Show Full Staff & Group Names"
Definition Others.h:1184
bool compositeDispNumerator
Indicates a composite numerator for the display time signature. (xml node is <displayAltNumTsig>)
Definition Others.h:1209
bool evenlyAcrossMeasure
"Position Evenly Across Measure" (xml node is <indivPosDef>)
Definition Others.h:1191
BarlineType barlineType
Barline type. (xml node is <barline>)
Definition Others.h:1199
Cmper customBarShape
Cmper of Shape Designer ShapeDef for custom right barline.
Definition Others.h:1176
ShowKeySigMode
How and whether to show a Key Signature in this measure.
Definition Others.h:1155
@ IfNeeded
Show if needed (the default)
@ Always
Always show (xml value is "deltaKey")
@ Never
Never show (xml value is "ignoreKey")
BarlineType
Barline type for left and right barlines.
Definition Others.h:1140
@ Tick
Right barlines only: tick barline (xml value is "partial")
@ None
No barline. (This is the default value for the enum.)
@ Custom
Custom barline (created with Shape Designer)
@ OptionsDefault
Left barlines only: use value from options::BarlineOptions (xml values is "default")
@ Dashed
Dashed barline (xml value is "dash")
Cmper dispDivbeat
Displayed divisions per beat (Edu) or the Cmper to a timesigLower composite denominator list.
Definition Others.h:1175
Evpu frontSpaceExtra
Extra space at front of bar.
Definition Others.h:1178
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1278
bool compositeDenominator
Indicates a composite denominator for the time signature. (xml node is <altDenTsig>)
Definition Others.h:1188
ShowKeySigMode showKey
Show mode for key signatures.
Definition Others.h:1189
Cmper customLeftBarShape
Cmper of Shape Designer ShapeDef for custom left barline.
Definition Others.h:1177
ShowTimeSigMode
How and whether to show a Time Signature in this measure.
Definition Others.h:1164
bool calcShouldShowFullNames() const
Calculates if a measure should show full names vs. abbreviated names.
Definition Others.h:1214
bool hasOssia
Indicates if the measure has an ossia assigned. (xml node is <arbitMusic>)
Definition Others.h:1197
bool hasExpression
Indicates if the measure has an expression assigned. See MeasureExprAssign. (xml node is <hasExpr>)
Definition Others.h:1194
Cmper dispBeats
Displayed beats in the measure or the Cmper to a timesigUpper composite numerator list.
Definition Others.h:1174
bool hasMeasNumbIndivPos
Has individual measure numbering positioning. (xml node is <mnSepPlace>)
Definition Others.h:1185
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:1270
PositioningType positioningMode
Positioning type for the measure. (xml node is <posMode>)
Definition Others.h:1192
bool forwardRepeatBar
Indicates a forward repeat bar on this measure. (xml node is <forRepBar>)
Definition Others.h:1200
bool hasTextRepeat
Indicates the presence of one or more text repeat assigments. (xml node is <txtRepeats>)
Definition Others.h:1203
bool compositeDispDenominator
Indicates a composite denominator for the display time signature. (xml node is <displayAltDenTsig>)
Definition Others.h:1210
static const xml::XmlElementArray< Measure > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool noMeasNum
Inverse of "Include in Measure Numbering".
Definition Others.h:1196
BarlineType leftBarlineType
Left barline type. (xml node is <leftBarline>)
Definition Others.h:1208
util::Fraction calcDuration(const std::optional< StaffCmper > &forStaff=std::nullopt) const
Calculates the duration of the measure according to the time signature.
Definition Others.cpp:251
ShowTimeSigMode showTime
Show mode for time signatures.
Definition Others.h:1190
bool allowSplitPoints
"Allow Horizontal Split Points" See SplitMeasure. (xml node is <posSplit>)
Definition Others.h:1186
Measure(const DocumentWeakPtr &document, Cmper measureId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:1123
bool hasChord
Indicates the presence of one or more chords.
Definition Others.h:1207
bool hideCaution
"Hide Cautionary Clefs, Key, and Time Signature"
Definition Others.h:1181
bool breakWordExt
Barline ends word extensions on lyrics.
Definition Others.h:1180
bool backwardsRepeatBar
Indicates a backwards repeat bar on this measure. (xml node is <bacRepBar>)
Definition Others.h:1201
MusxInstance< TimeSignature > createDisplayTimeSignature(const std::optional< StaffCmper > &forStaff=std::nullopt) const
Create a shared pointer to an instance of the display TimeSignature for this measure and staff.
Definition Others.cpp:194
util::Fraction calcTimeStretch(StaffCmper forStaff) const
Calculates the time stretch. This is the value by which independent time edus are multiplied to get g...
Definition Others.h:1265
bool beginNewSystem
"Begin a New Staff System" (xml node is <lineBreak>)
Definition Others.h:1193
Represents a group ID for a multi-staff setup.
Definition Others.h:1604
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1612
MultiStaffGroupId(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:1607
static const xml::XmlElementArray< MultiStaffGroupId > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Cmper staffGroupId
Cmper of details::StaffGroup that has the instrument's full and abbreviated names.
Definition Others.h:1610
Represents a group of instruments spanning multiple staves.
Definition Others.h:1622
MusxInstance< Staff > getStaffInstanceAtIndex(size_t x) const
Returns the staff instance (without any staff styles applied) at the index position or null if out of...
Definition Others.cpp:389
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1664
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:1654
std::vector< StaffCmper > staffNums
Vector of Cmper values representing up to 3 staff numbers.
Definition Others.h:1628
MusxInstance< details::StaffGroup > getStaffGroup(Cmper forPartId) const
Gets the group associated with this multistaff instrument, or nullptr if not found.
Definition Others.cpp:409
std::optional< size_t > getIndexOf(StaffCmper staffId) const
Returns the index of the input staffId or std::nullopt if not found.
Definition Others.h:1638
static const xml::XmlElementArray< MultiStaffInstrumentGroup > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
MultiStaffInstrumentGroup(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:1625
static void calcAllMultiStaffGroupIds(const DocumentPtr &document)
Used by the factory to calculate all multistaff ids and visual ids for instances of Staff.
Definition Others.cpp:425
MusxInstance< Staff > getFirstStaffInstance() const
Returns the first staff instance without any staff styles applied (with integrity check)
Definition Others.cpp:400
Represents the attributes of a multimeasure rest in the page layout.
Definition Others.h:1558
int symbolThreshold
If the number of rests is less than this value, symbols are used when useSymbols is true....
Definition Others.h:1570
static const xml::XmlElementArray< MultimeasureRest > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu numVertAdj
Vertical number adjustment, sign-revered from Finale UI. (xml node is <numdec>)
Definition Others.h:1566
Cmper shapeDef
Cmper of Shape Designer ShapeDef that specifies the H-bar.
Definition Others.h:1567
bool useSymbols
Use symbols instead of an H-bar, based on symbolThreshold. (xml node is <useCharRestStyle>)
Definition Others.h:1575
int calcNumberOfMeasures() const
Calculates the number of measures spanned by this multimeasure rest.
Definition Others.h:1581
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:1586
MeasCmper nextMeas
Next measure after the multimeasure west.
Definition Others.h:1565
MultimeasureRest(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper startMeasure)
Constructor function.
Definition Others.h:1561
MeasCmper getStartMeasure() const
Get the start measure of this multimeasure rest.
Definition Others.h:1578
Evpu measWidth
Width of the multemeasure rest "measure" in Evpu. (xml node is <meaSpace>)
Definition Others.h:1564
Evpu shapeStartAdjust
Start adjustment for the H-bar shape in Evpu. (xml node is <startAdjust>)
Definition Others.h:1573
Evpu shapeEndAdjust
End adjustment for the shape in Evpu. (xml node is <endAdjust>)
Definition Others.h:1574
Evpu symbolSpacing
Spacing between symbols in Evpu. (xml node is <spacing>)
Definition Others.h:1571
int numStart
Definition Others.h:1568
Evpu numHorzAdj
Horizontal number adjustment in Evpu. (xml node is <numAdjX>)
Definition Others.h:1572
bool calcIsNumberVisible() const
Calculates if the number on this multimeasure rest is visible.
Definition Others.h:1584
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1594
Overrides abbreviated name positioning for Staff.
Definition Others.h:1675
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1679
Overrides full name positioning for Staff.
Definition Others.h:1703
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1707
Overrides abbreviated name positioning for StaffStyle.
Definition Others.h:1689
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1693
Overrides full name positioning for StaffStyle.
Definition Others.h:1717
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1721
Contains horizontal and vertical offsets, alignment, and expansion settings for name positioning.
Definition CommonClasses.h:686
NamePositioning(const DocumentWeakPtr &document, Cmper partId=SCORE_PARTID, ShareMode shareMode=ShareMode::All, Cmper cmper=0)
Constructs an NamePositioning object.
Definition CommonClasses.h:696
Represents a page text assignment with positioning and page range properties.
Definition Others.h:1787
PageCmper startPage
Definition Others.h:1812
Evpu yDisp
The vertical displacement from the default position. (xml tag is <ydisp>)
Definition Others.h:1811
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:1862
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1888
PageTextAssign(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
Constructor function.
Definition Others.h:1804
static MusxInstanceList< others::PageTextAssign > getArrayForPageId(const DocumentPtr &document, Cmper partId, PageCmper pageId)
Returns all the page text assignments for a given page number in a given part. This allows the caller...
Definition Others.cpp:542
bool indRpPos
Individual right page positioning indicator. (xml tag is <indRpPos>)
Definition Others.h:1826
bool hPosPageEdge
Definition Others.h:1822
bool hidden
Indicates if the page text appears only on screen. (xml tag is <postIt>)
Definition Others.h:1820
std::optional< PageCmper > calcEndPageNumber(Cmper forPartId) const
Return the ending page number, taking into account leading blank pages in all parts This calculation ...
Definition Others.cpp:569
static const xml::XmlElementArray< PageTextAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
PageCmper endPage
Definition Others.h:1814
Evpu rightPgXDisp
Horizontal displacement for right pages (if indRpPos is true). (xml tag is <rightPgXdisp>)
Definition Others.h:1827
PageAssignType oddEven
Determines if a multipage assignment appears on all, even (left), or odd (right) pages.
Definition Others.h:1817
util::EnigmaParsingContext getRawTextCtx(Cmper forPartId, std::optional< Cmper > forPageId=std::nullopt) const
Gets the raw text for parsing this assignment, or nullptr if none.
Definition Others.cpp:522
MusxInstance< TextBlock > getTextBlock() const
Gets the TextBlock for this assignment, or nullptr if none.
Definition Others.cpp:517
PageAssignType
Which pages a multipage assignment appears on.
Definition Others.h:1794
@ AllPages
default (may not appear in xml)
Evpu rightPgYDisp
Vertical displacement for right pages (if indRpPos is true). (xml tag is <rightPgYdisp>)
Definition Others.h:1828
bool isMultiAssignedThruLastPage() const
Returns true if this is a multi-page assignment that is assigned to through last page,...
Definition Others.h:1859
HorizontalAlignment hPosLp
Horizontal alignment on left or all pages (depending on indRpPos). (xml tag is <hposLp>)
Definition Others.h:1818
static MusxInstance< others::PageTextAssign > getForPageId(const DocumentPtr &document, Cmper partId, PageCmper pageId, Inci inci)
Returns a specific page text assignment for a given page number in a given part. This allows the call...
Definition Others.cpp:533
Evpu xDisp
The horizontal displacement from the default position. (xml tag is <xdisp>)
Definition Others.h:1810
std::optional< PageCmper > calcStartPageNumber(Cmper forPartId) const
Return the starting page number, taking into account leading blank pages in all parts....
Definition Others.cpp:551
VerticalAlignment vPos
Vertical alignment. (xml tag is <vpos>)
Definition Others.h:1821
HorizontalAlignment hPosRp
Horizontal alignment on right pages (if indRpPos is true). (xml tag is <hposRp>)
Definition Others.h:1819
bool isMultiPage() const
Returns true if this is a multi-page assignment.
Definition Others.h:1855
bool vPosPageEdge
Definition Others.h:1824
Cmper block
The Cmper for the assigned TextBlock. (xml tag is <block>)
Definition Others.h:1809
Represents the attributes of a page in the page layout.
Definition Others.h:1730
std::optional< SystemCmper > lastSystemId
Computed by the Resolver function calcSystemInfo. This value is not in the xml.
Definition Others.h:1746
util::Fraction calcPageScaling() const
Calculate the page scaling.
Definition Others.h:1754
Evpu margTop
Top margin in Evpu. (Sign reversed in Finale UI.)
Definition Others.h:1741
bool isBlank() const
is this a blank page
Definition Others.h:1751
Evpu width
Page width in Evpu.
Definition Others.h:1737
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1760
std::optional< MeasCmper > firstMeasureId
Computed by the Resolver function calcSystemInfo. This value is not in the xml.
Definition Others.h:1747
static const xml::XmlElementArray< Page > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
int percent
Percent value (scaling factor).
Definition Others.h:1738
std::optional< MeasCmper > lastMeasureId
Computed by the Resolver function calcSystemInfo. This value is not in the xml.
Definition Others.h:1748
Evpu height
Page height in Evpu.
Definition Others.h:1736
static void calcSystemInfo(const DocumentPtr &document)
Resolver function used by factory to compute system and measure information for all pages.
Definition Others.cpp:453
Evpu margLeft
Left margin in Evpu.
Definition Others.h:1742
Evpu margBottom
Bottom margin in Evpu.
Definition Others.h:1743
Evpu margRight
Right margin in Evpu. (Sign reversed in Finale UI.)
Definition Others.h:1744
SystemCmper firstSystemId
First system on the page (-1 if page is blank). See StaffSystem. (xml node is <firstSystem>)
Definition Others.h:1739
bool holdMargins
"Hold Margins" (xml node is <scaleContentOnly>)
Definition Others.h:1740
Page(const DocumentWeakPtr &document, PageCmper pageId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:1733
Represents the attributes of a Finale "partDef".
Definition Others.h:1900
Cmper nameId
Cmper of the part name TextBlock. (xml tag is <nameID>)
Definition Others.h:1907
int smartMusicInst
SmartMusic instrument ID (-1 if not used).
Definition Others.h:1915
std::optional< PageCmper > calcPageNumberFromAssignmentId(PageCmper pageAssignmentId) const
Calculates a page number in this part from a page assignment ID. (See PageTextAssign....
Definition Others.cpp:647
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1953
int copies
Number of copies to print.
Definition Others.h:1909
Cmper calcScrollViewCmper() const
Returns the StaffUsed cmper for Scroll View for this part. See Document::calcScrollViewCmper.
Definition Others.cpp:642
int numberOfLeadingBlankPages
The number of leading blank pages in the part. This is not in the xml but calculated in factory::Docu...
Definition Others.h:1919
static const xml::XmlElementArray< PartDefinition > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool applyFormat
Meaning uncertain. May have to do with page format for parts and whether it has been applied.
Definition Others.h:1912
Cmper defaultNameStaff
If non-zero, this points to the Staff that has the default name (if unspecified by nameId....
Definition Others.h:1916
int partOrder
Value that determines the order of listed parts in Finale's UI.
Definition Others.h:1908
static MusxInstanceList< PartDefinition > getInUserOrder(const DocumentPtr &document)
Return the linked parts sorted in UI order by partOrder.
Definition Others.cpp:633
PageCmper calcAssignmentIdFromPageNumber(PageCmper pageId) const
Calculates a page assignment ID from a page number in the part.
Definition Others.cpp:664
bool extractPart
Indicates if the part should be extracted.
Definition Others.h:1911
PartDefinition(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:1903
Cmper defaultNameGroup
If non-zero, this points to the details::StaffGroup that has the default name (if unspecified by name...
Definition Others.h:1917
int numberOfPages
The total number of pages in the part. This is not in the xml but calculated in factory::DocumentFact...
Definition Others.h:1920
util::EnigmaParsingContext getNameRawTextCtx() const
Get the raw text context for the part name if any.
Definition Others.cpp:589
static MusxInstance< PartDefinition > getScore(const DocumentPtr &document)
Return the instance for the score.
Definition Others.cpp:624
std::string getName(util::EnigmaString::AccidentalStyle accidentalStyle=util::EnigmaString::AccidentalStyle::Ascii) const
Get the part name if any.
Definition Others.cpp:600
bool useAsSmpInst
Indicates if the part is used as a SmartMusic instrument.
Definition Others.h:1914
bool isScore() const
Return true if this part corresponds to the score.
Definition Others.h:1929
bool needsRecalc
Indicates if the part needs update layout.
Definition Others.h:1913
bool printPart
Indicates the part should be printed.
Definition Others.h:1910
Represents global values that can vary by part.
Definition Others.h:1965
Cmper scrollViewIUlist
If this value is non-zero, it is the iuList Cmper of the current Staff List in Scroll View.
Definition Others.h:1973
bool showTransposed
If true, "Display Concert Pitch" is unchecked for the part.
Definition Others.h:1972
Cmper specialPartExtractionIUList
If non-zero, Special Part Extraction is enabled and this is the Cmper for its legacy StaffUsed array.
Definition Others.h:1991
static const xml::XmlElementArray< PartGlobals > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
PartGlobals(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:1968
Cmper calcScrollViewCmper() const
Return the StaffUsed cmper for Scroll View for this part.
Definition Others.cpp:679
Cmper studioViewIUlist
The iuList Cmper for Studio View.
Definition Others.h:1974
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:1999
Defines voicing options for linked parts, either by selection rules or by assigning a layer.
Definition Others.h:2014
SingleLayerVoiceType
Choices for how notes are selected when the staff contains only one layer.
Definition Others.h:2033
@ SelectedNotes
Use flags select1st, select2nd, etc., to select notes. (xml value is "selected")
@ BottomNote
Select the bottom note. (xml value is "botNote")
@ AllNotes
Select all notes. (This is the default value and may never appear in the xml.)
PartVoicing(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper staff)
Constructor function.
Definition Others.h:2021
bool select1st
Select the first note from top or bottom. (See selectFromBottom.)
Definition Others.h:2043
static const xml::XmlElementArray< PartVoicing > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool enabled
Indicates that this voicing is enabled.
Definition Others.h:2040
VoicingType voicingType
Determines how notes are selected from the staff.
Definition Others.h:2041
LayerIndex multiLayer
The 0-based LayerIndex of the layer to include when the staff contains multiple layers and voicingTyp...
Definition Others.h:2052
bool selectFromBottom
Definition Others.h:2048
VoicingType
Choices for how notes are selected from the staff.
Definition Others.h:2026
@ UseSingleLayer
Display all notes from the layer specified by singleLayer. (This is the default value and may never a...
@ UseMultipleLayers
Display selected notes from one or more layer(s).
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2065
bool select5th
Select the fifth note from top or bottom. (See selectFromBottom.)
Definition Others.h:2047
SingleLayerVoiceType singleLayerVoiceType
Determines how notes are selected when the staff contains only one layer. (xml node is <singleVoiceTy...
Definition Others.h:2042
bool selectSingleNote
If true, always include any passages containing only a single note.
Definition Others.h:2050
bool calcShowsLayer(LayerIndex layerIndex, bool frameIsMultilayerInScore) const
Returns if this part voicing includes the specified layer in a given frame context.
Definition Others.cpp:691
bool calcShowsNote(const NoteInfoPtr &noteInfoPtr) const
Returns if this part voicing includes the specified note.
Definition Others.cpp:702
bool select3rd
Select the third note from top or bottom. (See selectFromBottom.)
Definition Others.h:2045
bool select2nd
Select the second note from top or bottom. (See selectFromBottom.)
Definition Others.h:2044
LayerIndex singleLayer
The 0-based LayerIndex of the layer to uses when voicingType is UseSingleLayer.
Definition Others.h:2051
bool select4th
Select the fourth note from top or bottom. (See selectFromBottom.)
Definition Others.h:2046
Represents percussion notehead and staff position info for a given percussion note type.
Definition Others.h:2078
char32_t wholeNotehead
Codepoint for whole notehead (from percussion notehead font. See options::FontOptions::FontType::Perc...
Definition Others.h:2092
char32_t closedNotehead
Codepoint for closed notehead (from percussion notehead font. See options::FontOptions::FontType::Per...
Definition Others.h:2090
const percussion::PercussionNoteType & getNoteType() const
Gets a reference to the PercussionNoteType record for this note id.
Definition Others.cpp:758
PercussionNoteInfo(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
Constructor function.
Definition Others.h:2081
int staffPosition
Definition Others.h:2085
PercussionNoteTypeId percNoteType
The percussion note type ID. Compare this with the value in details::PercussionNoteCode.
Definition Others.h:2084
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2112
static const xml::XmlElementArray< PercussionNoteInfo > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
char32_t dwholeNotehead
Codepoint for double whole notehead (from percussion notehead font. See options::FontOptions::FontTyp...
Definition Others.h:2093
char32_t halfNotehead
Codepoint for half notehead (from percussion notehead font. See options::FontOptions::FontType::Percu...
Definition Others.h:2091
PercussionNoteTypeId getBaseNoteTypeId() const
Gets the base PercussionNoteTypeId.
Definition Others.h:2100
int calcStaffReferencePosition() const
Calculates the fixed staff position for this percussion note relative to a staff's reference line.
Definition Others.h:2096
unsigned getNoteTypeOrderId() const
Gets the orderId.
Definition Others.h:2105
Per-instance positioning overrides for RepeatBack.
Definition Others.h:2349
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2353
Represents a repeat-backward marker with positioning and behavior properties.
Definition Others.h:2152
bool resetOnAction
"Reset on Repeat Action" (xml tag is <clrOnChange>)
Definition Others.h:2168
Evpu rightVPos
The vertical position of the upper right bracket, relative to the default. (xml tag is <line2>)
Definition Others.h:2173
RepeatTriggerType trigger
The condition that triggers the jumpAction.
Definition Others.h:2170
static const xml::XmlElementArray< RepeatBack > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
int passNumber
Definition Others.h:2159
Evpu leftVPos
The vertical position of the lower left bracket, relative to the default. (xml tag is <line1>)
Definition Others.h:2164
bool hidden
Inverse of "Show" checkbox.
Definition Others.h:2167
Evpu leftHPos
The horizontal position of the left bracket, relative to the default. (xml tag is <pos1>)
Definition Others.h:2163
Evpu rightHPos
The horizontal position of the upper right bracket, relative to the default. (xml tag is <pos2>)
Definition Others.h:2172
RepeatActionType jumpAction
The jump action for this repeat ending. The automatic jump is to the next ending. (xml tag is <action...
Definition Others.h:2169
Cmper staffList
If non-zero, specifies a staff list for which staves to show the ending.
Definition Others.h:2171
bool topStaffOnly
"Show On: Top Staff Only"
Definition Others.h:2166
RepeatStaffListSet createStaffListSet() const
Create a StaffListSet for the given instance. This can be used to interrogate whether a staff appears...
Definition Others.cpp:791
int targetValue
Absolute or relative measure number, depending on jumpAction. (xml tag is <target>)
Definition Others.h:2162
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2185
RepeatBack(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:2155
bool individualPlacement
"Allow Individual Edits Per Staff" (xml tag is <indivPlac>)
Definition Others.h:2165
MusxInstance< RepeatIndividualPositioning > getIndividualPositioning(StaffCmper staffId) const
Returns the RepeatIndividualPositioning record for a given staff. Check individualPlacement to see if...
Definition Others.cpp:786
Per-instance positioning overrides for the line positioning of RepeatEndingStart.
Definition Others.h:2365
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2369
Represents a repeat ending start marker in the document.
Definition Others.h:2198
Evpu leftVPos
The vertical position of the lower left bracket, relative to the default. (xml tag is <line1>)
Definition Others.h:2210
Evpu rightVPos
The vertical position of the upper right bracket, relative to the default. (xml tag is <line2>)
Definition Others.h:2222
RepeatTriggerType trigger
Definition Others.h:2215
std::string createEndingText() const
Taking into account all options, creates a string containing the text for this ending....
Definition Others.cpp:871
Evpu leftHPos
The horizontal position of the lower left bracket, relative to the default. (xml tag is <pos1>)
Definition Others.h:2209
Evpu textVPos
The vertical position of the text relative to leftVPos. (xml tag is <textLine>)
Definition Others.h:2220
Evpu endLineVPos
The vertical offset of the final bracket, relative to rightVPos or 0 if the ending is open....
Definition Others.h:2219
Evpu rightHPos
The horizontal position of the upper right bracket, relative to the default. (xml tag is <pos2>)
Definition Others.h:2221
MusxInstance< RepeatIndividualPositioning > getIndividualPositioning(StaffCmper staffId) const
Returns the RepeatIndividualPositioning record for a given staff. Check individualPlacement to see if...
Definition Others.cpp:861
static const xml::XmlElementArray< RepeatEndingStart > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool calcIsOpen() const
Calculates if the ending is open or closed, based on a number of factors.
Definition Others.cpp:836
Evpu textHPos
The horizontal position of the text relative to leftHPos. (xml tag is <textPos>)
Definition Others.h:2208
int targetValue
Absolute or relative measure number, depending on jumpAction. (xml tag is <nextEnd>)
Definition Others.h:2207
bool jumpIfIgnoring
"Skip Ending if Ignoring Repeats" (xml tag is <jmpIgnore>)
Definition Others.h:2218
bool hidden
Inverse of "Show" checkbox.
Definition Others.h:2213
bool topStaffOnly
"Show On: Top Staff Only"
Definition Others.h:2212
Cmper staffList
If non-zero, specifies a staff list for which staves to show the ending.
Definition Others.h:2206
MusxInstance< RepeatIndividualPositioning > getTextIndividualPositioning(StaffCmper staffId) const
Returns the RepeatIndividualPositioning record for the text a given staff. Check individualPlacement ...
Definition Others.cpp:866
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:2252
RepeatStaffListSet createStaffListSet() const
Create a StaffListSet for the given instance. This can be used to interrogate whether a staff appears...
Definition Others.cpp:894
RepeatActionType jumpAction
The jump action for this repeat ending. The automatic jump is to the next ending. (xml tag is <action...
Definition Others.h:2214
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2261
int calcEndingLength() const
Calculates the number of measures in the ending based on jumpAction.
Definition Others.cpp:800
bool individualPlacement
"Allow Individual Edits Per Staff" (xml tag is <indivPlac>)
Definition Others.h:2211
RepeatEndingStart(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:2201
Per-instance positioning overrides for text positioning of RepeatEndingStart.
Definition Others.h:2381
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2385
Represents the text associated with a RepeatEndingStart.
Definition Others.h:2275
static const xml::XmlElementArray< RepeatEndingText > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
std::string text
The text.
Definition Others.h:2281
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2283
RepeatEndingText(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:2278
Per-instance positioning overrides for repeat elements.
Definition Others.h:2316
Evpu x1add
Left/start X offset in Evpu.
Definition Others.h:2332
MeasCmper measureId
Measure for text repeats, otherwise zero. (xml tag is <id>)
Definition Others.h:2330
StaffCmper staffId
Staff for this individual positioning. (xml tag is <instno>)
Definition Others.h:2329
static const xml::XmlElementArray< RepeatIndividualPositioning > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool hidden
Overrides the value in the main record. (Ignored for RepeatEndingTextIndividualPositioning)
Definition Others.h:2331
Evpu y2add
Right/end Y offset in Evpu. (Always zero for RepeatEndingTextIndividualPositioning and TextRepeatIndi...
Definition Others.h:2335
Evpu y1add
Left/start Y offset in Evpu.
Definition Others.h:2333
RepeatIndividualPositioning(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
Constructs a RepeatIndividualPositioning object.
Definition Others.h:2326
Evpu x2add
Right/end X offset in Evpu. (Always zero for RepeatEndingTextIndividualPositioning and TextRepeatIndi...
Definition Others.h:2334
Represents a list of repeat ending numbers for a RepeatEndingStart instance.
Definition Others.h:2296
static const xml::XmlElementArray< RepeatPassList > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2302
Stores the properties and behaviors of shape expressions.
Definition Others.h:2409
int auxData1
Auxiliary data for the expression. (xml node is "auxdata1")
Definition Others.h:2424
bool masterShape
Whether this expression references the master copy of the shape.
Definition Others.h:2428
PlaybackType playbackType
Playback behavior of the text expression.
Definition Others.h:2431
int playPass
"Play Only on Pass" value.
Definition Others.h:2425
Cmper categoryId
Identifier for the category of the text expression. (xml node is "categoryID")
Definition Others.h:2420
bool breakMmRest
Whether the text breaks multimeasure rests.
Definition Others.h:2426
AlignJustify horzExprJustification
Horizontal justification of the text expression.
Definition Others.h:2434
bool noPrint
Inverse of "Hidden" checkbox.
Definition Others.h:2429
int value
Value associated with the expression (e.g., velocity).
Definition Others.h:2422
std::string description
Description of the text expression. (xml node is "descStr")
Definition Others.h:2439
Cmper shapeDef
Identifier for the Shape Designer ShapeDef associated with this expression.
Definition Others.h:2419
bool useAuxData
Whether auxiliary data is used.
Definition Others.h:2427
static const xml::XmlElementArray< ShapeExpressionDef > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
HorizontalMeasExprAlign horzMeasExprAlign
Horizontal alignment of the expression.
Definition Others.h:2432
Evpu yAdjustEntry
Vertical adjustment for entry alignment.
Definition Others.h:2436
RehearsalMarkStyle rehearsalMarkStyle
Auto-sequencing style for rehearsal marks.
Definition Others.h:2421
bool useCategoryPos
Whether to use category position.
Definition Others.h:2438
VerticalMeasExprAlign vertMeasExprAlign
Vertical alignment of the expression.
Definition Others.h:2433
ShapeExpressionDef(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor.
Definition Others.h:2416
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2441
Evpu measXAdjust
Horizontal adjustment for measurement alignment.
Definition Others.h:2435
Cmper execShape
Executable shape Cmper for playback (ShapeDef)
Definition Others.h:2423
bool noHorzStretch
Inverse of "Allow Horizontal Stretching" checkbox.
Definition Others.h:2430
Evpu yAdjustBaseline
Vertical adjustment for baseline alignment.
Definition Others.h:2437
Defines the split point(s) where a measure may be divided between two systems. A measure can only spl...
Definition Others.h:2470
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2476
static const xml::XmlElementArray< SplitMeasure > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
This class specified the name of a staff list used by @ ref MarkingCategory.
Definition Others.h:2509
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2513
This class is used by MarkingCategory to define the staves for parts in a staff list.
Definition Others.h:2523
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2529
This class is used by MarkingCategory to define the staves for parts in a staff list.
Definition Others.h:2539
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2545
This class specified the name of a staff list used by RepeatEndingStart, RepeatBack,...
Definition Others.h:2555
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2559
This class is used by repeat classes to define the forced staves for parts in a staff list....
Definition Others.h:2586
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2592
This class is used by repeat classes to define the staves for parts in a staff list.
Definition Others.h:2569
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2575
This class is used by repeat classes to define the forced staves for the score in a staff list....
Definition Others.h:2619
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2625
This class is used by repeat classes to define the staves for the score in a staff list.
Definition Others.h:2602
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2608
Generic resolver for a family of staff lists.
Definition Others.h:2638
bool contains(StaffCmper staffId, const MusxInstanceList< StaffUsed > &systemStaves, bool isHidden=false) const noexcept
Returns true is the staff list includes a particular staff on a particular system.
Definition Others.cpp:921
Defines a staff list. See subclasses for how it is used.
Definition Others.h:2487
static const xml::XmlElementArray< StaffList > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
FloatingValues
Defines special assignment values used for floating staff assignments.
Definition Others.h:2494
@ TopStaff
This value means the assignment is to the top staff of any system or part.
@ BottomStaff
This value means the assignment is to the bottom staff of any system or part.
Represents the attributes of a staff system in the page layout.
Definition Others.h:2661
bool hasStaffScaling
Indicates if any individual staff in the system has scaling applied.
Definition Others.h:2687
Evpu right
Right margin in Evpu. (Sign reversed in Finale UI.)
Definition Others.h:2682
util::Fraction calcSystemScaling() const
Calculate the system scaling.
Definition Others.h:2709
MeasCmper startMeas
Starting measure of the staff system. See Measure.
Definition Others.h:2669
bool scaleVert
"Resize Vertical Space"
Definition Others.h:2689
StaffSystem(const DocumentWeakPtr &document, Cmper staffSystemId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:2664
util::Fraction calcEffectiveScaling() const
Calculates the effective scaling on this system, taking into account page scaling.
Definition Others.cpp:966
Evpu left
Left margin in Evpu.
Definition Others.h:2681
Efix staffHeight
Staff height in Efix units. Note that this is different units than options::PageFormatOptions::PageFo...
Definition Others.h:2679
int calcNumMeasures() const
Calculates the number of measures on the system, encapsulating how endMeas works.
Definition Others.h:2703
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2731
bool holdMargins
"Hold Margins" (xml node is <scaleContentOnly>)
Definition Others.h:2690
double horzPercent
Definition Others.h:2676
bool placeEndSpaceBeforeBarline
Indicates that extra space is placed before the barline.
Definition Others.h:2688
Evpu distanceToPrev
Distance to the previous staff system in Evpu.
Definition Others.h:2691
std::pair< util::Fraction, util::Fraction > calcMinMaxStaffSizes() const
Calculates the maximum and minimum staff scaling values for this system by searching each staff for i...
Definition Others.cpp:975
Evpu bottom
Definition Others.h:2683
Evpu extraEndSystemSpace
Extra space at the end of the staff system in Evpu.
Definition Others.h:2693
Evpu top
Top margin in Evpu. (Sign reversed in Finale UI.)
Definition Others.h:2680
PageCmper pageId
The page this system is on. This values is not in the xml but is computed by the factory.
Definition Others.h:2695
bool noNames
Definition Others.h:2685
MeasCmper endMeas
Definition Others.h:2670
static const xml::XmlElementArray< StaffSystem > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
MeasCmper getLastMeasure() const
Encapsulates the weird Finale fact that endMeas is actually one past the end of the system.
Definition Others.h:2699
void integrityCheck(const std::shared_ptr< Base > &ptrToThis) override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Others.h:2722
MusxInstance< others::Page > getPage() const
Gets the page this system is on.
Definition Others.cpp:961
Evpu extraStartSystemSpace
Extra space at the start of the staff system in Evpu.
Definition Others.h:2692
int ssysPercent
Staff system scaling percentage (100 means no scaling).
Definition Others.h:2678
An array of StaffUsed defines a set of staves in a staff system or in Scroll View.
Definition Others.h:2741
std::shared_ptr< EnigmaMusicRange > range
The music range. (Late versions of Finale may always include the entire piece here....
Definition Others.h:2749
MusxInstance< Staff > getStaffInstance() const
Returns the Staff instance for this element, without any staff styles applied.
Definition Others.cpp:1094
StaffUsed(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
Constructor function.
Definition Others.h:2744
Evpu distFromTop
Distance from the top of the system (negative is down)
Definition Others.h:2748
StaffCmper staffId
Staff cmper (xml node is <inst>)
Definition Others.h:2747
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2760
static const xml::XmlElementArray< StaffUsed > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
util::Fraction calcEffectiveScaling() const
Calculates the effective scaling on this instance, taking into accound system and page scaling.
Definition Others.cpp:1078
Locks a span of one or more measures so that they always appear in a StaffSystem together.
Definition Others.h:2774
MeasCmper endMeas
Definition Others.h:2780
static const xml::XmlElementArray< SystemLock > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
SystemLock(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:2777
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2785
A single tempo change value entered with Finale's Tempo tool.
Definition Others.h:2805
int unit
Hardware ticks/sec. For Macs this is 1000.
Definition Others.h:2818
TempoChange(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
Constructor function.
Definition Others.h:2808
int ratio
Definition Others.h:2813
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2829
static const xml::XmlElementArray< TempoChange > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
int getAbsoluteTempo(NoteType noteType=NoteType::Quarter) const
Computes the absolute tempo represented by the TempoChange Instance.
Definition Others.cpp:997
Edu eduPosition
The position within the measure. (xml node is <eldur>)
Definition Others.h:2817
bool isRelative
Definition Others.h:2819
Represents the attributes of a Finale "textBlock".
Definition Others.h:2841
TextType textType
Text tag indicating the type of text block. (xml tag is <textTag>)
Definition Others.h:2878
bool noExpandSingleWord
Do not expand single word.
Definition Others.h:2872
bool roundCorners
Use rounded corners on frame.
Definition Others.h:2876
bool wordWrap
Wrap words (in frames)
Definition Others.h:2873
bool newPos36
Definition Others.h:2868
TextType
Enum for textTag values.
Definition Others.h:2850
@ Expression
textId is a Cmper for a texts::ExpressionText
@ Block
textId is a Cmper for a texts::BlockText
static std::string getText(const DocumentPtr &document, const Cmper textId, Cmper forPartId, bool trimTags=false, util::EnigmaString::AccidentalStyle accidentalStyle=util::EnigmaString::AccidentalStyle::Ascii)
return displayable text with Enigma tags removed
Definition Others.cpp:1033
Efix cornerRadius
Corner radius for rounded corners.
Definition Others.h:2877
TextJustify justify
Justification (left, center, right, full, force full)
Definition Others.h:2867
Cmper shapeId
If non-zero, the Cmper of the custom frame shape. (xml tag is <shapeID>)
Definition Others.h:2861
bool showShape
Show shape.
Definition Others.h:2871
util::EnigmaParsingContext getRawTextCtx(Cmper forPartId, std::optional< Cmper > forPageId=std::nullopt, util::EnigmaString::TextInsertCallback defaultInsertFunc=util::EnigmaString::defaultInsertsCallback) const
Gets the raw text block context (from the texts pool) based on textType.
Definition Others.cpp:1014
Evpu width
Width of standard frame. If zero, the width expands to fit the text.
Definition Others.h:2862
Evpu height
Height of standard frame. If zero, the height expands to fit the text.
Definition Others.h:2863
Evpu xAdd
Horizontal offset from handle.
Definition Others.h:2865
int lineSpacingPercentage
Line spacing percentage.
Definition Others.h:2864
Cmper textId
Cmper of the text block. (xml tag is <textID>)
Definition Others.h:2860
static const xml::XmlElementArray< TextBlock > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
TextBlock(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:2856
Efix inset
Text inset from frame (all sides)
Definition Others.h:2874
Efix stdLineThickness
Thickness of standard frame line. (xml tag is <stdLine>)
Definition Others.h:2875
Evpu yAdd
Vertical offset from handle.
Definition Others.h:2866
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2892
Stores the properties and behaviors of text expressions.
Definition Others.h:2902
Evpu yAdjustBaseline
Vertical adjustment for baseline alignment.
Definition Others.h:2931
RehearsalMarkStyle rehearsalMarkStyle
Auto-sequencing style for rehearsal marks.
Definition Others.h:2914
bool matchPlayback
"Match Playback to Metronome Marking Text"
Definition Others.h:2920
bool hideMeasureNum
"Hide Measure Numbers" (used on Rehearsal Marks)
Definition Others.h:2919
util::EnigmaParsingContext getRawTextCtx(Cmper forPartId) const
Gets the raw text context for parsing this expression, or nullptr if none.
Definition Others.cpp:1051
MusxInstance< Enclosure > getEnclosure() const
Gets the enclosure for this expression, or nullptr if none.
Definition Others.cpp:1068
Cmper categoryId
Identifier for the category of the text expression.
Definition Others.h:2913
PlaybackType playbackType
Playback behavior of the text expression.
Definition Others.h:2925
Evpu measXAdjust
Horizontal adjustment for measurement alignment.
Definition Others.h:2929
int playPass
"Play Only on Pass" value.
Definition Others.h:2918
int auxData1
Auxiliary data for the expression. (xml node is "auxdata1")
Definition Others.h:2917
AlignJustify horzExprJustification
Horizontal justification of the text expression.
Definition Others.h:2928
MusxInstance< TextBlock > getTextBlock() const
Gets the TextBlock for this expression, or nullptr if none.
Definition Others.cpp:1046
bool useCategoryFonts
Whether to use category fonts.
Definition Others.h:2932
static const xml::XmlElementArray< TextExpressionDef > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Cmper execShape
Executable shape Cmper for playback (ShapeDef)
Definition Others.h:2916
std::string description
Description of the text expression. (xml node is "descStr")
Definition Others.h:2934
TextExpressionDef(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor.
Definition Others.h:2909
bool hasEnclosure
Whether the text expression has an enclosure. (xml node is "newEnclosure")
Definition Others.h:2922
int value
Value associated with the expression (e.g., velocity).
Definition Others.h:2915
bool createdByHp
Whether the text block was created by Finale's smart playback system.
Definition Others.h:2924
bool useAuxData
Whether auxiliary data is used.
Definition Others.h:2921
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2948
bool breakMmRest
Whether the text breaks multimeasure rests.
Definition Others.h:2923
VerticalMeasExprAlign vertMeasExprAlign
Vertical alignment of the expression.
Definition Others.h:2927
Evpu yAdjustEntry
Vertical adjustment for entry alignment.
Definition Others.h:2930
HorizontalMeasExprAlign horzMeasExprAlign
Horizontal alignment of the expression.
Definition Others.h:2926
bool useCategoryPos
Whether to use category position.
Definition Others.h:2933
Cmper textIdKey
Identifier for the TextBlock associated with this.
Definition Others.h:2912
The enclosure for a text expression (if it exists)
Definition Others.h:2960
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2964
static const xml::XmlElementArray< TextExpressionEnclosure > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Represents a text repeat assignment with positioning and behavior properties.
Definition Others.h:2977
bool jumpOnMultiplePasses
If true, use TextRepeatDef::passList to get the passes and ignore passNumber. (xml tag is <multiActua...
Definition Others.h:2995
RepeatStaffListSet createStaffListSet() const
Create a StaffListSet for the given instance. This can be used to interrogate whether a staff appears...
Definition Others.cpp:1123
bool individualPlacement
"Allow Individual Edits Per Staff" (xml tag is <indivPlac>)
Definition Others.h:2991
Cmper textRepeatId
The Cmper of the assigned TextRepeatDef. (xml tag is <repnum>)
Definition Others.h:2989
Cmper staffList
If non-zero, specifies a staff list for which staves to show the ending.
Definition Others.h:3000
int targetValue
Measure number, TextRepeatDef ID, or offset, depending on jumpAction. (xml tag is <target>)
Definition Others.h:2988
TextRepeatAssign(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper, Inci inci)
Constructor function.
Definition Others.h:2980
bool autoUpdate
"Auto-Update Target"
Definition Others.h:2997
int passNumber
Play Section N Times, Jump on Pass, Stop on Pass value, depending on jumpAction and trigger....
Definition Others.h:2987
bool topStaffOnly
"Show On: Top Staff Only"
Definition Others.h:2992
Evpu vertPos
The vertical offset from default of the text repeat marker.
Definition Others.h:2990
bool jumpIfIgnoring
"Jump if Ignoring Repeats" (xml tag is <jmpIgnore>)
Definition Others.h:2999
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:3012
MusxInstance< RepeatIndividualPositioning > getIndividualPositioning(StaffCmper staffId) const
Returns the RepeatIndividualPositioning record for a given staff. Check individualPlacement to see if...
Definition Others.cpp:1117
bool hidden
Inverse of "Show" checkbox.
Definition Others.h:2993
static const xml::XmlElementArray< TextRepeatAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
RepeatTriggerType trigger
The condition that triggers the jumpAction.
Definition Others.h:2998
RepeatActionType jumpAction
The jump action for this repeat assignment. (xml tag is <action>)
Definition Others.h:2996
bool resetOnAction
"Reset on Repeat Action" (xml tag is <clrOnChange>)
Definition Others.h:2994
Evpu horzPos
The horizontal offset from default of the text repeat marker.
Definition Others.h:2986
Defines text repeat elements with font styling and justification.
Definition Others.h:3028
PoundReplaceOption poundReplace
"Replace # With" choice.
Definition Others.h:3051
TextRepeatDef(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:3042
PoundReplaceOption
Enum for poundReplace options.
Definition Others.h:3035
@ MeasureNumber
"Measure Number in Target" (xml value is "measNum")
@ Passes
"Number of Times Played" (the default: may never appear in xml)
@ RepeatID
"Text Repeat ID in Target" (xml value is "repeatID")
std::shared_ptr< FontInfo > font
The font for this text repeat. (xml nodes <fontID>, <fontSize>, and <efx>)
Definition Others.h:3048
bool useThisFont
"Use This Font" (for the # substitution)
Definition Others.h:3050
std::vector< int > passList
If this vector contains elements, they define the repeat passes that apply to this instance.
Definition Others.h:3055
AlignJustify justification
Definition Others.h:3052
bool hasEnclosure
Whether the text repeat has an enclosure. (xml node is <newEnclosure>)
Definition Others.h:3049
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:3057
static const xml::XmlElementArray< TextRepeatDef > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
The enclosure for a text expression (if it exists)
Definition Others.h:3070
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:3074
static const xml::XmlElementArray< TextRepeatEnclosure > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Per-instance positioning overrides for TextRepeatDef.
Definition Others.h:2396
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:2400
Represents the text associated with a TextRepeatDef.
Definition Others.h:3087
TextRepeatText(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:3090
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:3097
static const xml::XmlElementArray< TextRepeatText > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
std::string text
The text.
Definition Others.h:3095
Represents an individual lower composite item in the time signature.
Definition Others.h:3122
static const xml::XmlElementArray< CompositeItem > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool startGroup
Indicates the start of a group.
Definition Others.h:3125
Edu unit
The size of the unit for this item. (xml node is <integer>)
Definition Others.h:3124
Represents the lower composite time signature array.
Definition Others.h:3110
static constexpr std::string_view XmlNodeName
XML node name.
Definition Others.h:3132
static const xml::XmlElementArray< TimeCompositeLower > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
std::vector< std::shared_ptr< CompositeItem > > items
composite items collection
Definition Others.h:3130
TimeCompositeLower(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:3113
Represents an individual composite item in the time signature.
Definition Others.h:3157
util::Fraction fullFraction() const
Return the beats as a complete fraction.
Definition Others.h:3164
bool startGroup
Indicates the start of a group.
Definition Others.h:3161
static const xml::XmlElementArray< CompositeItem > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Edu beats
The number of beats in this item. (xml node is <integer>)
Definition Others.h:3159
util::Fraction fraction
Fraction of beats (between 0 <= fraction < 1)
Definition Others.h:3160
Represents the upper composite time signature structure.
Definition Others.h:3145
static constexpr std::string_view XmlNodeName
XML node name.
Definition Others.h:3172
static const xml::XmlElementArray< TimeCompositeUpper > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
std::vector< std::shared_ptr< CompositeItem > > items
Collection of composite items.
Definition Others.h:3170
TimeCompositeUpper(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper)
Constructor function.
Definition Others.h:3148
Maps the number of flats to a tonal center for a linear custom key. If there are zero flats or sharps...
Definition Others.h:3189
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:3195
static const xml::XmlElementArray< TonalCenterFlats > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Maps number of sharps (0..7) to a tonal center for a linear custom key. Also maps 0 sharps or flats....
Definition Others.h:3211
static const xml::XmlElementArray< TonalCenterSharps > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Others.h:3217
Wrapper class for interpreting and rendering Enigma-style strings with insert handling.
Definition EnigmaString.h:423
AccidentalStyle
Enumeration to specify the type of accidental substitution representation.
Definition EnigmaString.h:199
@ Ascii
Use ASCII substitutions for accidentals.
static TextInsertCallback defaultInsertsCallback
Inserts callback to take all default insert subsitutions determined by parseEnigmaText.
Definition EnigmaString.h:347
std::function< std::optional< std::string >(const std::vector< std::string > &parsedCommand)> TextInsertCallback
Iteration function type that the parser calls back when it encounters an Enigma text insert that requ...
Definition EnigmaString.h:344
A class to represent fractions with integer m_numerator and m_denominator, automatically reduced to s...
Definition Fraction.h:38
static constexpr Fraction fromPercent(int percent)
Constructs a Fraction from a percent (where 100 is 100%)
Definition Fraction.h:107
@ Info
Informational messages for general program operation.
static void log(LogLevel level, const std::string &message)
Logs a message with a specific severity level.
Definition Logger.h:87
RehearsalMarkStyle
Specifies the sequencing style for rehearsal marks.
Definition Others.h:923
@ MeasureNumber
Displays the current measure number.
@ None
Default value, no rehearsal mark style.
@ LetterNumbers
A, B, C...A1, B1, C1.
@ LettersNumbersLowerCase
a, b, c...a1, b1, c1
@ LettersLowerCase
a, b, c...aa, bb, cc
VerticalMeasExprAlign
Specifies the vertical alignment relative to musical elements for an expression or marking category.
Definition Others.h:985
@ AboveStaffOrEntry
Align above the staff or entry.
@ BottomNote
Align with bottom note.
@ RefLine
Align to staff reference line.
@ BelowStaffOrEntry
Align below the staff or entry.
@ AboveStaff
Align above ths staff (the default).
HorizontalMeasExprAlign
Specifies the horizontal alignment relative to musical elements for an expression or marking category...
Definition Others.h:963
@ RightBarline
Align with left barline. (xml value is "rightEdge")
@ AfterClefKeyTime
Align after clef/key/time/repeat.
@ RightOfAllNoteheads
Align to the right of all noteheads.
@ StartTimeSig
Align at the start of the time signature.
@ LeftBarline
Align with left barline (the default). (xml value is "leftEdge", if encountered)
@ CenterPrimaryNotehead
Align to the center of the primary notehead.
@ CenterOverBarlines
Align over the center of the barlines.
@ CenterAllNoteheads
Align to the center of all noteheads.
@ CenterOverMusic
Align over the center of music.
@ LeftOfAllNoteheads
Align left of all noteheads.
@ LeftOfPrimaryNotehead
Align to the left of the primary notehead.
@ StartOfMusic
Align at start of music.
@ Manual
"Horizontal Click Position" alignment.
RepeatActionType
Enum for the possible values of the <action> element.
Definition Others.h:2121
@ Stop
Stops playback after a number of passes (e.g. "Fine")
@ JumpToMark
Jump to a specified repeat number (used by text repeats).
@ JumpAuto
Automatically Jump. (the default). The targetValue is meaningless for this action.
@ JumpAbsolute
Jump to the measure number specified in the targetValue field.
@ NoJump
Do not jump. The targetValue is meaningless for this action.
PlaybackType
Specifies the playback behavior for the an expression or marking category.
Definition Others.h:938
@ Swing
Playback in swing style.
@ SmartPlaybackOn
Turn on smart playback. (xml value is "hpOn")
@ SmartPlaybackOff
Turn off smart playback. (xml value is "hpOff")
@ IgnoreTempoToolChanges
Ignore changes from Tempo Tool. (xml value is "stopTempo")
@ RestrikeKeys
Playback retrikes keys. (xml value is "rekey")
@ Channel
Playback set the MIDI channel.
@ MidiPitchWheel
Playback affects the MIDI pitch wheel. (xml value is "midiPitchwheel")
@ KeyVelocity
Playback affects key velocity. (xml value is "amplitude")
@ MidiController
Playback type for MIDI controller commands.
@ MidiPatchChange
Playback changes the MIDI patch.
@ PercussionMidiMap
Playback uses percussion MIDI map. (xml value is "percMidiMap")
@ PlayTempoToolChanges
Play changes from Tempo Tool. (xml value is "startTempo")
@ Transpose
Playback causes transposition.
@ ChannelPressure
Playback affects MIDI channel pressure. (xml value is "midiPressure")
@ Tempo
Playback affects tempo. (xml value is "time")
@ Dump
Playback is an arbitrary data dump. (Data is in node <playDumpText> with the same Cmper value....
RepeatTriggerType
Enum for the possible values of the <trigger> element.
Definition Others.h:2136
@ Always
Always jump (the default)
@ OnPass
Jump on a sepecified pass number.
@ UntilPass
Jump until a specified pass number is reached.
ShowClefMode
Enum representing the clef display mode for a frame.
Definition EnumClasses.h:114
uint16_t PercussionNoteTypeId
multiple times in one layout. The rest are the "pure" note type. See percussion::PercussionNoteType.
Definition Fundamentals.h:74
constexpr double EFIX_PER_SPACE
Number of Efix units per space (spatium)
Definition Fundamentals.h:89
NoteType
Enum class representing note types based on EDU values.
Definition EnumClasses.h:90
int16_t MeasCmper
Enigma meas Cmper (may be negative when not applicable)
Definition Fundamentals.h:64
int32_t Efix
EFIX value (64 per EVPU, 64*288=18432 per inch)
Definition Fundamentals.h:60
std::shared_ptr< const T > MusxInstance
Defines the type of a musx instance stored in a pool.
Definition MusxInstance.h:39
unsigned int LayerIndex
Layer index (valid values are 0..3)
Definition Fundamentals.h:71
constexpr Cmper SCORE_PARTID
The part id of the score.
Definition Fundamentals.h:79
int16_t Inci
Enigma "incident" key type.
Definition Fundamentals.h:56
int32_t Evpu
EVPU value (288 per inch)
Definition Fundamentals.h:57
uint16_t Cmper
Enigma "comperator" key type.
Definition Fundamentals.h:55
uint16_t ClefIndex
Index into options::ClefOptions::clefDefs.
Definition Fundamentals.h:68
int32_t Edu
"Enigma Durational Units" value (1024 per quarter note)
Definition Fundamentals.h:61
std::weak_ptr< Document > DocumentWeakPtr
Shared weak Document pointer.
Definition BaseClasses.h:57
int32_t EntryNumber
Entry identifier.
Definition Fundamentals.h:69
std::shared_ptr< Document > DocumentPtr
Shared Document pointer.
Definition BaseClasses.h:55
int16_t StaffCmper
Enigma staff (staffId) Cmper (may be negative when not applicable)
Definition Fundamentals.h:65
int16_t SystemCmper
Enigma systems Cmper (may be negative when not applicable)
Definition Fundamentals.h:66
AlignJustify
Alignment and justification options for staff and group names.
Definition EnumClasses.h:30
int16_t PageCmper
Enigma page Cmper (may be negative when not applicable)
Definition Fundamentals.h:67
std::vector< XmlElementDescriptor< T > > XmlElementArray
an array type for XmlElementDescriptor instances.
Definition XmlInterface.h:127
object model for musx file (enigmaxml)
Definition BaseClasses.h:36
Represents a percussion note type mapping entry.
Definition PercussionNoteType.h:40