MUSX Document Model
Loading...
Searching...
No Matches
Details.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#include <functional>
24#include <vector>
25#include <unordered_set>
26#include <cmath>
27#include <map>
28
29#include "music_theory/music_theory.hpp"
30
31#include "musx/util/EnigmaString.h"
32#include "musx/util/PseudoTieUtils.h"
33#include "MusxInstance.h"
34#include "BaseClasses.h"
35#include "CommonClasses.h"
36#include "Options.h"
37#include "Others.h"
38#include "Staff.h"
39 // do not add other dom class dependencies. Use Implementations.h for implementations that need total class access.
40
41namespace musx {
42namespace dom {
43
44class EntryInfoPtr;
45class EntryFrame;
46class EntryInfo;
47
48namespace others {
49class ChordSuffixElement;
50class FretboardGroup;
51class FretInstrument;
52class FretboardStyle;
53class StaffUsed;
54class Measure;
55class MultiStaffInstrumentGroup;
56class TextBlock;
57} // namespace others
58
59namespace texts {
60class ExpressionText;
61class LyricsChorus;
62class LyricsSection;
63class LyricsVerse;
64} // namespace others
65
70namespace details {
71
81{
82public:
84 explicit AccidentalAlterations(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
85 : NoteDetailsBase(document, partId, shareMode, entnum, inci), customFont(std::make_shared<FontInfo>(document))
86 {
87 }
88
90 int percent{};
93 char32_t altChar{};
94 std::shared_ptr<FontInfo> customFont;
95 bool useOwnFont{};
96 bool allowVertPos{};
97
98 NoteNumber getNoteId() const override { return noteId; }
99
100 constexpr static std::string_view XmlNodeName = "acciAlter";
102};
103
111{
112public:
123
124private:
125 struct PseudoTieShapeContext
126 {
130 };
131
132public:
141 explicit ArticulationAssign(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
142 : EntryDetailsBase(document, partId, shareMode, entnum, inci) {}
143
150 bool aboveEntry{};
151 bool hide{};
152 bool neverStack{};
153 bool avoidSlur{};
155
158 [[nodiscard]] std::optional<utils::PseudoTieShapeInfo> calcIsPseudoTie(utils::PseudoTieMode mode,
159 const EntryInfoPtr& forStartEntry) const;
160
167 [[nodiscard]] std::optional<SelectedSymbolContext> calcSelectedSymbolContext(const EntryInfoPtr& entryInfo) const;
168
170 constexpr static std::string_view XmlNodeName = "articAssign";
171
172private:
178 [[nodiscard]] bool calcPlacementAbove(const MusxInstance<others::ArticulationDef>& definition,
179 const EntryInfoPtr& entryInfo) const;
183 [[nodiscard]] VerticalPlacement calcVerticalPlacement(const MusxInstance<others::ArticulationDef>& definition,
184 const EntryInfoPtr& entryInfo) const;
185 [[nodiscard]] std::optional<PseudoTieShapeContext> calcPseudoTieShapeContext(const EntryInfoPtr& forStartEntry) const;
186};
187
201class Baseline : public DetailsBase
202{
203public:
213 explicit Baseline(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper system, Cmper staff, std::optional<Inci> inci)
214 : DetailsBase(document, partId, shareMode, system, staff, inci) {}
215
219 std::optional<Cmper> lyricNumber{};
220
222};
223
229{
230public:
239 explicit BaselineNoInci(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper system, Cmper staff)
240 : Baseline(document, partId, shareMode, system, staff, std::nullopt) {}
241};
242
248{
249public:
251
252 constexpr static std::string_view XmlNodeName = "baselinesSysChords";
253};
254
260{
261public:
263
264 constexpr static std::string_view XmlNodeName = "baselinesSysExprAboveStaff";
265};
266
272{
273public:
275
276 constexpr static std::string_view XmlNodeName = "baselinesSysExprBelowStaff";
277};
278
284{
285public:
287
288 constexpr static std::string_view XmlNodeName = "baselinesSysFingerboards";
289};
290
296{
297public:
298 using Baseline::Baseline;
299
300 constexpr static std::string_view XmlNodeName = "baselinesSysLyricsChorus";
301};
302
308{
309public:
310 using Baseline::Baseline;
311
312 constexpr static std::string_view XmlNodeName = "baselinesSysLyricsSection";
313};
314
320{
321public:
322 using Baseline::Baseline;
323
324 constexpr static std::string_view XmlNodeName = "baselinesSysLyricsVerse";
325};
326
334{
335public:
337
339 constexpr static std::string_view XmlNodeName = "baselinesChords";
340};
341
349{
350public:
352
354 constexpr static std::string_view XmlNodeName = "baselinesExprAboveStaff";
355};
356
364{
365public:
367
369 constexpr static std::string_view XmlNodeName = "baselinesExprBelowStaff";
370};
371
379{
380public:
382
384 constexpr static std::string_view XmlNodeName = "baselinesFingerboards";
385};
386
394{
395public:
396 using Baseline::Baseline;
397
400 constexpr static std::string_view XmlNodeName = "baselinesLyricsChorus";
401};
402
410{
411public:
412 using Baseline::Baseline;
413
416 constexpr static std::string_view XmlNodeName = "baselinesLyricsSection";
417};
418
426{
427public:
428 using Baseline::Baseline;
429
432 constexpr static std::string_view XmlNodeName = "baselinesLyricsVerse";
433};
434
442{
443private:
444 bool m_active = true; // this value is set by the factory.
445
446protected:
448 template <typename SecondaryBeamType>
449 static bool calcIsFeatheredBeamImpl(const EntryInfoPtr& entryInfo, Evpu& outLeftY, Evpu& outRightY);
450
452 template <typename SecondaryBeamType>
454
455public:
464 explicit BeamAlterations(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, std::optional<Inci> inci = std::nullopt)
465 : EntryDetailsBase(document, partId, shareMode, entnum, inci) {}
466
469
478
483
486 bool isActive() const { return m_active; }
487
489 template <typename T,
490 std::enable_if_t<std::is_base_of_v<BeamAlterations, T>, int> = 0>
491 static void calcAllActiveFlags(const DocumentPtr& document);
492
496 static MusxInstance<BeamAlterations> getPrimaryForStem(const EntryInfoPtr& entryInfo, StemSelection stemSelection = StemSelection::MatchEntry); // must be defined in Details.cpp
497
502 static MusxInstance<BeamAlterations> getSecondaryForStem(const EntryInfoPtr& entryInfo, Edu dura, StemSelection stemSelection = StemSelection::MatchEntry); // must be defined in Details.cpp
503
505};
506
514{
515public:
523 explicit BeamAlterationsDownStem(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
524 : BeamAlterations(document, partId, shareMode, entnum) {}
525
526 constexpr static std::string_view XmlNodeName = "beamAltPrimDownStem";
527};
528
536{
537public:
545 explicit BeamAlterationsUpStem(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
546 : BeamAlterations(document, partId, shareMode, entnum) {}
547
548 constexpr static std::string_view XmlNodeName = "beamAltPrimUpStem";
549};
550
559{
560public:
568 explicit BeamExtension(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
569 : EntryDetailsBase(document, partId, shareMode, entnum) {}
570
573 unsigned mask{};
580
583 unsigned calcMaxExtension() const;
584
588 static MusxInstance<BeamExtension> getForStem(const EntryInfoPtr& entryInfo, StemSelection stemSelection = StemSelection::MatchEntry); // must be defined in Details.cpp
589
591};
592
598{
599public:
601
602 constexpr static std::string_view XmlNodeName = "beamExtendDownStem";
603};
604
610{
611public:
613
614 constexpr static std::string_view XmlNodeName = "beamExtendUpStem";
615};
616
626{
627public:
629 explicit BeamStubDirection(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
630 : EntryDetailsBase(document, partId, shareMode, entnum)
631 {
632 }
633
634 unsigned mask{};
637
639 bool isLeft() const { return mask != 0; }
640
641 constexpr static std::string_view XmlNodeName = "beamStub";
643};
644
657class Bracket : public DetailsBase
658{
659public:
661 explicit Bracket(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper1, Cmper cmper2, Inci inci)
662 : DetailsBase(document, partId, shareMode, cmper1, cmper2, inci)
663 {
664 }
665
667 explicit Bracket(const DocumentWeakPtr& document)
668 : DetailsBase(document, SCORE_PARTID, Base::ShareMode::All, Cmper{}, Cmper{}, Inci{})
669 {
670 }
671
676 enum class BracketStyle : int
677 {
678 None = 0,
679 ThickLine = 1,
681 PianoBrace = 3,
682 Unknown4,
683 Unknown5,
685 Unknown7,
686 DeskBracket = 8
687 };
688
694
695 constexpr static std::string_view XmlNodeName = "brackSpec";
697};
698
707{
708 Cmper calcFretboardGroupCmper() const;
709
710public:
720 explicit ChordAssign(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper staffId, Cmper meas, Inci inci)
721 : DetailsBase(document, partId, shareMode, staffId, meas, inci)
722 {
723 }
724
729 enum class BassPosition
730 {
731 AfterRoot, // default value may not appear in xml (but text appears in Finale binary)
732 UnderRoot,
733 Subtext
734 };
735
742 int rootAlter{};
744 bool playSuffix{};
745 bool showRoot{};
746 bool playRoot{};
748 bool showSuffix{};
751 int bassAlter{};
754 bool showAltBass{};
755 bool playAltBass{};
756 int capoValue{};
768 int chPercent{};
769 int fbPercent{};
770
773
777
781
782 constexpr static std::string_view XmlNodeName = "chordAssign";
784};
785
800class ClefOctaveFlats : public DetailsArray<int, 7>
801{
802 std::string_view xmlTag() const override { return XmlNodeName; }
803
804public:
806
807 constexpr static std::string_view XmlNodeName = "clefOctvFlats";
809};
810
829class ClefOctaveSharps : public DetailsArray<int, 7>
830{
831 std::string_view xmlTag() const override { return XmlNodeName; }
832
833public:
835
836 constexpr static std::string_view XmlNodeName = "clefOctvSharps";
838};
839
849{
850public:
852 explicit CrossStaff(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
853 : NoteDetailsBase(document, partId, shareMode, entnum, inci)
854 {
855 }
856
859
860 NoteNumber getNoteId() const override { return noteId; }
861
862 constexpr static std::string_view XmlNodeName = "crossStaff";
864};
865
875{
876public:
884 explicit CustomStem(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
885 : EntryDetailsBase(document, partId, shareMode, entnum) {}
886
890
897 bool calcIsHiddenStem() const;
898
902 static MusxInstance<CustomStem> getForStem(const EntryInfoPtr& entryInfo, StemSelection stemSelection = StemSelection::MatchEntry); // must be defined in Details.cpp
903
905};
906
914{
915public:
917
918 constexpr static std::string_view XmlNodeName = "stemDefDown";
919};
920
928{
929public:
931
932 constexpr static std::string_view XmlNodeName = "stemDefUp";
933};
934
944{
945public:
947 explicit DotAlterations(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
948 : NoteDetailsBase(document, partId, shareMode, entnum, inci)
949 {
950 }
951
956
957 NoteNumber getNoteId() const override { return noteId; }
958
959 constexpr static std::string_view XmlNodeName = "dotOffset";
961};
962
974{
975public:
983 explicit EntryPartFieldDetail(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
984 : EntryDetailsBase(document, partId, shareMode, entnum) {}
985
987 bool freezeStem{};
988 bool upStem{};
989
991 constexpr static std::string_view XmlNodeName = "entryPartFieldDetail";
992};
993
1003{
1004public:
1012 explicit EntrySize(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
1013 : EntryDetailsBase(document, partId, shareMode, entnum) {}
1014
1015 int percent{};
1016
1018 constexpr static std::string_view XmlNodeName = "entrySize";
1019};
1020
1034{
1035public:
1039 explicit FretboardDiagram(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper1, Cmper cmper2)
1040 : DetailsBase(document, partId, shareMode, cmper1, cmper2)
1041 {}
1042
1050 enum class Shape
1051 {
1052 None,
1053 Closed,
1054 Open,
1055 Muted,
1056 Custom
1057 };
1058
1063 class Cell
1064 {
1065 public:
1066 int string{};
1067 int fret{};
1070
1072 };
1073
1078 class Barre
1079 {
1080 public:
1081 int fret{};
1084
1086 };
1087
1088 int numFrets{};
1090 bool lock{};
1091 bool showNum{};
1094
1095 std::vector<std::shared_ptr<Cell>> cells;
1096 std::vector<std::shared_ptr<Barre>> barres;
1097
1098 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1099 {
1100 this->DetailsBase::integrityCheck(ptrToThis);
1101 if (numFretCells != int(cells.size())) {
1102 const int oldVal = numFretCells;
1103 numFretCells = int(cells.size());
1104 MUSX_INTEGRITY_ERROR("FretboardDiagram " + std::to_string(getCmper1()) + ", " + std::to_string(getCmper2())
1105 + " specifies the wrong number of cells (" + std::to_string(oldVal) + ").");
1106 }
1107 if (numFretBarres != int(barres.size())) {
1108 const int oldVal = numFretBarres;
1109 numFretBarres = int(barres.size());
1110 MUSX_INTEGRITY_ERROR("FretboardDiagram " + std::to_string(getCmper1()) + ", " + std::to_string(getCmper2())
1111 + " specifies the wrong number of barres (" + std::to_string(oldVal) + ").");
1112 }
1113 }
1114
1115 constexpr static std::string_view XmlNodeName = "fretboard";
1117};
1118
1127{
1128public:
1137 explicit GFrameHold(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper staffId, Cmper meas)
1138 : DetailsBase(document, partId, shareMode, staffId, meas), frames(MAX_LAYERS) {}
1139
1140 // Public properties corresponding to the XML structure
1141 std::optional<ClefIndex> clefId;
1147 std::vector<Cmper> frames;
1148
1151
1154
1156 bool calcIsMultiLayer() const
1157 {
1158 return std::count_if(frames.begin(), frames.end(), [](Cmper frameId) { return frameId != 0; }) > 1;
1159 }
1160
1163 {
1164 return std::find_if(frames.begin(), frames.end(), [](Cmper frameId) { return frameId != 0; }) != frames.end();
1165 }
1166
1170 std::pair<MusxInstance<others::Frame>, Edu> findLayerFrame(LayerIndex layerIndex) const;
1171
1175 bool iterateRawEntries(std::function<bool(const MusxInstance<Entry>&, LayerIndex)> iterator) const;
1176
1177 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1178 {
1179 this->DetailsBase::integrityCheck(ptrToThis);
1180 if (clefListId && clefId.has_value()) {
1181 MUSX_INTEGRITY_ERROR("GFrameHold for staff " + std::to_string(getCmper1()) + " and measure " + std::to_string(getCmper2()) + " has both clef and clef list.");
1182 }
1183 if (!clefListId && !clefId.has_value()) {
1184 MUSX_INTEGRITY_ERROR("GFrameHold for staff " + std::to_string(getCmper1()) + " and measure " + std::to_string(getCmper2()) + " has neither clef nor clef list.");
1185 }
1186 }
1187
1188 constexpr static std::string_view XmlNodeName = "gfhold";
1190};
1191
1200{
1201public:
1210 explicit IndependentStaffDetails(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper staffId, Cmper meas)
1211 : DetailsBase(document, partId, shareMode, staffId, meas)
1212 {
1213 }
1214
1215 // Key signature info
1216 std::shared_ptr<KeySignature> keySig;
1217 bool hasKey{};
1218
1219 // Time signature info
1224
1227 bool altNumTsig{};
1228 bool altDenTsig{};
1231 bool hasTime{};
1232
1235
1239
1240 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1241 {
1242 DetailsBase::integrityCheck(ptrToThis);
1243 if (hasKey && !keySig) {
1244 keySig = std::make_shared<KeySignature>(getDocument());
1245 }
1246 }
1247
1248 constexpr static std::string_view XmlNodeName = "floats";
1250};
1251
1260public:
1262 explicit KeySymbolListElement(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper1, Cmper cmper2)
1263 : DetailsBase(document, partId, shareMode, cmper1, cmper2) {}
1264
1265 std::string accidentalString;
1267
1270 return static_cast<int16_t>(getCmper2());
1271 }
1272
1273 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1274 {
1275 DetailsBase::integrityCheck(ptrToThis);
1276 if (std::abs(getAlterationValue()) > MAX_ALTERATIONS) {
1278 "KeySymbolListElement for list " + std::to_string(getCmper1()) + " has invalid value " + std::to_string(getAlterationValue()));
1279 }
1280 }
1281
1282 constexpr static std::string_view XmlNodeName = "keySymList";
1284};
1285
1291{
1292public:
1301 explicit LyricAssign(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
1302 : EntryDetailsBase(document, partId, shareMode, entnum, inci) {}
1303
1305 unsigned syllable{};
1313
1316
1318 virtual LyricTextType getLyricTextType() const = 0;
1319
1324
1329
1331};
1332
1340{
1341public:
1343
1345 LyricTextType getLyricTextType() const override;
1346
1349 constexpr static std::string_view XmlNodeName = "lyrDataChorus";
1350};
1351
1359{
1360public:
1362
1364 LyricTextType getLyricTextType() const override;
1365
1368 constexpr static std::string_view XmlNodeName = "lyrDataSection";
1369};
1370
1378{
1379public:
1381
1383 LyricTextType getLyricTextType() const override;
1384
1387 constexpr static std::string_view XmlNodeName = "lyrDataVerse";
1388};
1389
1398{
1399public:
1408 explicit LyricEntryInfo(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, std::optional<Inci> inci = std::nullopt)
1409 : EntryDetailsBase(document, partId, shareMode, entnum, inci) {}
1410
1411 std::optional<AlignJustify> justify{};
1412 std::optional<AlignJustify> align{};
1413
1415 constexpr static std::string_view XmlNodeName = "lyricEntryInfo";
1416};
1417
1426{
1427public:
1437 explicit MeasureNumberIndividualPositioning(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper staffId, Cmper meas, Inci inci)
1438 : DetailsBase(document, partId, shareMode, staffId, meas, inci)
1439 {
1440 }
1441
1447 {
1448 None,
1449 Show,
1450 Hide
1451 };
1452
1459 std::shared_ptr<others::Enclosure> enclosure;
1460
1461 constexpr static std::string_view XmlNodeName = "measNumbIndivPos";
1463};
1464
1481{
1482public:
1492 explicit MeasureTextAssign(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper staffId, Cmper meas, Inci inci)
1493 : DetailsBase(document, partId, shareMode, staffId, meas, inci)
1494 {
1495 }
1496
1502 bool hidden{};
1503
1506
1509
1510 constexpr static std::string_view XmlNodeName = "measTextAssign";
1512};
1513
1523{
1524public:
1526 explicit NoteAlterations(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
1527 : NoteDetailsBase(document, partId, shareMode, entnum, inci), customFont(new FontInfo(document))
1528 {
1529 }
1530
1532 int percent{};
1534 char32_t altNhead{};
1535 bool useOwnFont{};
1536 std::shared_ptr<FontInfo> customFont{};
1539 bool enharmonic{};
1541
1542 NoteNumber getNoteId() const override { return noteId; }
1543
1544 constexpr static std::string_view XmlNodeName = "noteAlter";
1546};
1547
1557{
1558public:
1560 explicit PercussionNoteCode(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
1561 : NoteDetailsBase(document, partId, shareMode, entnum, inci)
1562 {
1563 }
1564
1567
1568 NoteNumber getNoteId() const override { return noteId; }
1569
1570 constexpr static std::string_view XmlNodeName = "percussionNoteCode";
1572};
1573
1581{
1582public:
1592 explicit SecondaryBeamAlterationsDownStem(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
1593 : BeamAlterations(document, partId, shareMode, entnum, inci) {}
1594
1601 static bool calcIsFeatheredBeam(const EntryInfoPtr& entryInfo, Evpu& outLeftY, Evpu& outRightY)
1602 { return calcIsFeatheredBeamImpl<SecondaryBeamAlterationsDownStem>(entryInfo, outLeftY, outRightY); }
1603
1604 constexpr static std::string_view XmlNodeName = "beamAltSecDownStem";
1605};
1606
1614{
1615public:
1625 explicit SecondaryBeamAlterationsUpStem(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
1626 : BeamAlterations(document, partId, shareMode, entnum, inci) {}
1627
1634 static bool calcIsFeatheredBeam(const EntryInfoPtr& entryInfo, Evpu& outLeftY, Evpu& outRightY)
1635 { return calcIsFeatheredBeamImpl<SecondaryBeamAlterationsUpStem>(entryInfo, outLeftY, outRightY); }
1636
1637 constexpr static std::string_view XmlNodeName = "beamAltSecUpStem";
1638};
1639
1649{
1650public:
1652 explicit SecondaryBeamBreak(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
1653 : EntryDetailsBase(document, partId, shareMode, entnum)
1654 {
1655 }
1656
1657 unsigned mask{};
1659
1667 {
1668 MUSX_ASSERT_IF(!mask || mask >= unsigned(NoteType::Eighth)) {
1669 return 0; // invalid mask values have already been flagged and supposedly corrected by #integrityCheck.
1670 }
1671 for (unsigned shift = 0; true; shift++) {
1672 if (mask & (unsigned(NoteType::Note16th) >> shift)) {
1673 return shift + 2; // the 2nd beam is the 16th beam and the first one we checked.
1674 }
1675 }
1676 assert(false); // should not be able to get here
1677 return 0;
1678 }
1679
1680 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1681 {
1683 if (!mask) {
1684 mask = unsigned(NoteType::Note4096th);
1685 MUSX_INTEGRITY_ERROR("Secondary beam break for entry" + std::to_string(getEntryNumber()) + " has no breaks.");
1686 }
1687 if (mask >= unsigned(NoteType::Eighth)) {
1688 mask = unsigned(NoteType::Eighth) - 1;
1689 MUSX_INTEGRITY_ERROR("Secondary beam break for entry" + std::to_string(getEntryNumber()) + " specifies a value that cannot be a secondary beam.");
1690 }
1691 }
1692
1693 constexpr static std::string_view XmlNodeName = "secBeamBreak";
1695};
1696
1707{
1708public:
1711 explicit ShapeNoteBase(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper cmper1, Cmper cmper2)
1712 : DetailsBase(document, partId, shareMode, cmper1, cmper2)
1713 {}
1714
1719 {
1720 public:
1721 char32_t doubleWhole{};
1722 char32_t whole{};
1723 char32_t half{};
1724 char32_t quarter{};
1725
1727 };
1728
1729 std::vector<std::shared_ptr<NoteShapes>> noteShapes;
1732
1733 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1734 {
1735 this->DetailsBase::integrityCheck(ptrToThis);
1736 const size_t currentSize = noteShapes.size();
1737 if (currentSize < music_theory::STANDARD_DIATONIC_STEPS) {
1738 for (size_t x = currentSize; x < music_theory::STANDARD_DIATONIC_STEPS; x++) {
1739 noteShapes.emplace_back(std::make_shared<NoteShapes>());
1740 }
1741 MUSX_INTEGRITY_ERROR("For ShapeNoteBase cmper " + std::to_string(getCmper1()) + ", only " + std::to_string(currentSize)
1742 + " note shapes were provided but at least " + std::to_string(music_theory::STANDARD_DIATONIC_STEPS) + " were expected.");
1743 }
1744 }
1745
1747};
1748
1757{
1758public:
1760
1761 constexpr static std::string_view XmlNodeName = "shapeNote";
1762};
1763
1772{
1773public:
1775
1776 constexpr static std::string_view XmlNodeName = "shapeNoteStyle";
1777};
1778
1785class StaffGroup : public DetailsBase {
1786public:
1795 StaffGroup(const DocumentWeakPtr& document, Cmper partId, Base::ShareMode shareMode, Cmper cmper1, Cmper cmper2)
1796 : DetailsBase(document, partId, shareMode, cmper1, cmper2) {}
1797
1800
1806 {
1807 OnlyOnStaves,
1810 };
1811
1816 enum class HideStaves
1817 {
1818 Normally,
1819 AsGroup,
1820 None
1821 };
1822
1823 // Public properties corresponding to the XML structure, ordered as they appear in the XML
1831 std::shared_ptr<Bracket> bracket{};
1836 bool ownBarline{};
1839 bool hideName{};
1848
1854 std::unordered_set<StaffCmper> staves;
1855
1858
1862
1865
1869
1872
1876
1882
1886
1892
1894 bool isAllMeasures() const
1895 { return (startMeas == 1 && endMeas == (std::numeric_limits<MeasCmper>::max)()); }
1896
1897 void integrityCheck(const std::shared_ptr<Base>& ptrToThis) override
1898 {
1899 this->DetailsBase::integrityCheck(ptrToThis);
1900 if (endMeas <= startMeas || startMeas <= 0) {
1901 MUSX_INTEGRITY_ERROR("Staff group " + std::to_string(getCmper2()) + " for part " + std::to_string(getSourcePartId())
1902 + " starts at measure " + std::to_string(startMeas) + " and ends at measure " + std::to_string(endMeas));
1903 }
1904 if (!bracket) {
1905 // this is not an error. Finale omits the bracket node for groups with entirely default bracket info.
1906 bracket = std::make_shared<Bracket>(getDocument());
1907 }
1908 }
1909
1910 constexpr static std::string_view XmlNodeName = "staffGroup";
1912};
1913
1919{
1920public:
1921 std::optional<size_t> startSlot;
1922 std::optional<size_t> endSlot;
1925
1929 StaffGroupInfo(const MusxInstance<StaffGroup>& staffGroup,
1930 const MusxInstanceList<others::StaffUsed>& inpSysStaves);
1931
1933 std::optional<size_t> numStaves() const
1934 {
1935 if (startSlot && endSlot) {
1936 return endSlot.value() - startSlot.value() + 1;
1937 }
1938 return std::nullopt;
1939 }
1940
1945 void iterateStaves(MeasCmper measId, Edu eduPosition, std::function<bool(const MusxInstance<others::StaffComposite>&)> iterator) const;
1946
1950 bool calcIsSingleInstrumentSection(MeasCmper measureId) const;
1951
1956 static std::vector<StaffGroupInfo> getGroupsAtMeasure(MeasCmper measureId, Cmper linkedPartId,
1958};
1959
1969{
1970public:
1979 explicit StaffSize(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper system, Cmper staffId)
1980 : DetailsBase(document, partId, shareMode, system, staffId)
1981 {
1982 }
1983
1985
1989
1990 constexpr static std::string_view XmlNodeName = "staffSize";
1992};
1993
2003{
2004public:
2006 explicit StemAlterations(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
2007 : EntryDetailsBase(document, partId, shareMode, entnum)
2008 {
2009 }
2010
2015
2016 constexpr static std::string_view XmlNodeName = "stemAdjust";
2018};
2019
2029{
2030public:
2032
2033 constexpr static std::string_view XmlNodeName = "beamStemAdjust";
2034};
2035
2046{
2047public:
2049 explicit TablatureNoteMods(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
2050 : NoteDetailsBase(document, partId, shareMode, entnum, inci)
2051 {
2052 }
2053
2057
2058 NoteNumber getNoteId() const override { return noteId; }
2059
2060 constexpr static std::string_view XmlNodeName = "tabAlter";
2062};
2063
2069{
2070public:
2072 explicit TieAlterBase(const DocumentWeakPtr& document, Cmper partId, Base::ShareMode shareMode, EntryNumber entnum, Inci inci)
2073 : NoteDetailsBase(document, partId, shareMode, entnum, inci)
2074 {
2075 }
2076
2080 static MusxInstance<TieAlterBase> fromNoteInfo(const NoteInfoPtr& noteInfoPtr, bool forTieEnd = false);
2081
2109
2115 {
2116 None,
2117 Under,
2118 Over
2119 };
2120
2126 bool outerLocal{};
2127 bool outerOn{};
2136 bool down{};
2140 bool breakKeyOn{};
2143 bool stPtAdjOn{};
2146 bool enPtAdjOn{};
2153 bool ctlPtAdjOn{};
2154 bool ctlPtFixed{};
2156
2157 NoteNumber getNoteId() const override { return noteId; }
2158
2160};
2161
2171{
2172public:
2174
2175 constexpr static std::string_view XmlNodeName = "tieAlterEnd";
2177};
2178
2188{
2189public:
2191
2192 constexpr static std::string_view XmlNodeName = "tieAlterStart";
2194};
2195
2205{
2206public:
2208 explicit TupletDef(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
2209 : EntryDetailsBase(document, partId, shareMode, entnum, inci)
2210 {
2211 }
2212
2221
2226 bool alwaysFlat{};
2227 bool fullDura{};
2229 bool avoidStaff{};
2231 bool hidden{};
2238 bool allowHorz{};
2241 bool matchHooks{};
2250
2253
2256
2259
2260 constexpr static std::string_view XmlNodeName = "tupletDef";
2262};
2263
2264} // namespace details
2265} // namespace dom
2266} // namespace entries
Base class to enforce polymorphism across all DOM classes.
Definition BaseClasses.h:83
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
Template pattern for DetailsBase items consisting of an array of a single item.
Definition BaseClasses.h:538
DetailsArray(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper1, Cmper cmper2)
Constructor function.
Definition BaseClasses.h:544
Base class for all "details" types.
Definition BaseClasses.h:415
Cmper getCmper1() const
Gets the cmper1 key value.
Definition BaseClasses.h:459
Cmper getCmper2() const
Gets the cmper2 key value.
Definition BaseClasses.h:464
Base class for all "details" types that use entnum rather than cmper and cmper.
Definition BaseClasses.h:487
EntryNumber getEntryNumber() const
Gets the entnum key value.
Definition BaseClasses.h:526
StemSelection
The options for choosing which version to retrieve for stem-specific details.
Definition BaseClasses.h:492
@ MatchEntry
match entry's stem direction
Wraps a frame of shared_ptr<const EntryInfo> and an index for per entry access. This class manages ow...
Definition Entries.h:512
Represents the default font settings for a particular element type.
Definition CommonClasses.h:66
Provides optional per-type extension methods for MusxInstanceList.
Definition MusxInstance.h:103
Base class note details. Note details are entry details associated with a note ID.
Definition BaseClasses.h:569
Wraps an EntryInfo instance and a note index.
Definition Entries.h:1559
Represents display alterations to an accidental for a specific note.
Definition Details.h:81
Evpu hOffset
Horizontal offset: positive is right. (XML node: <axDisp>)
Definition Details.h:92
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:98
bool useOwnFont
Whether to use customFont.
Definition Details.h:95
std::shared_ptr< FontInfo > customFont
Font settings for the accidental (populated from <fontID>, <fontSize>, and <efx>)
Definition Details.h:94
NoteNumber noteId
The ID of the note being altered.
Definition Details.h:89
AccidentalAlterations(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor.
Definition Details.h:84
Evpu vOffset
Vertical offset: positive is up. (XML node: <ayDisp>)
Definition Details.h:91
char32_t altChar
If non-zero, the character to use for the accidental. (Utf-32 if the font is a Unicode font....
Definition Details.h:93
bool allowVertPos
Whether to use vOffset.
Definition Details.h:96
int percent
The percentage size for the accidental, where 100 is 100%.
Definition Details.h:90
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:100
static const xml::XmlElementArray< AccidentalAlterations > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Assigns an articulation to an entry.
Definition Details.h:111
ArticulationAssign(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:141
Cmper articDef
The articulation definition ID.
Definition Details.h:144
bool hide
Inverse of "Show" option.
Definition Details.h:151
bool neverStack
Whether the articulation should never stack relative to others.
Definition Details.h:152
int numSlursAvoided
Number of slurs avoided. Used internally by Finale's stacking algorithm.
Definition Details.h:154
bool avoidSlur
Whether the articulation should avoid slurs.
Definition Details.h:153
std::optional< SelectedSymbolContext > calcSelectedSymbolContext(const EntryInfoPtr &entryInfo) const
Resolves the symbol information used by this articulation assignment on the specified entry.
Definition Details.cpp:147
bool aboveEntry
When overridePlacement is true: whether the articulation is forced above or below the entry.
Definition Details.h:150
Evpu horzOffset
Horizontal offset from the default position.
Definition Details.h:145
bool overridePlacement
Whether the default placement is overridden.
Definition Details.h:149
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:170
static const xml::XmlElementArray< ArticulationAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
std::optional< utils::PseudoTieShapeInfo > calcIsPseudoTie(utils::PseudoTieMode mode, const EntryInfoPtr &forStartEntry) const
Calculates the pseudo-tie shape info if this articulation is acting as a pseudo tie for the specified...
Definition Details.cpp:205
Evpu vertOffset
Vertical offset from the default position.
Definition Details.h:147
Evpu vertAdd
Vertical displacement for character copying. (E.g., arpeggiated chord lines)
Definition Details.h:148
Evpu horzAdd
Horizontal displacement for character copying. (E.g., trill lines)
Definition Details.h:146
Contains the baseline offsets for chords.
Definition Details.h:334
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:339
Contains the baseline offsets for expressions above the staff.
Definition Details.h:349
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:354
Contains the baseline offsets for expressions below the staff.
Definition Details.h:364
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:369
Contains the baseline offsets for fretboards.
Definition Details.h:379
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:384
Contains the baseline offsets for lyrics chorus records.
Definition Details.h:394
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:400
Contains the baseline offsets for lyrics section records.
Definition Details.h:410
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:416
Contains the baseline offsets for lyrics verse records.
Definition Details.h:426
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:432
Encapsulates inci handling for non-inci baselines.
Definition Details.h:229
BaselineNoInci(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper system, Cmper staff)
Constructor function.
Definition Details.h:239
Contains the baseline offsets for chords.
Definition Details.h:248
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:252
Contains the baseline offsets for expressions above the staff.
Definition Details.h:260
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:264
Contains the baseline offsets for expressions below the staff.
Definition Details.h:272
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:276
Contains the baseline offsets for fretboards.
Definition Details.h:284
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:288
Contains the baseline offsets for lyrics chorus records.
Definition Details.h:296
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:300
Contains the baseline offsets for lyrics section records.
Definition Details.h:308
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:312
Contains the baseline offsets for lyrics verse records.
Definition Details.h:320
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:324
Contains the baseline information for all baseline types.
Definition Details.h:202
std::optional< Cmper > lyricNumber
The 1-based text number of the lyric, if this is a lyrics baseline. Otherwise unused and should be st...
Definition Details.h:219
static const xml::XmlElementArray< Baseline > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Baseline(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper system, Cmper staff, std::optional< Inci > inci)
Constructor function.
Definition Details.h:213
Evpu baselineDisplacement
Definition Details.h:216
Beam alteration for downstem primary beams.
Definition Details.h:514
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:526
BeamAlterationsDownStem(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor.
Definition Details.h:523
Beam alteration for upstem primary beams.
Definition Details.h:536
BeamAlterationsUpStem(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor.
Definition Details.h:545
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:548
Represents beam alterations applied to a specific entry. This is used to apply additional shaping or ...
Definition Details.h:442
static const xml::XmlElementArray< BeamAlterations > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool isActive() const
Returns whether this beam alteration record is active. Its flattenStyle must match the value in optio...
Definition Details.h:486
Edu dura
For secondary beams, specifies the duration corresponding to the secondary beam (16th beam is 256,...
Definition Details.h:474
Evpu rightOffsetY
Vertical adjustment of the beam end. (xml node is <syAdd>)
Definition Details.h:473
FlattenStyle flattenStyle
Beam shaping style (xml node is <context>).
Definition Details.h:475
static MusxInstance< BeamAlterations > getSecondaryForStem(const EntryInfoPtr &entryInfo, Edu dura, StemSelection stemSelection=StemSelection::MatchEntry)
Gets the beam extension record for the specified stemSelection.
Definition Details.cpp:376
static MusxInstance< BeamAlterations > getPrimaryForStem(const EntryInfoPtr &entryInfo, StemSelection stemSelection=StemSelection::MatchEntry)
Gets the beam extension record for the specified stemSelection.
Definition Details.cpp:368
BeamAlterations(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, std::optional< Inci > inci=std::nullopt)
Constructor.
Definition Details.h:464
static bool calcIsFeatheredBeamImpl(const EntryInfoPtr &entryInfo, Evpu &outLeftY, Evpu &outRightY)
Implementation of SecondaryBeamAlterationsDownStem::calcIsFeatheredBeam and SecondaryBeamAlterationsU...
Definition Details.cpp:291
Evpu rightOffsetH
Horizontal adjustment of the beam end. (xml node is <sxAdd>)
Definition Details.h:472
static MusxInstanceList< SecondaryBeamType > getSecondaryBeamArray(const EntryInfoPtr &entryInfo)
Generalized getter for secondary beam type arrays for either stem direction.
Definition Details.cpp:353
Evpu leftOffsetY
Vertical adjustment of the beam start. (xml node is <yAdd>)
Definition Details.h:471
Evpu leftOffsetH
Horizontal adjustment of the beam start. (xml node is <xAdd>)
Definition Details.h:470
Efix calcEffectiveBeamWidth() const
Calculates the effective beam width by returning either the default width or the width override value...
Definition Details.cpp:264
static void calcAllActiveFlags(const DocumentPtr &document)
Used by the factory to set active indicators.
Definition Details.cpp:244
Efix beamWidth
The calcEffectiveBeamWidth method handles this for you.
Definition Details.h:476
Beam extension for downstem beams.
Definition Details.h:598
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:602
Beam extension for upstem beams.
Definition Details.h:610
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:614
Represents both sides of a beam extension. It is attached to the first entry in the beam....
Definition Details.h:559
unsigned calcMaxExtension() const
Calculates the maximum beam extension.
Definition Details.cpp:414
static MusxInstance< BeamExtension > getForStem(const EntryInfoPtr &entryInfo, StemSelection stemSelection=StemSelection::MatchEntry)
Gets the beam extension record for the specified stemSelection.
Definition Details.cpp:436
bool extBeyond8th
Definition Details.h:576
Evpu rightOffset
Right extension offset. (xml node is <x4Disp>)
Definition Details.h:572
unsigned mask
Definition Details.h:573
static const xml::XmlElementArray< BeamExtension > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
BeamExtension(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor.
Definition Details.h:568
Evpu leftOffset
Left extension offset. (xml node is <x3Disp>)
Definition Details.h:571
Specifies the direction for beam stubs (if they are manually overridden.)
Definition Details.h:626
unsigned mask
Definition Details.h:634
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:641
static const xml::XmlElementArray< BeamStubDirection > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool isLeft() const
True if the beam stub(s) point left.
Definition Details.h:639
BeamStubDirection(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor function.
Definition Details.h:629
Represents a bracket, used in two different contexts:
Definition Details.h:658
static const xml::XmlElementArray< Bracket > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:695
Evpu horzAdjLeft
"Distance from Left Edge of Staff" (xml node is <bracPos>)
Definition Details.h:690
Evpu vertAdjTop
"Vertical Adjust (Top of Bracket)" (xml node is <bracTop>)
Definition Details.h:691
Bracket(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper1, Cmper cmper2, Inci inci)
Constructor for top-level instances.
Definition Details.h:661
Evpu vertAdjBot
"Vertical Adjust (Bottom of Bracket)" (xml node is <bracBot>)
Definition Details.h:692
Bracket(const DocumentWeakPtr &document)
Constructor for embedded instances.
Definition Details.h:667
BracketStyle style
Bracket style (xml node is <id>)
Definition Details.h:689
BracketStyle
Bracket types.
Definition Details.h:677
@ BracketCurvedHooks
Thick bracket with curved hooks.
@ DeskBracket
Thin bracket with horizontal hook lines.
@ BracketStraightHooks
Thick bracket with straight hooks.
bool showOnSingleStaff
"Show Bracket If Group Contains Only One Staff" (only applies to staff groups: xml node is <onSingle>...
Definition Details.h:693
Represents chord symbol assignment for a staff and measure.
Definition Details.h:707
Edu horzEdu
Edu position in measure.
Definition Details.h:767
Evpu fbHorzOff
Horizontal offset of fretboard (in EVPU)
Definition Details.h:765
bool showFretboard
Show fretboard.
Definition Details.h:747
bool rootLowerCase
Display root in lowercase (minor triad)
Definition Details.h:743
bool playRoot
Playback root.
Definition Details.h:746
bool showRoot
Show root.
Definition Details.h:745
int bassAlter
Bass alteration.
Definition Details.h:751
BassPosition
Bass position options.
Definition Details.h:730
ChordAssign(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper staffId, Cmper meas, Inci inci)
Constructor.
Definition Details.h:720
int rootScaleNum
Root scale degree: 0–6, where zero is the tonic.
Definition Details.h:741
Evpu fbVertOff
Vertical offset of fretboard (in EVPU)
Definition Details.h:766
bool showAltBass
Show alternate bass.
Definition Details.h:754
MusxInstanceList< others::ChordSuffixElement > getChordSuffix() const
Returns the chord suffix as an array of others::ChordSuffixElement.
Definition Details.cpp:457
Evpu horzOff
Horizontal offset of chord (in EVPU)
Definition Details.h:763
bool showSuffix
Show suffix.
Definition Details.h:748
MusxInstance< others::FretboardGroup > getFretboardGroup() const
Get the others::FretboardGroup instance for this chord assignment. You can use this to get the fret i...
Definition Details.cpp:462
Cmper suffixId
Definition Details.h:736
bool useFretboardFont
Definition Details.h:761
Inci fretboardGroupInci
Definition Details.h:758
bool playFretboard
Playback fretboard.
Definition Details.h:749
Cmper fbStyleId
The others::FretboardStyle ID. (Ignored when useFretboardFont is true.)
Definition Details.h:740
int fbPercent
FretboardDiagram scaling (100 means 100%)
Definition Details.h:769
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:782
int bassScaleNum
Bass scale degree: 0–6, where zero is the tonic.
Definition Details.h:750
Evpu vertOff
Vertical offset of chord (in EVPU)
Definition Details.h:764
int capoValue
Capo value (if useLocalCapo is true)
Definition Details.h:756
bool playAltBass
Playback alternate bass.
Definition Details.h:755
MusxInstance< others::FretboardStyle > getFretboardStyle() const
Returns the others::FretboardStyle instance for this chord assignment.
Definition Details.cpp:471
int chPercent
Chord scaling (100 means 100%)
Definition Details.h:768
int rootAlter
Root alteration.
Definition Details.h:742
bool playSuffix
Playback suffix.
Definition Details.h:744
bool useLocalCapo
Use local capo.
Definition Details.h:757
static const xml::XmlElementArray< ChordAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool bassLowerCase
Display bass in lowercase.
Definition Details.h:752
BassPosition bassPosition
Visual position of bass relative to root.
Definition Details.h:753
Defines the octaves in which each clef should display flats in key signatures. Only linear key signat...
Definition Details.h:801
static const xml::XmlElementArray< ClefOctaveFlats > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:807
Defines the octaves in which each clef should display sharps in key signatures.
Definition Details.h:830
static const xml::XmlElementArray< ClefOctaveSharps > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:836
Represents a cross-staff assignment for the note, if any.
Definition Details.h:849
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:860
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:862
static const xml::XmlElementArray< CrossStaff > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
CrossStaff(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:852
NoteNumber noteId
The ID of the note being assigned to a different staff (XML node: <noteID>)
Definition Details.h:857
StaffCmper staff
The target staff (XML node: <instrument>)
Definition Details.h:858
Custom stem for downstem context.
Definition Details.h:914
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:918
Represents a custom stem definition (up or down) for an entry. Which stem direction this instance con...
Definition Details.h:875
Evpu yOffset
Optional vertical displacement. (xml node is <ydisp>)
Definition Details.h:889
bool calcIsHiddenStem() const
Calculates if this custom stem record hides the stem. The stem is determined to be hidden if one of t...
Definition Details.cpp:483
static MusxInstance< CustomStem > getForStem(const EntryInfoPtr &entryInfo, StemSelection stemSelection=StemSelection::MatchEntry)
Gets the beam extension record for the specified stemSelection.
Definition Details.cpp:493
static const xml::XmlElementArray< CustomStem > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Cmper shapeDef
The Cmper of the associated others::ShapeDef. Setting this value to zero hides the stem.
Definition Details.h:887
Evpu xOffset
Optional horizontal displacement. (xml node is <xdisp>)
Definition Details.h:888
CustomStem(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor.
Definition Details.h:884
Custom stem for upstem context.
Definition Details.h:928
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:932
Represents display offsets and spacing adjustments for augmentation dots on a specific note.
Definition Details.h:944
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:959
NoteNumber noteId
The ID of the note whose dots are adjusted.
Definition Details.h:952
Evpu hOffset
Horizontal offset for the dot (XML: <xadd>)
Definition Details.h:953
Evpu vOffset
Vertical offset for the dot (XML: <yadd>)
Definition Details.h:954
static const xml::XmlElementArray< DotAlterations > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu interdotSpacing
Additional spacing between dots (XML: <posIncr>)
Definition Details.h:955
DotAlterations(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor.
Definition Details.h:947
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:957
Per-part overrides for entry properties such as manual position and stem direction.
Definition Details.h:974
bool upStem
When freezeStem is true: whether the stem is forced up (otherwise down).
Definition Details.h:988
bool freezeStem
Whether the stem direction is frozen for this entry in this part.
Definition Details.h:987
Evpu hOffset
Manual offset created with the Note Position Tool. (xml node is <posi>.)
Definition Details.h:986
static const xml::XmlElementArray< EntryPartFieldDetail > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
EntryPartFieldDetail(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor function.
Definition Details.h:983
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:991
Specifies a custom size for an entry. It scales the entire entry, including the stem and all notehead...
Definition Details.h:1003
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1018
int percent
The note/chord size as a percent (e.g., 65 for 65%).
Definition Details.h:1015
static const xml::XmlElementArray< EntrySize > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
EntrySize(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor.
Definition Details.h:1012
Represents a barre (spanning multiple strings).
Definition Details.h:1079
int endString
Ending 1-based string number.
Definition Details.h:1083
int startString
Starting 1-based string number.
Definition Details.h:1082
static const xml::XmlElementArray< Barre > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
int fret
0-based fret number, where 0 signifies the open string. (Finale allows nut barres....
Definition Details.h:1081
Represents a single fretboard cell (string/fret position).
Definition Details.h:1064
Shape shape
Cell shape.
Definition Details.h:1068
int fingerNum
Finger number 0..5, where 0 means there is no finger number and 5 means T (thumb).
Definition Details.h:1069
int fret
0-based fret number, where 0 signifies the open string.
Definition Details.h:1067
static const xml::XmlElementArray< Cell > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
FretboardDiagram diagram for chord symbols.
Definition Details.h:1034
int fretboardNum
FretboardDiagram number: the starting fret of the fretboard diagram (xml node <fretNum>).
Definition Details.h:1089
bool showNum
Show fretboard number.
Definition Details.h:1091
std::vector< std::shared_ptr< Barre > > barres
Array of fretboard barres.
Definition Details.h:1096
static const xml::XmlElementArray< FretboardDiagram > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
int numFretCells
Number of fret cells (xml node <numFretCells>).
Definition Details.h:1092
Shape
Shape type for a fretboard cell.
Definition Details.h:1051
@ None
No explicit shape. This is the default value and may not occur in the xml.
@ Custom
Custom symbol. By default this is an open diamond signifying a harmonic.
bool lock
Lock flag (xml node <lock>).
Definition Details.h:1090
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 Details.h:1098
int numFretBarres
Number of fret barres (xml node <numFretBarres>).
Definition Details.h:1093
FretboardDiagram(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper1, Cmper cmper2)
Constructor function.
Definition Details.h:1039
int numFrets
Number of frets.
Definition Details.h:1088
static constexpr std::string_view XmlNodeName
XML node name for this type.
Definition Details.h:1115
std::vector< std::shared_ptr< Cell > > cells
Array of fretboard cells.
Definition Details.h:1095
Represents the attributes of a Finale frame holder.
Definition Details.h:1127
StaffCmper getStaff() const
returns the staffId (staff) number for this GFrameHold
Definition Details.h:1150
GFrameHold(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper staffId, Cmper meas)
Constructor function.
Definition Details.h:1137
std::optional< ClefIndex > clefId
clef index when there are no mid-measure clef changes. (xml tag is <clefID>).
Definition Details.h:1141
int clefPercent
Clef percent where 100 means 100%.
Definition Details.h:1146
bool iterateRawEntries(std::function< bool(const MusxInstance< Entry > &, LayerIndex)> iterator) const
Iterates all the raw entries in a the GFrameHold, passing them to the iterator function....
Definition Details.cpp:526
ShowClefMode showClefMode
"Show Clef" mode. (xml tag is <clefMode>)
Definition Details.h:1143
bool mirrorFrame
Indicates this is a mirror frame. (Not used after Finale 14.5.)
Definition Details.h:1144
static const xml::XmlElementArray< GFrameHold > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
MeasCmper getMeasure() const
returns the measure number for this GFrameHold
Definition Details.h:1153
bool calcContainsMusic() const
Returns true if the GFrameHold contains any layer frames.
Definition Details.h:1162
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1188
bool calcIsMultiLayer() const
Returns true if the GFrameHold instance has more than one layer.
Definition Details.h:1156
bool clefAfterBarline
"Place Clef After Barline"
Definition Details.h:1145
Cmper clefListId
The clef list ID when there are mid-measure clef changes, if non-zero. (xml tag is <clefListID>).
Definition Details.h:1142
std::pair< MusxInstance< others::Frame >, Edu > findLayerFrame(LayerIndex layerIndex) const
Find the layer frame and Edu start position for the given layer. A non-zero start position indicates ...
Definition Details.cpp:505
std::vector< Cmper > frames
others::Frame values for layers 1..4 (layer indices 0..3) if non-zero
Definition Details.h:1147
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 Details.h:1177
Represents independent time and key signature overrides for a staff.
Definition Details.h:1200
bool hasTime
If true, this item contains an independent time signature.
Definition Details.h:1231
MusxInstance< TimeSignature > createTimeSignature() const
Create a shared pointer to an instance of the TimeSignature for this instance.
Definition Details.cpp:545
Cmper divBeat
Time signature denominator in Edu or a Cmper to a composite record.
Definition Details.h:1221
bool displayAltDenTsig
If true, dispDivBeat is the Cmper of a others::TimeCompositeLower record.
Definition Details.h:1226
Cmper dispDivBeat
Display time signature denominator in Edu or a Cmper to a composite record.
Definition Details.h:1223
bool altNumTsig
If true, beats is the Cmper of a others::TimeCompositeUpper record.
Definition Details.h:1227
bool hasKey
If true, this item contains an independent key signature.
Definition Details.h:1217
std::shared_ptr< KeySignature > keySig
The key signature value if present. (xml tag is <keySig>/<key>)
Definition Details.h:1216
IndependentStaffDetails(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper staffId, Cmper meas)
Constructor function.
Definition Details.h:1210
bool altDenTsig
If true, divBeat is the Cmper of a others::TimeCompositeLower record.
Definition Details.h:1228
static const xml::XmlElementArray< IndependentStaffDetails > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool hasDispTime
If true, the display time signature is present.
Definition Details.h:1230
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 Details.h:1240
bool displayAbbrvTime
If true, the display time signature is abbreviated.
Definition Details.h:1229
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1248
Cmper dispBeats
Display time signature numerator or a Cmper to a composite record.
Definition Details.h:1222
bool displayAltNumTsig
If true, dispBeats is the Cmper of a others::TimeCompositeUpper record.
Definition Details.h:1225
MusxInstance< TimeSignature > createDisplayTimeSignature() const
Create a shared pointer to an instance of the display TimeSignature for this measure and staff.
Definition Details.cpp:550
Cmper beats
Time signature numerator or a Cmper to a composite record.
Definition Details.h:1220
Represents a single element in a Finale accidental symbol list.
Definition Details.h:1259
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 Details.h:1273
int getAlterationValue() const
Returns the alteration value that this symbol corresponds with.
Definition Details.h:1269
KeySymbolListElement(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper1, Cmper cmper2)
Constructor function.
Definition Details.h:1262
static const xml::XmlElementArray< KeySymbolListElement > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1282
std::string accidentalString
Definition Details.h:1265
Contains the syllable assignments for lyrics chorus blocks.
Definition Details.h:1340
MusxInstance< texts::LyricsTextBase > getLyricText() const override
Get the raw lyric text for this assignment.
Definition Details.cpp:568
LyricTextType getLyricTextType() const override
Get the lyric text type for this assignment.
Definition Details.cpp:583
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1349
Contains the syllable assignments for lyrics section blocks.
Definition Details.h:1359
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1368
LyricTextType getLyricTextType() const override
Get the lyric text type for this assignment.
Definition Details.cpp:588
MusxInstance< texts::LyricsTextBase > getLyricText() const override
Get the raw lyric text for this assignment.
Definition Details.cpp:573
Contains the syllable assignments for lyrics verse blocks.
Definition Details.h:1378
LyricTextType getLyricTextType() const override
Get the lyric text type for this assignment.
Definition Details.cpp:578
MusxInstance< texts::LyricsTextBase > getLyricText() const override
Get the raw lyric text for this assignment.
Definition Details.cpp:563
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1387
Contains assignment data for a lyric assignment (a single syllable)
Definition Details.h:1291
util::EnigmaParsingContext getRawTextCtx() const
Return an Enigma parsing context for the associated lyrics text block.
Definition Details.cpp:593
virtual LyricTextType getLyricTextType() const =0
Get the lyric text type for this assignment.
Evpu wext
Definition Details.h:1309
LyricAssign(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:1301
static const xml::XmlElementArray< LyricAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Cmper lyricNumber
the text number of the lyric.
Definition Details.h:1304
unsigned syllable
the 1-based syllable number. Subtract 1 for an index into texts::LyricsTextBase::syllables....
Definition Details.h:1305
Evpu floatingHorzOff
This appears to have something to do with note spacing. It may simply be a cache that Finale changes ...
Definition Details.h:1308
Evpu horzOffset
horizontal offset from default position. (xml node is <horzOff>)
Definition Details.h:1306
virtual MusxInstance< texts::LyricsTextBase > getLyricText() const =0
Get the raw lyric text for this assignment.
Evpu vertOffset
horizontal offset from default position. (xml node is <vertOff>)
Definition Details.h:1307
bool displayVerseNum
If set, the text block number displays to the left of the syllable. (E.g., when numbering verses in a...
Definition Details.h:1312
EntryInfoPtr calcWordExtensionEndpoint() const
Calculate the entry to which an automatic word extension extends.
Definition Details.cpp:602
Specifies lyric alignment and justification for a single entry. This affects all lyric assignments on...
Definition Details.h:1398
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1415
std::optional< AlignJustify > align
Override default alignment if present. (xml node is <align>)
Definition Details.h:1412
static const xml::XmlElementArray< LyricEntryInfo > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
LyricEntryInfo(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, std::optional< Inci > inci=std::nullopt)
Constructor.
Definition Details.h:1408
std::optional< AlignJustify > justify
Override default justification if present. (xml node is <justify>)
Definition Details.h:1411
Per-staff/per-measure overrides for the position and appearance of a measure number.
Definition Details.h:1426
ForceVisibility
Force-visibility options for the measure number at this location.
Definition Details.h:1447
@ Show
Force the number to display (xml text value: "force")
@ Hide
Force the number to be hidden (xml text value: "hide")
@ None
No override (default; node may be omitted in XML)
bool useEnclosure
Whether to use an enclosure for this number. (xml node is <useEncl>)
Definition Details.h:1458
Evpu xOffset
Horizontal offset for the measure number. (xml node is <x1add>)
Definition Details.h:1454
Evpu xOffset2
Horizontal offset for the measure number range under a multimeasure rest (Page View only)....
Definition Details.h:1456
MeasureNumberIndividualPositioning(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper staffId, Cmper meas, Inci inci)
Constructor.
Definition Details.h:1437
static const xml::XmlElementArray< MeasureNumberIndividualPositioning > & xmlMappingArray()
Required for musx::
ForceVisibility forceVisibility
Force-visibility behavior. (xml node is <forceHide>)
Definition Details.h:1457
Cmper measNumRegion
The Cmper of the others::MeasureNumberRegion that this override applies to. (xml node is <region>)
Definition Details.h:1453
std::shared_ptr< others::Enclosure > enclosure
Optional enclosure settings. (xml node is <encl>)
Definition Details.h:1459
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1461
Evpu yOffset
Vertical offset for the measure number. (xml node is <y1add>)
Definition Details.h:1455
Represents a text block assignment for a staff and measure.
Definition Details.h:1481
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1510
util::EnigmaParsingContext getRawTextCtx(Cmper forPartId) const
Gets the raw text for this assignment, or nullptr if none.
Definition Details.cpp:633
Evpu yDisp
Vertical displacement in Evpu (xml node is <ydisp>)
Definition Details.h:1501
Evpu xDispEvpu
Negative horizontal displacement in Evpu, when xDispEdu is zero. (xml node is <xdispEvpu>)
Definition Details.h:1500
MusxInstance< others::TextBlock > getTextBlock() const
Gets the TextBlock for this assignment, or nullptr if none.
Definition Details.cpp:628
MeasureTextAssign(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper staffId, Cmper meas, Inci inci)
Constructor.
Definition Details.h:1492
Cmper block
Text block ID.
Definition Details.h:1497
bool hidden
Indicates the text appears only on screen (xml node is <postIt/>)
Definition Details.h:1502
static const xml::XmlElementArray< MeasureTextAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Edu xDispEdu
Definition Details.h:1498
Represents graphical and notational alterations applied to a note.
Definition Details.h:1523
bool allowVertPos
Whether vertical positioning is allowed .
Definition Details.h:1537
int percent
Size percentage for the notehead. (A value of 100 means 100%.)
Definition Details.h:1532
char32_t altNhead
Alternate notehead character.
Definition Details.h:1534
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1544
NoteAlterations(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:1526
Evpu nydisp
Vertical notehead offset.
Definition Details.h:1538
std::shared_ptr< FontInfo > customFont
Custom font info (consolidates: <fontID>, <fontSize>, <efx>)
Definition Details.h:1536
bool useOwnFont
Whether to use the custom font.
Definition Details.h:1535
Evpu nxdisp
Horizontal notehead offset.
Definition Details.h:1533
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:1542
bool enharmonic
Definition Details.h:1539
NoteNumber noteId
The ID of the note being altered. (xml node is <noteID>)
Definition Details.h:1531
static const xml::XmlElementArray< NoteAlterations > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Represents a percussion note code override for a single note.
Definition Details.h:1557
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:1568
NoteNumber noteId
The ID of the note being assigned a code.
Definition Details.h:1565
PercussionNoteTypeId noteCode
The percussion note code. Use this to search the incis of the percussion map for the specific note.
Definition Details.h:1566
static const xml::XmlElementArray< PercussionNoteCode > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
PercussionNoteCode(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:1560
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1570
Beam alteration for downstem secondary beams.
Definition Details.h:1581
static bool calcIsFeatheredBeam(const EntryInfoPtr &entryInfo, Evpu &outLeftY, Evpu &outRightY)
Calculates if the input entry starts a feathered beam and returns information about it.
Definition Details.h:1601
SecondaryBeamAlterationsDownStem(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor.
Definition Details.h:1592
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1604
Beam alteration for downstem secondary beams.
Definition Details.h:1614
static bool calcIsFeatheredBeam(const EntryInfoPtr &entryInfo, Evpu &outLeftY, Evpu &outRightY)
Calculates if the input entry starts a feathered beam and returns information about it.
Definition Details.h:1634
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1637
SecondaryBeamAlterationsUpStem(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor.
Definition Details.h:1625
Specifies which secondary beams break and restart on the associated entry.
Definition Details.h:1649
SecondaryBeamBreak(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor function.
Definition Details.h:1652
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1693
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 Details.h:1680
BeamNumber calcLowestBreak() const
Calculates the lowest (largest note-value) beam specified for a secondary beam break.
Definition Details.h:1666
bool breakThrough
True if the beam should be broken through to the largest specified beam value.
Definition Details.h:1658
unsigned mask
Composite mask of beam breaks, derived from <do16th> through <do4096th> tags.
Definition Details.h:1657
static const xml::XmlElementArray< SecondaryBeamBreak > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Embedded shape record for a single index in noteShapes.
Definition Details.h:1719
char32_t quarter
Filled (quarter) notehead symbol (xml nodename is <q>).
Definition Details.h:1724
char32_t whole
Whole notehead symbol (xml nodename is <w>).
Definition Details.h:1722
static const xml::XmlElementArray< NoteShapes > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
char32_t doubleWhole
Double-whole notehead symbol (xml nodename is <d>).
Definition Details.h:1721
char32_t half
Half notehead symbol (xml nodename is <h>).
Definition Details.h:1723
Shape Note settings for staves and staffs style.
Definition Details.h:1707
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 Details.h:1733
ShapeNoteBase(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper cmper1, Cmper cmper2)
Constructor function.
Definition Details.h:1711
std::vector< std::shared_ptr< NoteShapes > > noteShapes
Notehead shapes (only the first seven elements are used).
Definition Details.h:1729
bool arrangedByPitch
Definition Details.h:1730
static const xml::XmlElementArray< ShapeNoteBase > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Shape Note settings for staff styles.
Definition Details.h:1772
static constexpr std::string_view XmlNodeName
XML node name for this type.
Definition Details.h:1776
Shape Note settings for staves.
Definition Details.h:1757
static constexpr std::string_view XmlNodeName
XML node name for this type.
Definition Details.h:1761
Provides run-time information about Staff Groups within a system or list of others::StaffUsed.
Definition Details.h:1919
std::optional< size_t > startSlot
the 0-based start slot (index) of the group in the system staves.
Definition Details.h:1921
std::optional< size_t > endSlot
the 0-based end slot (index) of the group in the system staves.
Definition Details.h:1922
std::optional< size_t > numStaves() const
The number of staves in the group for the systemStaves.
Definition Details.h:1933
MusxInstanceList< others::StaffUsed > systemStaves
the system staves referred to by startSlot and endSlot
Definition Details.h:1924
MusxInstance< StaffGroup > group
the StaffGroup record for the group.
Definition Details.h:1923
bool calcIsSingleInstrumentSection(MeasCmper measureId) const
Returns true if this staff group spans multiple staves with the same exact instrument UUID,...
Definition Details.cpp:770
void iterateStaves(MeasCmper measId, Edu eduPosition, std::function< bool(const MusxInstance< others::StaffComposite > &)> iterator) const
Iterates the staves in the group in order according to systemStaves.
Definition Details.cpp:750
static std::vector< StaffGroupInfo > getGroupsAtMeasure(MeasCmper measureId, Cmper linkedPartId, const MusxInstanceList< others::StaffUsed > &systemStaves)
Creates a vector of StaffGroupInfo instances for the measure, part, and system staves.
Definition Details.cpp:835
Represents the attributes of a Finale staff group that brackets staves.
Definition Details.h:1785
AlignJustify abbrvNameJustify
Abbreviated name justification (xml node is <abbrvJustify>)
Definition Details.h:1834
bool abbrvNameExpand
"Expand Single Word" for abbreviated name (xml node is <abbrvExpand>)
Definition Details.h:1846
Cmper multiStaffGroupId
Definition Details.h:1849
static const xml::XmlElementArray< StaffGroup > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool fullNameExpand
"Expand Single Word" for full name (xml node is <fullExpand>)
Definition Details.h:1845
bool ownBarline
"Use Alternate Group Barline"
Definition Details.h:1836
int abbrvNameYadj
Vertical adjustment for abbreviated name (xml node is <abbrvYadj>)
Definition Details.h:1842
DrawBarlineStyle
Enum for how to draw group barlines.
Definition Details.h:1806
@ Mensurstriche
Draw barlines between staves (xml value is "Mensurstriche" with capitalization)
@ ThroughStaves
Draw barlines through staves (xml value is "group")
@ OnlyOnStaves
Default value (may not appear in xml)
std::string getAbbreviatedInstrumentName(util::EnigmaString::AccidentalStyle accidentalStyle=util::EnigmaString::AccidentalStyle::Ascii) const
Returns the abbreviated instrument name for this group without Enigma tags and with autonumbering (if...
Definition Details.cpp:718
bool isAllMeasures() const
Returns true if this group spans all measures.
Definition Details.h:1894
Cmper abbrvNameId
Abbreviated name TextBlock cmper (xml node is <abbrvID>)
Definition Details.h:1840
StaffCmper startInst
Starting staff ID.
Definition Details.h:1824
int fullNameXadj
Horizontal adjustment for full name (xml node is <fullXadj>)
Definition Details.h:1829
std::shared_ptr< Bracket > bracket
Bracket Options. The factory guarantees this value to exist.
Definition Details.h:1831
util::EnigmaParsingContext getAbbreviatedNameCtx() const
Get the raw text context for the abbreviated staff group name.
Definition Details.cpp:663
std::string getAbbreviatedName(util::EnigmaString::AccidentalStyle accidentalStyle=util::EnigmaString::AccidentalStyle::Ascii) const
Get the abbreviated staff group name without Enigma tags.
Definition Details.cpp:671
AlignJustify fullNameJustify
Full name justification (xml node is <fullJustify>)
Definition Details.h:1833
DrawBarlineStyle drawBarlines
"Draw Barlines" option (xml node is <groupBarlineStyle>)
Definition Details.h:1835
AlignJustify abbrvNameAlign
Abbreviated name horizontal alignment (xml node is <abbrvHAlign>)
Definition Details.h:1844
util::EnigmaParsingContext getAbbreviatedInstrumentNameCtx() const
Returns the raw text context for the abbreviated instrument name for this group, with autonumbering c...
Definition Details.cpp:708
util::EnigmaParsingContext getFullNameCtx() const
Get the raw text context for the full staff group name.
Definition Details.cpp:647
std::unordered_set< StaffCmper > staves
Calculated list of staves in the group.
Definition Details.h:1854
int fullNameYadj
Vertical adjustment for full name (xml node is <fullYadj>)
Definition Details.h:1830
HideStaves hideStaves
"When Hiding Empty Staves" option (xml node is <optimize>)
Definition Details.h:1847
BarlineType barlineType
Group barline type (xml node is <barline>)
Definition Details.h:1832
AlignJustify fullNameAlign
Full name horizontal alignment (xml node is <fullHAlign>)
Definition Details.h:1843
Cmper fullNameId
Full name TextBlock cmper (xml node is <fullID>)
Definition Details.h:1828
std::string getFullInstrumentName(util::EnigmaString::AccidentalStyle accidentalStyle=util::EnigmaString::AccidentalStyle::Ascii) const
Returns the full instrument name for this group without Enigma tags and with autonumbering (if any).
Definition Details.cpp:700
StaffGroup(const DocumentWeakPtr &document, Cmper partId, Base::ShareMode shareMode, Cmper cmper1, Cmper cmper2)
Constructor.
Definition Details.h:1795
StaffCmper endInst
Ending staff ID.
Definition Details.h:1825
static constexpr std::string_view XmlNodeName
XML node name for this type.
Definition Details.h:1910
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 Details.h:1897
MeasCmper startMeas
Starting measure number.
Definition Details.h:1826
std::string getFullName(util::EnigmaString::AccidentalStyle accidentalStyle=util::EnigmaString::AccidentalStyle::Ascii) const
Get the full staff group name without Enigma tags.
Definition Details.cpp:655
MusxInstance< others::MultiStaffInstrumentGroup > getMultiStaffInstGroup() const
Returns the others::MultiStaffInstrumentGroup for this group if it is part of one....
Definition Details.cpp:679
MeasCmper endMeas
Ending measure number.
Definition Details.h:1827
bool hideName
Inverse of "Show Group Name".
Definition Details.h:1839
bool fullNameIndivPos
Indicates if full name has individual position (xml node is <fullIndivPos>)
Definition Details.h:1837
util::EnigmaParsingContext getFullInstrumentNameCtx() const
Returns the raw text context for the full instrument name for this group, with autonumbering context ...
Definition Details.cpp:690
bool abbrvNameIndivPos
Indicates if abbreviated name has individual position (xml node is <abbrvIndivPos>)
Definition Details.h:1838
int abbrvNameXadj
Horizontal adjustment for abbreviated name (xml node is <abbrvXadj>)
Definition Details.h:1841
HideStaves
Enum for optimization options.
Definition Details.h:1817
@ AsGroup
Hide staves only if all staves are empty.
@ Normally
Hide staves as if there were no StaffGroup (this is the default and may not appear in the xml)
@ None
Never hide the staves in this StaffGroup.
Represents a per-staff-size override for a specific staff in a system.
Definition Details.h:1969
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1990
static const xml::XmlElementArray< StaffSize > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
util::Fraction calcStaffScaling() const
Calculate the staff scaling.
Definition Details.h:1987
StaffSize(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper system, Cmper staffId)
Constructor.
Definition Details.h:1979
int staffPercent
The staff size percentage override. (A value of 100 means 100%, i.e, no staff scaling....
Definition Details.h:1984
Specifies horizontal and vertical adjustments for stems under beam.
Definition Details.h:2029
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:2033
Specifies horizontal and vertical stem adjustments for upstem and downstem contexts.
Definition Details.h:2003
Evpu upVertAdjust
Vertical adjustment for upstem context (positive is up).
Definition Details.h:2011
Evpu downHorzAdjust
Horizontal adjustment for downstem context (positive is right).
Definition Details.h:2014
Evpu downVertAdjust
Vertical adjustment for downstem context (positive is up).
Definition Details.h:2012
static const xml::XmlElementArray< StemAlterations > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu upHorzAdjust
Horizontal adjustment for upstem context (positive is right).
Definition Details.h:2013
StemAlterations(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor function.
Definition Details.h:2006
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:2016
Specifies the TAB string a note appears on. Finale automatically figures out the fret number from the...
Definition Details.h:2046
TablatureNoteMods(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:2049
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:2058
static const xml::XmlElementArray< TablatureNoteMods > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:2060
NoteNumber noteId
The ID of the tablature note being modified. (xml node is <noteID>)
Definition Details.h:2054
int stringNumber
Definition Details.h:2055
Base class for tie alteration properties. (Used for both ties and tie ends.)
Definition Details.h:2069
DirectionContext
Indicates the placement context of end- and control-point adjustments.
Definition Details.h:2115
@ Under
The tie is positioned below (e.g., tie under)
@ Over
The tie is positioned above (e.g., tie over)
Evpu yEnd
Vertical end position of the tie.
Definition Details.h:2125
NoteNumber noteId
Note ID associated with the tie alteration. (xml node is <noteID>)
Definition Details.h:2121
bool outerOn
Enable "Outer" placement.
Definition Details.h:2127
bool outerLocal
Local setting for "Outer Tie".
Definition Details.h:2126
Evpu xStart
Horizontal start position of the tie.
Definition Details.h:2122
DirectionContext enPtContext
End point must match this direction context for xEnd & yEnd to apply.
Definition Details.h:2148
Evpu height1
Height of the first control point.
Definition Details.h:2150
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:2157
bool afterMultiDotsLocal
Local setting for "After Multiple Dots".
Definition Details.h:2130
bool shiftForSecondsOn
Enable "Shift for Seconds".
Definition Details.h:2133
Evpu height2
Height of the second control point.
Definition Details.h:2152
ConnectionType stPtEntCnct
Start point must match this connection type for xStart & yStart to apply.
Definition Details.h:2144
TieAlterBase(const DocumentWeakPtr &document, Cmper partId, Base::ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:2072
ConnectionType
Defines tie connection points for start and end attachment locations.
Definition Details.h:2090
@ EntryLeftNoteCenter
Left of entry, center of note.
@ DotRightNoteCenter
Right of dot(s), center of note.
@ NoteRightNoteTop
Right of note, top of note.
@ NoteCenterNoteBottom
Horizontal center of note, bottom of note.
@ EntryCenterNoteBottom
Horizontal center of entry, bottom of note.
@ NoteCenterNoteTop
Horizontal center of note, top of note.
@ SystemEnd
System end (for the right side across systems)
@ NoteLeftNoteCenter
Left of note, center of note.
@ EntryCenterNoteTop
Horizontal center of entry, top of note.
@ NoteRightNoteBottom
Right of note, bottom of note.
@ SystemStart
System start (for the left side across systems)
@ EntryRightNoteCenter
Right of entry, center of note.
@ NoteRightNoteCenter
Right of note, center of note.
@ AccidentalLeftNoteCenter
Left of accidental, center of note.
@ NoteLeftNoteBottom
Left of note, bottom of note.
static MusxInstance< TieAlterBase > fromNoteInfo(const NoteInfoPtr &noteInfoPtr, bool forTieEnd=false)
Gets the the TieAlterStart or TieAlterEnd for this note, based on the input boolean.
Definition Details.cpp:861
Evpu insetRatio1
Inset ratio for the first control point.
Definition Details.h:2149
bool enPtAdjOn
Enable end point adjustment.
Definition Details.h:2146
ConnectionType enPtEntCnct
End point must match this connection type for xEnd & yEnd to apply.
Definition Details.h:2147
bool shiftForSecondsLocal
Local setting for "Shift for Seconds".
Definition Details.h:2132
bool afterSingleDotOn
Enable "After Single Dot".
Definition Details.h:2129
bool afterMultiDotsOn
Enable "After Multiple Dots".
Definition Details.h:2131
Evpu insetRatio2
Inset ratio for the second control point.
Definition Details.h:2151
bool breakKeyLocal
Local setting for "Break at Key Signature".
Definition Details.h:2139
bool ctlPtFixed
Definition Details.h:2154
bool breakKeyOn
Enable "Break at Key Signature".
Definition Details.h:2140
bool down
Downward tie. Only applicable if freezeDirection is true. (False freezes the tie up....
Definition Details.h:2136
DirectionContext stPtContext
Start point must match this direction context for xStart & yStart to apply.
Definition Details.h:2145
bool beforeSingleAcciOn
Enable "Before Single Accidental".
Definition Details.h:2135
bool noSpecialArc
Inverse of "Avoid Staff Lines". (See options::TieOptions for more information about the naming....
Definition Details.h:2142
bool stPtAdjOn
Enable start point adjustment.
Definition Details.h:2143
static const xml::XmlElementArray< TieAlterBase > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool beforeSingleAcciLocal
Local setting for "Before Single Accidental".
Definition Details.h:2134
Evpu xEnd
Horizontal end position of the tie.
Definition Details.h:2123
bool ctlPtAdjOn
Enable control point adjustment.
Definition Details.h:2153
bool breakTimeLocal
Local setting for "Break at Time Signature".
Definition Details.h:2137
bool freezeDirection
Freeze tie direction. (xml node is <freeze>)
Definition Details.h:2141
Evpu yStart
Vertical start position of the tie.
Definition Details.h:2124
bool afterSingleDotLocal
Local setting for "After Single Dot".
Definition Details.h:2128
bool breakTimeOn
Enable "Break at Time Signature".
Definition Details.h:2138
Alterations for tie ends.
Definition Details.h:2171
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:2175
static const xml::XmlElementArray< TieAlterEnd > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Alterations for tie starts. (Tie starts are normal ties.)
Definition Details.h:2188
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:2192
static const xml::XmlElementArray< TieAlterStart > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Options controlling the appearance of tuplets.
Definition Details.h:2205
bool hidden
Inverse of "Show".
Definition Details.h:2231
util::Fraction calcRatio() const
return the tuplet ratio (reference / display)
Definition Details.h:2258
util::Fraction calcDisplayDuration() const
return the display duration as a util::Fraction of a whole note
Definition Details.h:2255
Evpu tupOffX
Horizontal offset.
Definition Details.h:2232
Evpu rightHookLen
Length of the right hook in the tuplet bracket. (This value is sign-reversed in the Finale UI....
Definition Details.h:2247
Evpu brackOffY
Vertical offset for brackets.
Definition Details.h:2235
BracketStyle brackStyle
Bracket style.
Definition Details.h:2243
bool avoidStaff
"Avoid Staff"
Definition Details.h:2229
AutoBracketStyle autoBracketStyle
Autobracket style.
Definition Details.h:2230
bool alwaysFlat
"Always Flat" (xml node is <flat>)
Definition Details.h:2226
bool fullDura
"Bracket Full Duration"
Definition Details.h:2227
bool allowHorz
"Allow Horizontal Drag"
Definition Details.h:2238
int referenceNumber
The number of notes "in the time of" (xml node is <refNum>)
Definition Details.h:2224
Evpu rightHookExt
Extension of the right hook beyond the tuplet bracket.
Definition Details.h:2248
Evpu leftHookExt
Extension of the left hook beyond the tuplet bracket.
Definition Details.h:2246
bool ignoreHorzNumOffset
"Ignore Horizontal Number Offset" (xml node is <ignoreGlOffs>)
Definition Details.h:2239
TupletDef(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:2208
util::Fraction calcReferenceDuration() const
return the reference duration as a util::Fraction of a whole note
Definition Details.h:2252
bool smartTuplet
"Engraver Tuplets"
Definition Details.h:2244
Edu displayDuration
The duration of each note to display (xml node is <symbolicDur>)
Definition Details.h:2223
Evpu tupOffY
Vertical.
Definition Details.h:2233
NumberStyle numStyle
Number style.
Definition Details.h:2236
static const xml::XmlElementArray< TupletDef > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu brackOffX
Horizontal offset for brackets.
Definition Details.h:2234
Evpu manualSlopeAdj
"Manual Slope Adjustment" in Evpu. (xml node is <slope>)
Definition Details.h:2249
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:2260
bool breakBracket
"Break Slur or Bracket"
Definition Details.h:2240
int displayNumber
The number of notes to display (xml node is <symbolicNum>)
Definition Details.h:2222
bool metricCenter
"Center Number Using Duration"
Definition Details.h:2228
bool useBottomNote
"Use Bottom Note" (xml node is <noteBelow>)
Definition Details.h:2242
bool matchHooks
"Match Length of Hooks"
Definition Details.h:2241
PositioningStyle posStyle
Positioning style.
Definition Details.h:2237
Edu referenceDuration
The duration of each note "in the time of" (xml node is <refDur>)
Definition Details.h:2225
Evpu leftHookLen
Length of the left hook in the tuplet bracket. (This value is sign-reversed in the Finale UI....
Definition Details.h:2245
FlattenStyle
Beaming style choices for when to flatten beams.
Definition Options.h:177
BracketStyle
Bracket style options.
Definition Options.h:1794
PositioningStyle
Positioning style options.
Definition Options.h:1781
AutoBracketStyle
Auto-bracket style options.
Definition Options.h:1753
NumberStyle
Number style options.
Definition Options.h:1768
BarlineType
Barline type for left and right barlines.
Definition Others.h:1166
Contains chorus text for lyrics.
Definition Texts.h:162
Contains section text for lyrics.
Definition Texts.h:175
Contains verse text for lyrics.
Definition Texts.h:149
Wrapper class for interpreting and rendering Enigma-style strings with insert handling.
Definition EnigmaString.h:424
AccidentalStyle
Enumeration to specify the type of accidental substitution representation.
Definition EnigmaString.h:200
@ Ascii
Use ASCII substitutions for accidentals.
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:97
@ Verbose
Informational messages that should only displayed when verbose logging is requested.
static void log(LogLevel level, const std::string &message)
Logs a message with a specific severity level.
Definition Logger.h:87
constexpr int STANDARD_DIATONIC_STEPS
currently this is the only supported number of diatonic steps.
Definition music_theory.hpp:45
constexpr int MAX_ALTERATIONS
Maximum absolute value for chromatic alterations supported in Finale.
Definition Fundamentals.h:78
ShowClefMode
Enum representing the clef display mode for a frame.
Definition EnumClasses.h:165
LyricTextType
The lyric text type if this is a lyrics smart shape.
Definition EnumClasses.h:119
uint16_t PercussionNoteTypeId
multiple times in one layout. The rest are the "pure" note type. See percussion::PercussionNoteType.
Definition Fundamentals.h:74
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
VerticalPlacement
Specifies a vertical placement relationship for notation objects.
Definition EnumClasses.h:203
@ NotApplicable
Above/below placement does not meaningfully apply.
int16_t Inci
Enigma "incident" key type.
Definition Fundamentals.h:56
int32_t Evpu
EVPU value (288 per inch)
Definition Fundamentals.h:57
constexpr int MAX_LAYERS
The maximum number of music layers in a Finale document.
Definition Fundamentals.h:77
uint16_t Cmper
Enigma "comperator" key type.
Definition Fundamentals.h:55
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
uint16_t NoteNumber
Note identifier.
Definition Fundamentals.h:70
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
AlignJustify
Alignment and justification options for staff and group names.
Definition EnumClasses.h:30
unsigned int BeamNumber
A number where 1 corresponds to the primary (8th note) beam, 2 the 16th beam, 3 the 32nd beam,...
Definition Fundamentals.h:72
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
Provides information about the best analysis as to which articulation symbol in being used on this as...
Definition Details.h:118
MusxInstance< others::ArticulationDef > definition
The associated articulation definition.
Definition Details.h:119
others::ArticulationDef::SelectedSymbol symbol
Information about the selected symbol.
Definition Details.h:120
The resolved main or alternate symbol selection for an articulation definition.
Definition Others.h:257
Information about a shape that could be used as a surrogate for a tie.
Definition PseudoTieUtils.h:55