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 "musx/util/EnigmaString.h"
30#include "BaseClasses.h"
31#include "CommonClasses.h"
32#include "Options.h"
33#include "Others.h"
34 // do not add other dom class dependencies. Use Implementations.h for implementations that need total class access.
35
36namespace musx {
37namespace dom {
38
39class EntryInfoPtr;
40class EntryFrame;
41class EntryInfo;
42
43namespace others {
44class InstrumentUsed;
45class Measure;
46class MultiStaffInstrumentGroup;
47} // namespace others
48
49namespace texts {
50 class LyricsChorus;
51 class LyricsSection;
52 class LyricsVerse;
53} // namespace others
54
59namespace details {
60
70{
71public:
73 explicit AccidentalAlterations(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
74 : NoteDetailsBase(document, partId, shareMode, entnum, inci), customFont(std::make_shared<FontInfo>(document))
75 {
76 }
77
79 int percent{};
82 char32_t altChar{};
83 std::shared_ptr<FontInfo> customFont;
84 bool useOwnFont{};
85 bool allowVertPos{};
86
87 NoteNumber getNoteId() const override { return noteId; }
88
89 constexpr static std::string_view XmlNodeName = "acciAlter";
91};
92
100{
101public:
110 explicit ArticulationAssign(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
111 : EntryDetailsBase(document, partId, shareMode, entnum, inci) {}
112
119 bool aboveEntry{};
120 bool hide{};
121 bool neverStack{};
122 bool avoidSlur{};
124
126 constexpr static std::string_view XmlNodeName = "articAssign";
127};
128
133class Baseline : public DetailsBase
134{
135public:
145 explicit Baseline(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper system, Cmper staff, std::optional<Inci> inci = std::nullopt)
146 : DetailsBase(document, partId, shareMode, system, staff, inci) {}
147
150
152};
153
159{
160public:
161 using Baseline::Baseline;
162
163
165 constexpr static std::string_view XmlNodeName = "baselinesLyricsChorus";
166};
167
173{
174public:
175 using Baseline::Baseline;
176
178 constexpr static std::string_view XmlNodeName = "baselinesLyricsSection";
179};
180
186{
187public:
188 using Baseline::Baseline;
189
191 constexpr static std::string_view XmlNodeName = "baselinesLyricsVerse";
192};
193
201{
202private:
203 bool m_active = true; // this value is set by the factory.
204
205protected:
207 template <typename SecondaryBeamType>
208 static bool calcIsFeatheredBeamImpl(const EntryInfoPtr& entryInfo, Evpu& outLeftY, Evpu& outRightY);
209
210public:
219 explicit BeamAlterations(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, std::optional<Inci> inci = std::nullopt)
220 : EntryDetailsBase(document, partId, shareMode, entnum, inci) {}
221
224
233
238
241 bool isActive() const { return m_active; }
242
244 template <typename T,
245 std::enable_if_t<std::is_base_of_v<BeamAlterations, T>, int> = 0>
246 static void calcAllActiveFlags(const DocumentPtr& document);
247
249};
250
258{
259public:
267 explicit BeamAlterationsDownStem(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
268 : BeamAlterations(document, partId, shareMode, entnum) {}
269
270 constexpr static std::string_view XmlNodeName = "beamAltPrimDownStem";
271};
272
280{
281public:
289 explicit BeamAlterationsUpStem(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
290 : BeamAlterations(document, partId, shareMode, entnum) {}
291
292 constexpr static std::string_view XmlNodeName = "beamAltPrimUpStem";
293};
294
301{
302public:
310 explicit BeamExtension(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
311 : EntryDetailsBase(document, partId, shareMode, entnum) {}
312
315 unsigned mask{};
322
324};
325
333{
334public:
336
337 constexpr static std::string_view XmlNodeName = "beamExtendDownStem";
338};
339
347{
348public:
350
351 constexpr static std::string_view XmlNodeName = "beamExtendUpStem";
352};
353
363{
364public:
366 explicit BeamStubDirection(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
367 : EntryDetailsBase(document, partId, shareMode, entnum)
368 {
369 }
370
371 unsigned mask{};
374
376 bool isLeft() const { return mask != 0; }
377
378 constexpr static std::string_view XmlNodeName = "beamStub";
380};
381
390{
391public:
401 explicit ChordAssign(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper inst, Cmper meas, Inci inci)
402 : DetailsBase(document, partId, shareMode, inst, meas, inci)
403 {
404 }
405
407 enum class BassPosition
408 {
409 AfterRoot, // default value may not appear in xml (but text appears in Finale binary)
410 UnderRoot,
411 Subtext
412 };
413
417 int rootAlter{};
419 bool playSuffix{};
420 bool showRoot{};
421 bool playRoot{};
423 bool showSuffix{};
426 int bassAlter{};
429 bool showAltBass{};
430 bool playAltBass{};
431 int capoValue{};
434 bool useFretFont{};
440 int chPercent{};
441 int fbPercent{};
442
443 constexpr static std::string_view XmlNodeName = "chordAssign";
445};
446
456{
457public:
459 explicit CrossStaff(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
460 : NoteDetailsBase(document, partId, shareMode, entnum, inci)
461 {
462 }
463
466
467 NoteNumber getNoteId() const override { return noteId; }
468
469 constexpr static std::string_view XmlNodeName = "crossStaff";
471};
472
482{
483public:
491 explicit CustomStem(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
492 : EntryDetailsBase(document, partId, shareMode, entnum) {}
493
497
504 bool calcIsHiddenStem() const;
505
507};
508
516{
517public:
519
520 constexpr static std::string_view XmlNodeName = "stemDefDown";
521};
522
530{
531public:
533
534 constexpr static std::string_view XmlNodeName = "stemDefUp";
535};
536
546{
547public:
549 explicit DotAlterations(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
550 : NoteDetailsBase(document, partId, shareMode, entnum, inci)
551 {
552 }
553
558
559 NoteNumber getNoteId() const override { return noteId; }
560
561 constexpr static std::string_view XmlNodeName = "dotOffset";
563};
564
574{
575public:
583 explicit EntrySize(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
584 : EntryDetailsBase(document, partId, shareMode, entnum) {}
585
586 int percent{};
587
589 constexpr static std::string_view XmlNodeName = "entrySize";
590};
591
600{
601public:
610 explicit GFrameHold(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper inst, Cmper meas)
611 : DetailsBase(document, partId, shareMode, inst, meas), frames(MAX_LAYERS) {}
612
613 // Public properties corresponding to the XML structure
614 std::optional<ClefIndex> clefId;
617 bool mirrorFrame{};
620 std::vector<Cmper> frames;
621
623 InstCmper getStaff() const { return InstCmper(getCmper1()); }
624
627
628 void integrityCheck() override
629 {
631 if (clefListId && clefId.has_value()) {
632 MUSX_INTEGRITY_ERROR("GFrameHold for staff " + std::to_string(getCmper1()) + " and measure " + std::to_string(getCmper2()) + " has both clef and clef list.");
633 }
634 if (!clefListId && !clefId.has_value()) {
635 MUSX_INTEGRITY_ERROR("GFrameHold for staff " + std::to_string(getCmper1()) + " and measure " + std::to_string(getCmper2()) + " has neither clef nor clef list.");
636 }
637 }
638
639 constexpr static std::string_view XmlNodeName = "gfhold";
641};
642
651public:
660 GFrameHoldContext(const DocumentPtr& document, Cmper partId, Cmper inst, Cmper meas);
661
667 Cmper getRequestedPartId() const { return m_requestedPartId; }
668
674 const GFrameHold* operator->() const { return m_hold.get(); }
675
681 explicit operator bool() const { return static_cast<bool>(m_hold); }
682
685 ClefIndex calcClefIndexAt(Edu position) const;
686
690 { return calcClefIndexAt(position.calcEduDuration()); }
691
698 std::shared_ptr<const EntryFrame> createEntryFrame(LayerIndex layerIndex, bool forWrittenPitch = false) const;
699
707 bool iterateEntries(LayerIndex layerIndex, std::function<bool(const EntryInfoPtr&)> iterator);
708
714 bool iterateEntries(std::function<bool(const EntryInfoPtr&)> iterator);
715
718 std::map<LayerIndex, bool> calcVoices() const;
719
720private:
721 std::shared_ptr<GFrameHold> m_hold;
722 Cmper m_requestedPartId;
723};
724
733{
734public:
743 explicit IndependentStaffDetails(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper inst, Cmper meas)
744 : DetailsBase(document, partId, shareMode, inst, meas)
745 {
746 }
747
748 // Key signature info
749 std::shared_ptr<KeySignature> keySig;
750 bool hasKey{};
751
752 // Time signature info
757
760 bool altNumTsig{};
761 bool altDenTsig{};
763 bool hasDispTime{};
764 bool hasTime{};
765
767 std::shared_ptr<TimeSignature> createTimeSignature() const;
768
771 std::shared_ptr<TimeSignature> createDisplayTimeSignature() const;
772
773 void integrityCheck() override
774 {
776 if (hasKey && !keySig) {
777 keySig = std::make_shared<KeySignature>(getDocument());
778 }
779 }
780
781 constexpr static std::string_view XmlNodeName = "floats";
783};
784
790{
791public:
800 explicit LyricAssign(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
801 : EntryDetailsBase(document, partId, shareMode, entnum, inci) {}
802
804 unsigned syllable{};
808 int wext{};
810
812};
813
821{
822public:
824
826 constexpr static std::string_view XmlNodeName = "lyrDataChorus";
827};
828
836{
837public:
839
841 constexpr static std::string_view XmlNodeName = "lyrDataSection";
842};
843
851{
852public:
854
856 constexpr static std::string_view XmlNodeName = "lyrDataVerse";
857};
858
867{
868public:
871
880 explicit LyricEntryInfo(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, std::optional<Inci> inci = std::nullopt)
881 : EntryDetailsBase(document, partId, shareMode, entnum, inci) {}
882
883 std::optional<AlignJustify> justify{};
884 std::optional<AlignJustify> align{};
885
887 constexpr static std::string_view XmlNodeName = "lyricEntryInfo";
888};
889
906{
907public:
917 explicit MeasureTextAssign(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper inst, Cmper meas, Inci inci)
918 : DetailsBase(document, partId, shareMode, inst, meas, inci)
919 {
920 }
921
927 bool hidden{};
928
929 constexpr static std::string_view XmlNodeName = "measTextAssign";
931};
932
942{
943public:
945 explicit NoteAlterations(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
946 : NoteDetailsBase(document, partId, shareMode, entnum, inci), customFont(new FontInfo(document))
947 {
948 }
949
951 int percent{};
953 char32_t altNhead{};
954 bool useOwnFont{};
955 std::shared_ptr<FontInfo> customFont{};
958 bool enharmonic{};
960
961 NoteNumber getNoteId() const override { return noteId; }
962
963 constexpr static std::string_view XmlNodeName = "noteAlter";
965};
966
976{
977public:
979 explicit PercussionNoteCode(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
980 : NoteDetailsBase(document, partId, shareMode, entnum, inci)
981 {
982 }
983
986
987 NoteNumber getNoteId() const override { return noteId; }
988
989 constexpr static std::string_view XmlNodeName = "percussionNoteCode";
991};
992
1000{
1001public:
1011 explicit SecondaryBeamAlterationsDownStem(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
1012 : BeamAlterations(document, partId, shareMode, entnum, inci) {}
1013
1022
1023 constexpr static std::string_view XmlNodeName = "beamAltSecDownStem";
1024};
1025
1058
1068{
1069public:
1071 explicit SecondaryBeamBreak(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
1072 : EntryDetailsBase(document, partId, shareMode, entnum)
1073 {
1074 }
1075
1076 unsigned mask{};
1078
1086 {
1087 MUSX_ASSERT_IF(!mask || mask >= unsigned(NoteType::Eighth)) {
1088 return 0; // invalid mask values have already been flagged and supposedly corrected by #integrityCheck.
1089 }
1090 for (unsigned shift = 0; true; shift++) {
1091 if (mask & (unsigned(NoteType::Note16th) >> shift)) {
1092 return shift + 2; // the 2nd beam is the 16th beam and the first one we checked.
1093 }
1094 }
1095 assert(false); // should not be able to get here
1096 return 0;
1097 }
1098
1099 void integrityCheck() override
1100 {
1102 if (!mask) {
1103 mask = unsigned(NoteType::Note4096th);
1104 MUSX_INTEGRITY_ERROR("Secondary beam break for entry" + std::to_string(getEntryNumber()) + " has no breaks.");
1105 }
1106 if (mask >= unsigned(NoteType::Eighth)) {
1107 mask = unsigned(NoteType::Eighth) - 1;
1108 MUSX_INTEGRITY_ERROR("Secondary beam break for entry" + std::to_string(getEntryNumber()) + " specifies a value that cannot be a secondary beam.");
1109 }
1110 }
1111
1112 constexpr static std::string_view XmlNodeName = "secBeamBreak";
1114};
1115
1122class StaffGroup : public DetailsBase {
1123public:
1132 StaffGroup(const DocumentWeakPtr& document, Cmper partId, Base::ShareMode shareMode, Cmper cmper1, Cmper cmper2)
1133 : DetailsBase(document, partId, shareMode, cmper1, cmper2) {}
1134
1137
1140
1143 {
1144 OnlyOnStaves,
1147 };
1148
1150 enum class HideStaves
1151 {
1152 Normally,
1153 AsGroup,
1154 None
1155 };
1156
1158 enum class BracketStyle : int
1159 {
1160 None = 0,
1161 ThickLine = 1,
1163 PianoBrace = 3,
1164 Unknown4,
1165 Unknown5,
1166 BracketCurvedHooks = 6,
1167 Unknown7,
1168 DeskBracket = 8
1169 };
1170
1188
1189 // Public properties corresponding to the XML structure, ordered as they appear in the XML
1197 std::shared_ptr<Bracket> bracket{};
1202 bool ownBarline{};
1205 bool hideName{};
1214
1217 std::unordered_set<InstCmper> staves;
1218
1222
1226
1228 std::shared_ptr<others::MultiStaffInstrumentGroup> getMultiStaffInstGroup() const;
1229
1235
1241
1243 bool isAllMeasures() const
1244 { return (startMeas == 1 && endMeas == (std::numeric_limits<MeasCmper>::max)()); }
1245
1246 void integrityCheck() override
1247 {
1249 if (endMeas <= startMeas || startMeas <= 0) {
1250 MUSX_INTEGRITY_ERROR("Staff group " + std::to_string(getCmper2()) + " for part " + std::to_string(getPartId())
1251 + " starts at measure " + std::to_string(startMeas) + " and ends at measure " + std::to_string(endMeas));
1252 }
1253 if (!bracket) {
1254 // this is not an error. Finale omits the bracket node for groups with entirely default bracket info.
1255 bracket = std::make_shared<Bracket>();
1256 }
1257 }
1258
1259 constexpr static std::string_view XmlNodeName = "staffGroup";
1261};
1262
1268{
1269public:
1270 std::optional<size_t> startSlot;
1271 std::optional<size_t> endSlot;
1272 std::shared_ptr<StaffGroup> group;
1273
1277 StaffGroupInfo(const std::shared_ptr<StaffGroup>& staffGroup,
1278 const std::vector<std::shared_ptr<others::InstrumentUsed>>& systemStaves);
1279
1284 static std::vector<StaffGroupInfo> getGroupsAtMeasure(MeasCmper measureId,
1285 const std::shared_ptr<others::PartDefinition>& linkedPart,
1286 const std::vector<std::shared_ptr<others::InstrumentUsed>>& systemStaves);
1287};
1288
1298{
1299public:
1308 explicit StaffSize(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, Cmper system, Cmper inst)
1309 : DetailsBase(document, partId, shareMode, system, inst)
1310 {
1311 }
1312
1314
1315 constexpr static std::string_view XmlNodeName = "staffSize";
1317};
1318
1328{
1329public:
1331 explicit StemAlterations(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
1332 : EntryDetailsBase(document, partId, shareMode, entnum)
1333 {
1334 }
1335
1340
1341 constexpr static std::string_view XmlNodeName = "stemAdjust";
1343};
1344
1354{
1355public:
1357
1358 constexpr static std::string_view XmlNodeName = "beamStemAdjust";
1359};
1360
1366{
1367public:
1369 explicit TieAlterBase(const DocumentWeakPtr& document, Cmper partId, Base::ShareMode shareMode, EntryNumber entnum, Inci inci)
1370 : NoteDetailsBase(document, partId, shareMode, entnum, inci)
1371 {
1372 }
1373
1379 bool outerLocal{};
1388 bool down{};
1392 bool breakKeyOn{};
1394 bool stPtAdjOn{};
1395 bool enPtAdjOn{};
1400 bool ctlPtAdjOn{};
1401
1402 NoteNumber getNoteId() const override { return noteId; }
1403
1404 bool requireAllFields() const override { return false; }
1406};
1407
1417{
1418public:
1420
1421 constexpr static std::string_view XmlNodeName = "tieAlterEnd";
1423};
1424
1434{
1435public:
1437
1438 constexpr static std::string_view XmlNodeName = "tieAlterStart";
1440};
1441
1451{
1452public:
1454 explicit TupletDef(const DocumentWeakPtr& document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
1455 : EntryDetailsBase(document, partId, shareMode, entnum, inci)
1456 {
1457 }
1458
1467
1472 bool alwaysFlat{};
1473 bool fullDura{};
1475 bool avoidStaff{};
1477 bool hidden{};
1484 bool allowHorz{};
1487 bool matchHooks{};
1496
1499
1502
1505
1506 constexpr static std::string_view XmlNodeName = "tupletDef";
1508};
1509
1510} // namespace details
1511} // namespace dom
1512} // namespace entries
DocumentPtr getDocument() const
Gets a reference to the Document.
Definition BaseClasses.h:85
virtual void integrityCheck()
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition BaseClasses.h:132
ShareMode
Describes how this instance is shared between part and score.
Definition BaseClasses.h:68
virtual Cmper getPartId() const
Gets the partId for this instance (or SCORE_PARTID for score)
Definition BaseClasses.h:104
Base class for all "details" types.
Definition BaseClasses.h:298
Cmper getCmper1() const
Gets the cmper1 key value.
Definition BaseClasses.h:317
Cmper getCmper2() const
Gets the cmper2 key value.
Definition BaseClasses.h:322
Base class for all "details" types that use entnum rather than cmper and cmper.
Definition BaseClasses.h:339
EntryNumber getEntryNumber() const
Gets the entnum key value.
Definition BaseClasses.h:357
Wraps a frame of shared_ptr<const EntryInfo> and an index for per entry access. This class manages ow...
Definition Entries.h:276
Represents the default font settings for a particular element type.
Definition CommonClasses.h:110
Base class note details. Note details are entry details associated with a note ID.
Definition BaseClasses.h:368
Represents display alterations to an accidental for a specific note.
Definition Details.h:70
Evpu hOffset
Horizontal offset: positive is right. (XML node: <axDisp>)
Definition Details.h:81
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:87
bool useOwnFont
Whether to use customFont.
Definition Details.h:84
std::shared_ptr< FontInfo > customFont
Font settings for the accidental (populated from <fontID>, <fontSize>, and <efx>)
Definition Details.h:83
NoteNumber noteId
The ID of the note being altered.
Definition Details.h:78
AccidentalAlterations(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor.
Definition Details.h:73
Evpu vOffset
Vertical offset: positive is up. (XML node: <ayDisp>)
Definition Details.h:80
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:82
bool allowVertPos
Whether to use vOffset.
Definition Details.h:85
int percent
The percentage size for the accidental, where 100 is 100%.
Definition Details.h:79
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:89
static const xml::XmlElementArray< AccidentalAlterations > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Assigns an articulation to an entry.
Definition Details.h:100
ArticulationAssign(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:110
Cmper articDef
The articulation definition ID.
Definition Details.h:113
bool hide
Inverse of "Show" option.
Definition Details.h:120
bool neverStack
Whether the articulation should never stack relative to others.
Definition Details.h:121
int numSlursAvoided
Number of slurs avoided. Used internally by Finale's stacking algorithm.
Definition Details.h:123
bool avoidSlur
Whether the articulation should avoid slurs.
Definition Details.h:122
bool aboveEntry
When overridePlacement is true: whether the articulation is forced above or below the entry.
Definition Details.h:119
Evpu horzOffset
Horizontal offset from the default position.
Definition Details.h:114
bool overridePlacement
Whether the default placement is overridden.
Definition Details.h:118
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:126
static const xml::XmlElementArray< ArticulationAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu vertOffset
Vertical offset from the default position.
Definition Details.h:116
Evpu vertAdd
Vertical displacement for character copying. (E.g., arpeggiated chord lines)
Definition Details.h:117
Evpu horzAdd
Horizontal displacement for character copying. (E.g., trill lines)
Definition Details.h:115
Contains the baseline offsets for lyrics chorus records.
Definition Details.h:159
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:165
Contains the baseline offsets for lyrics chorus records.
Definition Details.h:173
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:178
Contains the baseline offsets for lyrics verse records.
Definition Details.h:186
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:191
Contains the baseline information for all baseline types.
Definition Details.h:134
Baseline(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper system, Cmper staff, std::optional< Inci > inci=std::nullopt)
Constructor function.
Definition Details.h:145
Cmper lyricNumber
the text number of the lyric, if this is a lyrics baseline. Otherwise unused and should be zero.
Definition Details.h:149
static const xml::XmlElementArray< Baseline > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu baselineDisplacement
the displacment of the baseline from default position. (xml node is <basedisp>)
Definition Details.h:148
Beam alteration for downstem primary beams.
Definition Details.h:258
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:270
BeamAlterationsDownStem(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor.
Definition Details.h:267
Beam alteration for upstem primary beams.
Definition Details.h:280
BeamAlterationsUpStem(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor.
Definition Details.h:289
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:292
Represents beam alterations applied to a specific entry. This is used to apply additional shaping or ...
Definition Details.h:201
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:241
Edu dura
For secondary beams, specifies the duration corresponding to the secondary beam (16th beam is 256,...
Definition Details.h:229
Evpu rightOffsetY
Vertical adjustment of the beam end. (xml node is <syAdd>)
Definition Details.h:228
FlattenStyle flattenStyle
Beam shaping style (xml node is <context>).
Definition Details.h:230
BeamAlterations(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, std::optional< Inci > inci=std::nullopt)
Constructor.
Definition Details.h:219
static bool calcIsFeatheredBeamImpl(const EntryInfoPtr &entryInfo, Evpu &outLeftY, Evpu &outRightY)
Implementation of SecondaryBeamAlterationsDownStem::calcIsFeatheredBeam and SecondaryBeamAlterationsU...
Definition Implementations.cpp:99
Evpu rightOffsetH
Horizontal adjustment of the beam end. (xml node is <sxAdd>)
Definition Details.h:227
Evpu leftOffsetY
Vertical adjustment of the beam start. (xml node is <yAdd>)
Definition Details.h:226
Evpu leftOffsetH
Horizontal adjustment of the beam start. (xml node is <xAdd>)
Definition Details.h:225
Efix calcEffectiveBeamWidth() const
Calculates the effective beam width by returning either the default width or the width override value...
Definition Implementations.cpp:72
static void calcAllActiveFlags(const DocumentPtr &document)
Used by the factory to set active indicators.
Definition Implementations.cpp:50
Efix beamWidth
The calcEffectiveBeamWidth method handles this for you.
Definition Details.h:231
Beam extension for downstem beams.
Definition Details.h:333
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:337
Beam extension for upstem beams.
Definition Details.h:347
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:351
Represents both sides of a beam extension. It is attached to the first entry in the beam....
Definition Details.h:301
bool extBeyond8th
Definition Details.h:318
Evpu rightOffset
Right extension offset. (xml node is <x4Disp>)
Definition Details.h:314
unsigned mask
Definition Details.h:315
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:310
Evpu leftOffset
Left extension offset. (xml node is <x3Disp>)
Definition Details.h:313
Specifies the direction for beam stubs (if they are manually overridden.)
Definition Details.h:363
unsigned mask
Definition Details.h:371
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:378
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:376
BeamStubDirection(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor function.
Definition Details.h:366
Represents chord symbol assignment for a staff and measure.
Definition Details.h:390
Edu horzEdu
<horzEdu>: Edu position in measure
Definition Details.h:439
Evpu fbHorzOff
<fbHorzOff>: Horizontal offset of fretboard (in EVPU)
Definition Details.h:437
bool showFretboard
<showFretboard/>: Show fretboard
Definition Details.h:422
bool rootLowerCase
<rootLowerCase/>: Display root in lowercase
Definition Details.h:418
bool playRoot
<playRoot/>: Playback root
Definition Details.h:421
bool useFretFont
<useFretFont/>: Use fret font
Definition Details.h:434
bool showRoot
<showRoot/>: Show root
Definition Details.h:420
int bassAlter
<bassAlter>: Bass alteration
Definition Details.h:426
BassPosition
Bass position options.
Definition Details.h:408
int rootScaleNum
<rootScaleNum>: Root scale degree (0–76)
Definition Details.h:416
Evpu fbVertOff
<fbVertOff>: Vertical offset of fretboard (in EVPU)
Definition Details.h:438
bool showAltBass
<showAltBass/>: Show alternate bass
Definition Details.h:429
Evpu horzOff
<horzOff>: Horizontal offset of chord (in EVPU)
Definition Details.h:435
bool showSuffix
<showSuffix/>: Show suffix
Definition Details.h:423
Cmper suffixId
<suffix>: Chord suffix ID
Definition Details.h:414
bool playFretboard
<playFretboard/>: Playback fretboard
Definition Details.h:424
ChordAssign(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper inst, Cmper meas, Inci inci)
Constructor.
Definition Details.h:401
Cmper fbStyleId
<fbStyleID>: Fretboard style ID
Definition Details.h:415
int fbPercent
<fbPercent>: Fretboard percent scaling (100 is 100%)
Definition Details.h:441
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:443
int bassScaleNum
<bassScaleNum>: Bass scale degree (0-6)
Definition Details.h:425
Evpu vertOff
<vertOff>: Vertical offset of chord (in EVPU)
Definition Details.h:436
int capoValue
<capoValue>: Capo value (if useLocalCapo is true)
Definition Details.h:431
bool playAltBass
<playAltBass/>: Playback alternate bass
Definition Details.h:430
Cmper fretInci
One less than the 1-based Cmper value for the fretboard group. (Meaningless if useFretFont is true....
Definition Details.h:433
int chPercent
<chPercent>: Chord percent scaling (100 is 100%)
Definition Details.h:440
int rootAlter
<rootAlter>: Root alteration
Definition Details.h:417
bool playSuffix
<playSuffix/>: Playback suffix
Definition Details.h:419
bool useLocalCapo
<useLocalCapo/>: Use local capo
Definition Details.h:432
static const xml::XmlElementArray< ChordAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool bassLowerCase
<bassLowerCase/>: Display bass in lowercase
Definition Details.h:427
BassPosition bassPosition
<bassPosition>: Position of bass relative to root
Definition Details.h:428
Represents a cross-staff assignment for the note, if any.
Definition Details.h:456
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:467
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:469
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:459
NoteNumber noteId
The ID of the note being assigned to a different staff (XML node: <noteID>)
Definition Details.h:464
InstCmper staff
The target staff (XML node: <instrument>)
Definition Details.h:465
Custom stem for downstem context.
Definition Details.h:516
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:520
Represents a custom stem definition (up or down) for an entry. Which stem direction this instance con...
Definition Details.h:482
Evpu yOffset
Optional vertical displacement. (xml node is <ydisp>)
Definition Details.h:496
bool calcIsHiddenStem() const
Calculates if this custom stem record hides the stem. The stem is determined to be hidden if one of t...
Definition Implementations.cpp:1154
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:494
Evpu xOffset
Optional horizontal displacement. (xml node is <xdisp>)
Definition Details.h:495
CustomStem(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor.
Definition Details.h:491
Custom stem for upstem context.
Definition Details.h:530
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:534
Represents display offsets and spacing adjustments for augmentation dots on a specific note.
Definition Details.h:546
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:561
NoteNumber noteId
The ID of the note whose dots are adjusted.
Definition Details.h:554
Evpu hOffset
Horizontal offset for the dot (XML: <xadd>)
Definition Details.h:555
Evpu vOffset
Vertical offset for the dot (XML: <yadd>)
Definition Details.h:556
static const xml::XmlElementArray< DotAlterations > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu interdotSpacing
Additional spacing between dots (XML: <posIncr>)
Definition Details.h:557
DotAlterations(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor.
Definition Details.h:549
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:559
Specifies a custom size for an entry. It scales the entire entry, including the stem and all notehead...
Definition Details.h:574
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:589
int percent
The note/chord size as a percent (e.g., 65 for 65%).
Definition Details.h:586
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:583
A context wrapper for GFrameHold associated with a specific part and location.
Definition Details.h:650
const GFrameHold * operator->() const
Provides const pointer-style access to the underlying GFrameHold.
Definition Details.h:674
std::map< LayerIndex, bool > calcVoices() const
Calculates the number of voices used by the GFrameHold instance.
Definition Implementations.cpp:1354
ClefIndex calcClefIndexAt(util::Fraction position) const
Returns the clef index in effect for at the specified util::Fraction position (as a fraction of whole...
Definition Details.h:689
bool iterateEntries(LayerIndex layerIndex, std::function< bool(const EntryInfoPtr &)> iterator)
iterates the entries for the specified layer in this GFrameHold from left to right
Definition Implementations.cpp:1327
Cmper getRequestedPartId() const
Returns the requested part ID associated with this context.
Definition Details.h:667
std::shared_ptr< const EntryFrame > createEntryFrame(LayerIndex layerIndex, bool forWrittenPitch=false) const
Returns the EntryFrame for all entries in the given layer.
Definition Implementations.cpp:1198
ClefIndex calcClefIndexAt(Edu position) const
Returns the clef index in effect for at the specified Edu position. This function does not take into ...
Definition Implementations.cpp:1386
Represents the attributes of a Finale frame holder.
Definition Details.h:600
InstCmper getStaff() const
returns the inst (staff) number for this GFrameHold
Definition Details.h:623
std::optional< ClefIndex > clefId
clef index when there are no mid-measure clef changes. (xml tag is <clefID>).
Definition Details.h:614
GFrameHold(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper inst, Cmper meas)
Constructor function.
Definition Details.h:610
int clefPercent
Clef percent where 100 means 100%.
Definition Details.h:619
ShowClefMode showClefMode
"Show Clef" mode. (xml tag is <clefMode>)
Definition Details.h:616
bool mirrorFrame
Indicates this is a mirror frame. (Not used after Finale 14.5.)
Definition Details.h:617
static const xml::XmlElementArray< GFrameHold > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
MeasCmper getMeasure() const
returns the measure number for this GFrameHold
Definition Details.h:626
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:639
void integrityCheck() override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Details.h:628
bool clefAfterBarline
"Place Clef After Barline"
Definition Details.h:618
Cmper clefListId
The clef list ID when there are mid-measure clef changes, if non-zero. (xml tag is <clefListID>).
Definition Details.h:615
std::vector< Cmper > frames
others::Frame values for layers 1..4 (layer indices 0..3) if non-zero
Definition Details.h:620
Represents independent time and key signature overrides for a staff.
Definition Details.h:733
bool hasTime
If true, this item contains an independent time signature.
Definition Details.h:764
Cmper divBeat
Time signature denominator in Edu or a Cmper to a composite record.
Definition Details.h:754
bool displayAltDenTsig
If true, dispDivBeat is the Cmper of a others::TimeCompositeLower record.
Definition Details.h:759
Cmper dispDivBeat
Display time signature denominator in Edu or a Cmper to a composite record.
Definition Details.h:756
bool altNumTsig
If true, beats is the Cmper of a others::TimeCompositeUpper record.
Definition Details.h:760
bool hasKey
If true, this item contains an independent key signature.
Definition Details.h:750
std::shared_ptr< KeySignature > keySig
The key signature value if present. (xml tag is <keySig>/<key>)
Definition Details.h:749
bool altDenTsig
If true, divBeat is the Cmper of a others::TimeCompositeLower record.
Definition Details.h:761
std::shared_ptr< TimeSignature > createDisplayTimeSignature() const
Create a shared pointer to an instance of the display TimeSignature for this measure and staff.
Definition Implementations.cpp:1421
static const xml::XmlElementArray< IndependentStaffDetails > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool hasDispTime
If true, the display time signature is present.
Definition Details.h:763
IndependentStaffDetails(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper inst, Cmper meas)
Constructor function.
Definition Details.h:743
std::shared_ptr< TimeSignature > createTimeSignature() const
Create a shared pointer to an instance of the TimeSignature for this instance.
Definition Implementations.cpp:1416
bool displayAbbrvTime
If true, the display time signature is abbreviated.
Definition Details.h:762
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:781
Cmper dispBeats
Display time signature numerator or a Cmper to a composite record.
Definition Details.h:755
bool displayAltNumTsig
If true, dispBeats is the Cmper of a others::TimeCompositeUpper record.
Definition Details.h:758
Cmper beats
Time signature numerator or a Cmper to a composite record.
Definition Details.h:753
void integrityCheck() override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Details.h:773
Contains the syllable assignments for lyrics chorus blocks.
Definition Details.h:821
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:826
Contains the syllable assignments for lyrics section blocks.
Definition Details.h:836
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:841
Contains the syllable assignments for lyrics verse blocks.
Definition Details.h:851
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:856
Contains assignment data for a lyric assignment (a single syllable)
Definition Details.h:790
LyricAssign(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:800
static const xml::XmlElementArray< LyricAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
int wext
Somehow indicates a word extension, but its meaning is uncertain. It does not appear to be a smart sh...
Definition Details.h:808
Cmper lyricNumber
the text number of the lyric.
Definition Details.h:803
unsigned syllable
the 1-based syllable number. Subtract 1 to get the index. (xml node is <syll>)
Definition Details.h:804
Evpu floatingHorzOff
This appears to have something to do with note spacing. It may simply be a cache that Finale changes ...
Definition Details.h:807
Evpu horzOffset
horizontal offset from default position. (xml node is <horzOff>)
Definition Details.h:805
Evpu vertOffset
horizontal offset from default position. (xml node is <vertOff>)
Definition Details.h:806
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:809
Specifies lyric alignment and justification for a single entry. This affects all lyric assignments on...
Definition Details.h:867
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:887
std::optional< AlignJustify > align
Override default alignment if present. (xml node is <align>)
Definition Details.h:884
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:880
std::optional< AlignJustify > justify
Override default justification if present. (xml node is <justify>)
Definition Details.h:883
Represents a text block assignment for a staff and measure.
Definition Details.h:906
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:929
Evpu yDisp
Vertical displacement in Evpu (xml node is <ydisp>)
Definition Details.h:926
MeasureTextAssign(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper inst, Cmper meas, Inci inci)
Constructor.
Definition Details.h:917
Evpu xDispEvpu
Negative horizontal displacement in Evpu (xml node is <xdispEvpu>)
Definition Details.h:925
Cmper block
Text block ID.
Definition Details.h:922
bool hidden
Indicates the text appears only on screen (xml node is <postIt/>)
Definition Details.h:927
static const xml::XmlElementArray< MeasureTextAssign > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Edu xDispEdu
Definition Details.h:923
Represents graphical and notational alterations applied to a note.
Definition Details.h:942
bool allowVertPos
Whether vertical positioning is allowed .
Definition Details.h:956
int percent
Size percentage for the notehead. (A value of 100 means 100%.)
Definition Details.h:951
char32_t altNhead
Alternate notehead character.
Definition Details.h:953
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:963
NoteAlterations(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:945
Evpu nydisp
Vertical notehead offset.
Definition Details.h:957
std::shared_ptr< FontInfo > customFont
Custom font info (consolidates: <fontID>, <fontSize>, <efx>)
Definition Details.h:955
bool useOwnFont
Whether to use the custom font.
Definition Details.h:954
Evpu nxdisp
Horizontal notehead offset.
Definition Details.h:952
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:961
bool enharmonic
Definition Details.h:958
NoteNumber noteId
The ID of the note being altered. (xml node is <noteID>)
Definition Details.h:950
static const xml::XmlElementArray< NoteAlterations > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Represents a percussion note code override for a single note.
Definition Details.h:976
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:987
NoteNumber noteId
The ID of the note being assigned a code.
Definition Details.h:984
PercussionNoteType noteCode
The percussion note code. Use this to search the incis of the percussion map for the specific note.
Definition Details.h:985
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:979
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:989
Beam alteration for downstem secondary beams.
Definition Details.h:1000
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:1020
SecondaryBeamAlterationsDownStem(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor.
Definition Details.h:1011
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1023
Beam alteration for downstem secondary beams.
Definition Details.h:1033
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:1053
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1056
SecondaryBeamAlterationsUpStem(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor.
Definition Details.h:1044
Specifies which secondary beams break and restart on the associated entry.
Definition Details.h:1068
SecondaryBeamBreak(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor function.
Definition Details.h:1071
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1112
void integrityCheck() override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Details.h:1099
BeamNumber calcLowestBreak() const
Calculates the lowest (largest note-value) beam specified for a secondary beam break.
Definition Details.h:1085
bool breakThrough
True if the beam should be broken through to the largest specified beam value.
Definition Details.h:1077
unsigned mask
Composite mask of beam breaks, derived from <do16th> through <do4096th> tags.
Definition Details.h:1076
static const xml::XmlElementArray< SecondaryBeamBreak > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Provides run-time information about Staff Groups within a system or list of others::InstrumentUsed.
Definition Details.h:1268
static std::vector< StaffGroupInfo > getGroupsAtMeasure(MeasCmper measureId, const std::shared_ptr< others::PartDefinition > &linkedPart, const std::vector< std::shared_ptr< others::InstrumentUsed > > &systemStaves)
Creates a vector of StaffGroupInfo instances for the measure, part, and system staves.
Definition Implementations.cpp:3144
std::optional< size_t > startSlot
the start slot of the group in the system staves.
Definition Details.h:1270
std::optional< size_t > endSlot
the end slot of the group in the system staves.
Definition Details.h:1271
std::shared_ptr< StaffGroup > group
the StaffGroup record for the group.
Definition Details.h:1272
Embedded class to represent the "bracket" node.
Definition Details.h:1173
static const xml::XmlElementArray< Bracket > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
BracketStyle style
Bracket style (xml node is <id>)
Definition Details.h:1175
Evpu vertAdjBot
"Vertical Adjust (Bottom of Bracket)" (xml node is <bracBot>)
Definition Details.h:1178
Evpu vertAdjTop
"Vertical Adjust (Top of Bracket)" (xml node is <bracTop>)
Definition Details.h:1177
bool showOnSingleStaff
"Show Bracket If Group Contains Only One Staff" (xml node is <onSingle>)
Definition Details.h:1179
Evpu horzAdjLeft
"Distance from Left Edge of Staff" (xml node is <bracPos>)
Definition Details.h:1176
Bracket()=default
Default constructor for Bracket.
Represents the attributes of a Finale staff group that brackets staves.
Definition Details.h:1122
AlignJustify abbrvNameJustify
Abbreviated name justification (xml node is <abbrvJustify>)
Definition Details.h:1200
bool abbrvNameExpand
"Expand Single Word" for abbreviated name (xml node is <abbrvExpand>)
Definition Details.h:1212
Cmper multiStaffGroupId
Definition Details.h:1215
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:1211
bool ownBarline
"Use Alternate Group Barline"
Definition Details.h:1202
int abbrvNameYadj
Vertical adjustment for abbreviated name (xml node is <abbrvYadj>)
Definition Details.h:1208
DrawBarlineStyle
Enum for how to draw group barlines.
Definition Details.h:1143
@ 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 Implementations.cpp:3108
void integrityCheck() override
Allows a class to determine if it has been properly contructed by the factory and fix issues that it ...
Definition Details.h:1246
bool isAllMeasures() const
Returns true if this group spans all measures.
Definition Details.h:1243
Cmper abbrvNameId
Abbreviated name TextBlock cmper (xml node is <abbrvID>)
Definition Details.h:1206
int fullNameXadj
Horizontal adjustment for full name (xml node is <fullXadj>)
Definition Details.h:1195
std::shared_ptr< Bracket > bracket
Bracket Options. The factory guarantees this value to exist.
Definition Details.h:1197
std::shared_ptr< others::MultiStaffInstrumentGroup > getMultiStaffInstGroup() const
Returns the others::MultiStaffInstrumentGroup for this group if it is part of one....
Definition Implementations.cpp:3087
std::string getAbbreviatedName(util::EnigmaString::AccidentalStyle accidentalStyle=util::EnigmaString::AccidentalStyle::Ascii) const
Get the abbreviated staff name without Enigma tags.
Definition Implementations.cpp:3082
AlignJustify fullNameJustify
Full name justification (xml node is <fullJustify>)
Definition Details.h:1199
DrawBarlineStyle drawBarlines
"Draw Barlines" option (xml node is <groupBarlineStyle>)
Definition Details.h:1201
InstCmper startInst
Starting staff ID.
Definition Details.h:1190
BracketStyle
Bracket style enum for StaffGroup.
Definition Details.h:1159
@ BracketCurvedHooks
Thick bracket with curved hooks.
@ DeskBracket
Thin bracket with horizontal hook lines.
@ BracketStraightHooks
Thick bracket with straight hooks.
AlignJustify abbrvNameAlign
Abbreviated name horizontal alignment (xml node is <abbrvHAlign>)
Definition Details.h:1210
int fullNameYadj
Vertical adjustment for full name (xml node is <fullYadj>)
Definition Details.h:1196
HideStaves hideStaves
"When Hiding Empty Staves" option (xml node is <optimize>)
Definition Details.h:1213
BarlineType barlineType
Group barline type (xml node is <barline>)
Definition Details.h:1198
AlignJustify fullNameAlign
Full name horizontal alignment (xml node is <fullHAlign>)
Definition Details.h:1209
std::unordered_set< InstCmper > staves
Calculated list of staves in the group.
Definition Details.h:1217
Cmper fullNameId
Full name TextBlock cmper (xml node is <fullID>)
Definition Details.h:1194
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 Implementations.cpp:3098
StaffGroup(const DocumentWeakPtr &document, Cmper partId, Base::ShareMode shareMode, Cmper cmper1, Cmper cmper2)
Constructor.
Definition Details.h:1132
InstCmper endInst
Ending staff ID.
Definition Details.h:1191
static constexpr std::string_view XmlNodeName
XML node name for this type.
Definition Details.h:1259
MeasCmper startMeas
Starting measure number.
Definition Details.h:1192
std::string getFullName(util::EnigmaString::AccidentalStyle accidentalStyle=util::EnigmaString::AccidentalStyle::Ascii) const
Get the full staff name without Enigma tags.
Definition Implementations.cpp:3077
MeasCmper endMeas
Ending measure number.
Definition Details.h:1193
bool hideName
Inverse of "Show Group Name".
Definition Details.h:1205
bool fullNameIndivPos
Indicates if full name has individual position (xml node is <fullIndivPos>)
Definition Details.h:1203
bool abbrvNameIndivPos
Indicates if abbreviated name has individual position (xml node is <abbrvIndivPos>)
Definition Details.h:1204
int abbrvNameXadj
Horizontal adjustment for abbreviated name (xml node is <abbrvXadj>)
Definition Details.h:1207
HideStaves
Enum for optimization options.
Definition Details.h:1151
@ 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:1298
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1315
static const xml::XmlElementArray< StaffSize > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
int staffPercent
The staff size percentage override. (A value of 100 means 100%, i.e, no staff scaling....
Definition Details.h:1313
StaffSize(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, Cmper system, Cmper inst)
Constructor.
Definition Details.h:1308
Specifies horizontal and vertical adjustments for stems under beam.
Definition Details.h:1354
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1358
Specifies horizontal and vertical stem adjustments for upstem and downstem contexts.
Definition Details.h:1328
Evpu upVertAdjust
Vertical adjustment for upstem context (positive is up).
Definition Details.h:1336
Evpu downHorzAdjust
Horizontal adjustment for downstem context (positive is right).
Definition Details.h:1339
Evpu downVertAdjust
Vertical adjustment for downstem context (positive is up).
Definition Details.h:1337
static const xml::XmlElementArray< StemAlterations > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu upHorzAdjust
Horizontal adjustment for upstem context (positive is right).
Definition Details.h:1338
StemAlterations(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum)
Constructor function.
Definition Details.h:1331
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1341
Base class for tie alteration properties. (Used for both ties and tie ends.)
Definition Details.h:1366
Evpu yEnd
Vertical end position of the tie.
Definition Details.h:1378
NoteNumber noteId
Note ID associated with the tie alteration. (xml node is <noteID>)
Definition Details.h:1374
bool outerLocal
Local setting for "Outer Tie".
Definition Details.h:1379
Evpu xStart
Horizontal start position of the tie.
Definition Details.h:1375
Evpu height1
Height of the first control point.
Definition Details.h:1397
NoteNumber getNoteId() const override
Required virtual function that returns the note id.
Definition Details.h:1402
bool afterMultiDotsLocal
Local setting for "After Multiple Dots".
Definition Details.h:1382
bool shiftForSecondsOn
Enable "Shift for Seconds".
Definition Details.h:1385
Evpu height2
Height of the second control point.
Definition Details.h:1399
TieAlterBase(const DocumentWeakPtr &document, Cmper partId, Base::ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:1369
Evpu insetRatio1
Inset ratio for the first control point.
Definition Details.h:1396
bool enPtAdjOn
Enable end point adjustment.
Definition Details.h:1395
bool shiftForSecondsLocal
Local setting for "Shift for Seconds".
Definition Details.h:1384
bool afterSingleDotOn
Enable "After Single Dot".
Definition Details.h:1381
bool afterMultiDotsOn
Enable "After Multiple Dots".
Definition Details.h:1383
Evpu insetRatio2
Inset ratio for the second control point.
Definition Details.h:1398
bool breakKeyLocal
Local setting for "Break at Key Signature".
Definition Details.h:1391
bool breakKeyOn
Enable "Break at Key Signature".
Definition Details.h:1392
bool down
Downward tie. Only applicable if freezeDirection is true. (False freezes the tie up....
Definition Details.h:1388
bool beforeSingleAcciOn
Enable "Before Single Accidental".
Definition Details.h:1387
bool stPtAdjOn
Enable start point adjustment.
Definition Details.h:1394
static const xml::XmlElementArray< TieAlterBase > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
bool beforeSingleAcciLocal
Local setting for "Before Single Accidental".
Definition Details.h:1386
Evpu xEnd
Horizontal end position of the tie.
Definition Details.h:1376
bool ctlPtAdjOn
Enable control point adjustment.
Definition Details.h:1400
bool breakTimeLocal
Local setting for "Break at Time Signature".
Definition Details.h:1389
bool freezeDirection
Freeze tie direction. (xml node is <freeze>)
Definition Details.h:1393
Evpu yStart
Vertical start position of the tie.
Definition Details.h:1377
bool afterSingleDotLocal
Local setting for "After Single Dot".
Definition Details.h:1380
bool breakTimeOn
Enable "Break at Time Signature".
Definition Details.h:1390
bool requireAllFields() const override
Unless we decide to figure out connection types, this will stay here.
Definition Details.h:1404
Alterations for tie ends.
Definition Details.h:1417
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1421
static const xml::XmlElementArray< TieAlterEnd > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Alterations for tie starts. (Tie starts are normal ties.)
Definition Details.h:1434
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1438
static const xml::XmlElementArray< TieAlterStart > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Options controlling the appearance of tuplets.
Definition Details.h:1451
bool hidden
Inverse of "Show".
Definition Details.h:1477
util::Fraction calcRatio() const
return the tuplet ratio (reference / display)
Definition Details.h:1504
util::Fraction calcDisplayDuration() const
return the display duration as a util::Fraction of a whole note
Definition Details.h:1501
Evpu tupOffX
Horizontal offset.
Definition Details.h:1478
Evpu rightHookLen
Length of the right hook in the tuplet bracket. (This value is sign-reversed in the Finale UI....
Definition Details.h:1493
Evpu brackOffY
Vertical offset for brackets.
Definition Details.h:1481
BracketStyle brackStyle
Bracket style.
Definition Details.h:1489
bool avoidStaff
"Avoid Staff"
Definition Details.h:1475
AutoBracketStyle autoBracketStyle
Autobracket style.
Definition Details.h:1476
bool alwaysFlat
"Always Flat" (xml node is <flat>)
Definition Details.h:1472
bool fullDura
"Bracket Full Duration"
Definition Details.h:1473
bool allowHorz
"Allow Horizontal Drag"
Definition Details.h:1484
int referenceNumber
The number of notes "in the time of" (xml node is <refNum>)
Definition Details.h:1470
Evpu rightHookExt
Extension of the right hook beyond the tuplet bracket.
Definition Details.h:1494
Evpu leftHookExt
Extension of the left hook beyond the tuplet bracket.
Definition Details.h:1492
bool ignoreHorzNumOffset
"Ignore Horizontal Number Offset" (xml node is <ignoreGlOffs>)
Definition Details.h:1485
TupletDef(const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode, EntryNumber entnum, Inci inci)
Constructor function.
Definition Details.h:1454
util::Fraction calcReferenceDuration() const
return the reference duration as a util::Fraction of a whole note
Definition Details.h:1498
bool smartTuplet
"Engraver Tuplets"
Definition Details.h:1490
Edu displayDuration
The duration of each note to display (xml node is <symbolicDur>)
Definition Details.h:1469
Evpu tupOffY
Vertical.
Definition Details.h:1479
NumberStyle numStyle
Number style.
Definition Details.h:1482
static const xml::XmlElementArray< TupletDef > & xmlMappingArray()
Required for musx::factory::FieldPopulator.
Evpu brackOffX
Horizontal offset for brackets.
Definition Details.h:1480
Evpu manualSlopeAdj
"Manual Slope Adjustment" in Evpu. (xml node is <slope>)
Definition Details.h:1495
static constexpr std::string_view XmlNodeName
The XML node name for this type.
Definition Details.h:1506
bool breakBracket
"Break Slur or Bracket"
Definition Details.h:1486
int displayNumber
The number of notes to display (xml node is <symbolicNum>)
Definition Details.h:1468
bool metricCenter
"Center Number Using Duration"
Definition Details.h:1474
bool useBottomNote
"Use Bottom Note" (xml node is <noteBelow>)
Definition Details.h:1488
bool matchHooks
"Match Length of Hooks"
Definition Details.h:1487
PositioningStyle posStyle
Positioning style.
Definition Details.h:1483
Edu referenceDuration
The duration of eacn note "in the time of" (xml node is <refDur>)
Definition Details.h:1471
Evpu leftHookLen
Length of the left hook in the tuplet bracket. (This value is sign-reversed in the Finale UI....
Definition Details.h:1491
FlattenStyle
Beaming style choices for when to flatten beams.
Definition Options.h:168
AlignJustify
Horizontal and vertical alignment/justification values.
Definition Options.h:560
BracketStyle
Bracket style options.
Definition Options.h:1506
PositioningStyle
Positioning style options.
Definition Options.h:1496
AutoBracketStyle
Auto-bracket style options.
Definition Options.h:1473
NumberStyle
Number style options.
Definition Options.h:1486
BarlineType
Barline type for left and right barlines.
Definition Others.h:951
AlignJustify
Alignment and justification options for staff and group names.
Definition CommonClasses.h:568
Contains chorus text for lyrics.
Definition Texts.h:148
Contains section text for lyrics.
Definition Texts.h:163
Contains verse text for lyrics.
Definition Texts.h:133
AccidentalStyle
Enumeration to specify the type of accidental replacement.
Definition EnigmaString.h:57
@ 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:37
dom::Edu calcEduDuration() const
Calculates duration as a fraction of a whole note.
Definition Fraction.cpp:36
ShowClefMode
Enum representing the clef display mode for a frame.
Definition CommonClasses.h:96
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
uint16_t PercussionNoteType
Definition Fundamentals.h:75
unsigned int LayerIndex
Layer index (valid values are 0..3)
Definition Fundamentals.h:70
int16_t InstCmper
Enigma staff (inst) Cmper (may be negative when not applicable)
Definition Fundamentals.h:65
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:78
uint16_t Cmper
Enigma "comperator" key type.
Definition Fundamentals.h:55
uint16_t ClefIndex
Index into options::ClefOptions::clefDefs.
Definition Fundamentals.h:67
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:53
int32_t EntryNumber
Entry identifier.
Definition Fundamentals.h:68
uint16_t NoteNumber
Note identifier.
Definition Fundamentals.h:69
std::shared_ptr< Document > DocumentPtr
Shared Document pointer.
Definition BaseClasses.h:51
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:71
std::vector< XmlElementDescriptor< T > > XmlElementArray
an array type for XmlElementDescriptor instances.
Definition XmlInterface.h:127
object model for musx file (enigmaxml)
Definition BaseClasses.h:32