Verovio
Source code documentation
iomei.h
1 // Name: iomei.h
3 // Author: Laurent Pugin
4 // Created: 2011
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_IOMEI_H__
9 #define __VRV_IOMEI_H__
10 
11 #include <sstream>
12 #include <stack>
13 
14 //----------------------------------------------------------------------------
15 
16 #include "doc.h"
17 #include "iobase.h"
18 
19 //----------------------------------------------------------------------------
20 
21 #include "pugixml.hpp"
22 
23 namespace vrv {
24 
25 class Abbr;
26 class Accid;
27 class Add;
28 class AltSymInterface;
29 class AnchoredText;
30 class Annot;
31 class AnnotScore;
32 class App;
33 class AreaPosInterface;
34 class Arpeg;
35 class Artic;
36 class BarLine;
37 class Beam;
38 class BeamSpan;
39 class BeatRpt;
40 class BracketSpan;
41 class Breath;
42 class BTrem;
43 class Caesura;
44 class Choice;
45 class Chord;
46 class Clef;
47 class ControlElement;
48 class Corr;
49 class Course;
50 class CpMark;
51 class Custos;
52 class Damage;
53 class Del;
54 class Dot;
55 class Dir;
56 class Div;
57 class DivLine;
58 class DurationInterface;
59 class Dynam;
60 class Ending;
61 class Episema;
62 class Expan;
63 class Expansion;
64 class F;
65 class Fb;
66 class Fig;
67 class Fing;
68 class Fermata;
69 class FloatingElement;
70 class FTrem;
71 class GenericLayerElement;
72 class Gliss;
73 class GraceGrp;
74 class Graphic;
75 class GrpSym;
76 class Hairpin;
77 class HalfmRpt;
78 class Harm;
79 class KeyAccid;
80 class KeySig;
81 class LinkingInterface;
82 class InstrDef;
83 class Label;
84 class LabelAbbr;
85 class Layer;
86 class LayerDef;
87 class LayerElement;
88 class Lb;
89 class Lem;
90 class Ligature;
91 class Liquescent;
92 class Lv;
93 class Mdiv;
94 class Measure;
95 class Mensur;
96 class MeterSig;
97 class MeterSigGrp;
98 class MNum;
99 class Mordent;
100 class MRest;
101 class MRpt;
102 class MRpt2;
103 class MSpace;
104 class MultiRest;
105 class MultiRpt;
106 class Nc;
107 class Neume;
108 class Note;
109 class Num;
110 class Octave;
111 class OffsetInterface;
112 class OffsetSpanningInterface;
113 class Orig;
114 class Oriscus;
115 class Ornam;
116 class Ossia;
117 class Page;
118 class PageElement;
119 class PageMilestoneEnd;
120 class Pages;
121 class Pb;
122 class Pedal;
123 class PgFoot;
124 class PgHead;
125 class Phrase;
126 class PitchInflection;
127 class PitchInterface;
128 class Plica;
129 class PlistInterface;
130 class PositionInterface;
131 class Proport;
132 class Quilisma;
133 class Rdg;
134 class Ref;
135 class Reg;
136 class Reh;
137 class Rend;
138 class RepeatMark;
139 class Rest;
140 class Restore;
141 class Refrain;
142 class RunningElement;
143 class Score;
144 class ScoreDef;
145 class ScoreDefElement;
146 class ScoreDefInterface;
147 class Sb;
148 class Section;
149 class Sic;
150 class Slur;
151 class Space;
152 class Staff;
153 class Stem;
154 class Strophicus;
155 class Subst;
156 class Supplied;
157 class Surface;
158 class Svg;
159 class Syl;
160 class Syllable;
161 class Symbol;
162 class SymbolDef;
163 class SymbolTable;
164 class System;
165 class SystemElement;
166 class SystemMilestoneEnd;
167 class TabDurSym;
168 class TabGrp;
169 class Tempo;
170 class Text;
171 class TextDirInterface;
172 class TextElement;
173 class TextLayoutElement;
174 class Tie;
175 class TimePointInterface;
176 class TimeSpanningInterface;
177 class Trill;
178 class Tuning;
179 class Turn;
180 class Tuplet;
181 class Unclear;
182 class Volta;
183 class Verse;
184 class LyricElement;
185 class Zone;
186 
187 // Helper enums
189 enum class MatchLocation { Before, Here, After };
190 enum class RangeMatchLocation { BeforeStart, AtStart, BetweenStartEnd, AtEnd, AfterEnd };
192 
193 //----------------------------------------------------------------------------
194 // MEIOutput
195 //----------------------------------------------------------------------------
196 
202 class MEIOutput : public Output {
203 public:
206  MEIOutput(Doc *doc);
207  virtual ~MEIOutput();
209 
213  std::string Export() override;
214 
218  bool Skip(Object *object) const override;
219 
224  bool WriteObject(Object *object) override;
225  bool WriteObjectEnd(Object *object) override;
227 
232  void SetScoreBasedMEI(bool scoreBasedMEI) { m_scoreBasedMEI = scoreBasedMEI; }
234 
239  void SetBasic(bool basic) { m_basic = basic; }
240  bool GetBasic() const { return m_basic; }
242 
247  bool HasFilter() const;
248  void SetFirstPage(int page);
249  void SetLastPage(int page);
250  void SetFirstMeasure(const std::string &id);
251  void SetLastMeasure(const std::string &id);
252  void SetMdiv(const std::string &id);
253  void ResetFilter();
255 
260  bool IsScoreBasedMEI() const { return m_scoreBasedMEI; }
261  bool IsPageBasedMEI() const { return !m_scoreBasedMEI; }
262  bool IsSerializing() const { return m_serializing; }
264 
268  void SetIndent(int indent) { m_indent = indent; }
269 
273  void SetIgnoreHeader(bool ignoreHeader) { m_ignoreHeader = ignoreHeader; }
274 
278  void SetSerializing(bool serializing) { m_serializing = serializing; }
279 
283  void SetRemoveIds(bool removeIds) { m_removeIds = removeIds; }
284 
285 private:
289  void Reset();
290 
296  bool IsTreeObject(Object *object) const;
297 
302  bool HasValidFilter() const;
303  bool IsMatchingFilter() const;
304  void UpdateFilter(Object *object);
305  void UpdatePageFilter(Object *object);
306  void UpdateMeasureFilter(Object *object);
307  void UpdateMdivFilter(Object *object);
308  bool ProcessScoreBasedFilter(Object *object);
309  bool ProcessScoreBasedFilterEnd(Object *object);
310  void PruneAttributes(pugi::xml_node node);
312 
317  bool WriteObjectInternal(Object *object, bool useCustomScoreDef);
318  bool WriteObjectInternalEnd(Object *object);
319  void WriteStackedObjects();
320  void WriteStackedObjectsEnd();
322 
327  void WriteCustomScoreDef(ScoreDef *scoreDef);
328  void AdjustStaffDef(StaffDef *staffDef, Measure *measure);
329  bool AdjustLabel(Label *label);
331 
335  bool WriteDoc(Doc *doc);
336 
340  void WriteRevisionDesc(pugi::xml_node meiHead);
341 
345  void WriteXmlId(pugi::xml_node currentNode, Object *object);
346 
351  void WriteMdiv(pugi::xml_node currentNode, Mdiv *mdiv);
352  void WritePages(pugi::xml_node currentNode, Pages *pages);
353  void WriteScore(pugi::xml_node currentNode, Score *score);
355 
360  void WriteSection(pugi::xml_node currentNode, Section *section);
361  void WriteEnding(pugi::xml_node currentNote, Ending *ending);
362  void WriteExpansion(pugi::xml_node currentNote, Expansion *expansion);
363  void WritePb(pugi::xml_node currentNode, Pb *pb);
364  void WriteSb(pugi::xml_node currentNode, Sb *sb);
366 
371  void WritePage(pugi::xml_node currentNode, Page *page);
372  void WritePageElement(pugi::xml_node element, PageElement *object);
373  void WritePageMilestoneEnd(pugi::xml_node currentNode, PageMilestoneEnd *milestoneEnd);
374  void WriteSystem(pugi::xml_node currentNode, System *system);
375  void WriteSystemMilestoneEnd(pugi::xml_node currentNode, SystemMilestoneEnd *milestoneEnd);
376  void WriteScoreDef(pugi::xml_node currentNode, ScoreDef *scoreDef);
377  void WriteGrpSym(pugi::xml_node currentNode, GrpSym *grmSym);
378  void WritePgFoot(pugi::xml_node currentNode, PgFoot *pgFoot);
379  void WritePgHead(pugi::xml_node currentNode, PgHead *pgHead);
380  void WriteDiv(pugi::xml_node currentNode, Div *div);
381  void WriteStaffGrp(pugi::xml_node currentNode, StaffGrp *staffGrp);
382  void WriteStaffDef(pugi::xml_node currentNode, StaffDef *staffDef);
383  void WriteInstrDef(pugi::xml_node currentNode, InstrDef *instrDef);
384  void WriteLabel(pugi::xml_node currentNode, Label *label);
385  void WriteLabelAbbr(pugi::xml_node currentNode, LabelAbbr *labelAbbr);
386  void WriteLayerDef(pugi::xml_node currentNode, LayerDef *layerDef);
387  void WriteTuning(pugi::xml_node currentNode, Tuning *tuning);
388  void WriteCourse(pugi::xml_node currentNode, Course *course);
389  void WriteSymbolTable(pugi::xml_node currentNode, SymbolTable *symbolTable);
390  void WriteMeasure(pugi::xml_node currentNode, Measure *measure);
391  void WriteMeterSigGrp(pugi::xml_node currentNode, MeterSigGrp *meterSigGrp);
392  void WriteFb(pugi::xml_node currentNode, Fb *fb);
393  void WriteStaff(pugi::xml_node currentNode, Staff *staff);
394  void WriteOStaff(pugi::xml_node currentNode, Staff *oStaff);
395  void WriteLayer(pugi::xml_node currentNode, Layer *layer);
396  void WriteOssia(pugi::xml_node currentNode, Ossia *ossia);
398 
404  void WriteAccid(pugi::xml_node currentNode, Accid *accid);
405  void WriteArtic(pugi::xml_node currentNode, Artic *artic);
406  void WriteBarLine(pugi::xml_node currentNode, BarLine *barLine);
407  void WriteBeam(pugi::xml_node currentNode, Beam *beam);
408  void WriteBeatRpt(pugi::xml_node currentNode, BeatRpt *beatRpt);
409  void WriteBTrem(pugi::xml_node currentNode, BTrem *bTrem);
410  void WriteChord(pugi::xml_node currentNode, Chord *chord);
411  void WriteClef(pugi::xml_node currentNode, Clef *clef);
412  void WriteCustos(pugi::xml_node currentNode, Custos *custos);
413  void WriteDivLine(pugi::xml_node currentNode, DivLine *divLine);
414  void WriteDot(pugi::xml_node currentNode, Dot *dot);
415  void WriteEpisema(pugi::xml_node currentNode, Episema *episema);
416  void WriteFTrem(pugi::xml_node currentNode, FTrem *fTrem);
417  void WriteGenericLayerElement(pugi::xml_node currentNode, GenericLayerElement *element);
418  void WriteGraceGrp(pugi::xml_node currentNode, GraceGrp *graceGrp);
419  void WriteHalfmRpt(pugi::xml_node currentNode, HalfmRpt *halfmRpt);
420  void WriteKeyAccid(pugi::xml_node currentNode, KeyAccid *keyAccid);
421  void WriteKeySig(pugi::xml_node currentNode, KeySig *keySig);
422  void WriteLigature(pugi::xml_node currentNode, Ligature *ligature);
423  void WriteLiquescent(pugi::xml_node currentNode, Liquescent *liquescent);
424  void WriteMensur(pugi::xml_node currentNode, Mensur *mensur);
425  void WriteMeterSig(pugi::xml_node currentNode, MeterSig *meterSig);
426  void WriteMRest(pugi::xml_node currentNode, MRest *mRest);
427  void WriteMRpt(pugi::xml_node currentNode, MRpt *mRpt);
428  void WriteMRpt2(pugi::xml_node currentNode, MRpt2 *mRpt2);
429  void WriteMSpace(pugi::xml_node currentNode, MSpace *mSpace);
430  void WriteMultiRest(pugi::xml_node currentNode, MultiRest *multiRest);
431  void WriteMultiRpt(pugi::xml_node currentNode, MultiRpt *multiRpt);
432  void WriteNc(pugi::xml_node currentNode, Nc *nc);
433  void WriteNeume(pugi::xml_node currentNode, Neume *neume);
434  void WriteNote(pugi::xml_node currentNode, Note *note);
435  void WriteOriscus(pugi::xml_node currentNode, Oriscus *oriscus);
436  void WritePlica(pugi::xml_node currentNode, Plica *plica);
437  void WriteProport(pugi::xml_node currentNode, Proport *proport);
438  void WriteQuilisma(pugi::xml_node currentNode, Quilisma *quilisma);
439  void WriteStrophicus(pugi::xml_node currentNode, Strophicus *strophicus);
440  void WriteRest(pugi::xml_node currentNode, Rest *rest);
441  void WriteSpace(pugi::xml_node currentNode, Space *space);
442  void WriteStem(pugi::xml_node currentNode, Stem *stem);
443  void WriteSyllable(pugi::xml_node currentNode, Syllable *syllable);
444  void WriteTabDurSym(pugi::xml_node currentNode, TabDurSym *tabDurSym);
445  void WriteTabGrp(pugi::xml_node currentNode, TabGrp *tabGrp);
446  void WriteTuplet(pugi::xml_node currentNode, Tuplet *tuplet);
448 
453  void WriteAnchoredText(pugi::xml_node currentNode, AnchoredText *anchoredText);
454  void WriteAnnotScore(pugi::xml_node currentNode, AnnotScore *annotScore);
455  void WriteArpeg(pugi::xml_node currentNode, Arpeg *arpeg);
456  void WriteBeamSpan(pugi::xml_node currentNode, BeamSpan *beamSpan);
457  void WriteBracketSpan(pugi::xml_node currentNode, BracketSpan *bracketSpan);
458  void WriteBreath(pugi::xml_node currentNode, Breath *breath);
459  void WriteCaesura(pugi::xml_node currentNode, Caesura *caesura);
460  void WriteCpMark(pugi::xml_node currentNode, CpMark *cpMark);
461  void WriteDir(pugi::xml_node currentNode, Dir *dir);
462  void WriteDynam(pugi::xml_node currentNode, Dynam *dynam);
463  void WriteFermata(pugi::xml_node currentNode, Fermata *fermata);
464  void WriteFing(pugi::xml_node currentNode, Fing *fing);
465  void WriteGliss(pugi::xml_node currentNode, Gliss *gliss);
466  void WriteHairpin(pugi::xml_node currentNode, Hairpin *hairpin);
467  void WriteHarm(pugi::xml_node currentNode, Harm *harm);
468  void WriteLv(pugi::xml_node currentNode, Lv *lv);
469  void WriteMNum(pugi::xml_node currentNode, MNum *mnum);
470  void WriteMordent(pugi::xml_node currentNode, Mordent *mordent);
471  void WriteOctave(pugi::xml_node currentNode, Octave *octave);
472  void WriteOrnam(pugi::xml_node currentNode, Ornam *ornam);
473  void WritePedal(pugi::xml_node currentNode, Pedal *pedal);
474  void WritePhrase(pugi::xml_node currentNode, Phrase *phrase);
475  void WritePitchInflection(pugi::xml_node currentNode, PitchInflection *pitchInflection);
476  void WriteReh(pugi::xml_node currentNode, Reh *reh);
477  void WriteRepeatMark(pugi::xml_node currentNode, RepeatMark *repeatMark);
478  void WriteSlur(pugi::xml_node currentNode, Slur *slur);
479  void WriteTempo(pugi::xml_node currentNode, Tempo *tempo);
480  void WriteTie(pugi::xml_node currentNode, Tie *tie);
481  void WriteTrill(pugi::xml_node currentNode, Trill *trill);
482  void WriteTurn(pugi::xml_node currentNode, Turn *turn);
484 
489  void WriteF(pugi::xml_node currentNode, F *f);
490  void WriteFig(pugi::xml_node currentNode, Fig *fig);
491  void WriteLb(pugi::xml_node currentNode, Lb *lb);
492  void WriteNum(pugi::xml_node currentNode, Num *num);
493  void WriteRend(pugi::xml_node currentNode, Rend *rend);
494  void WriteSvg(pugi::xml_node currentNode, Svg *svg);
495  void WriteSymbol(pugi::xml_node currentNode, Symbol *symbol);
496  void WriteSymbolDef(pugi::xml_node currentNode, SymbolDef *symbolDef);
497  void WriteText(pugi::xml_node currentNode, Text *text);
499 
504  void WriteAbbr(pugi::xml_node currentNode, Abbr *abbr);
505  void WriteAdd(pugi::xml_node currentNode, Add *add);
506  void WriteAnnot(pugi::xml_node currentNode, Annot *annot);
507  void WriteApp(pugi::xml_node currentNode, App *app);
508  void WriteChoice(pugi::xml_node currentNode, Choice *choice);
509  void WriteCorr(pugi::xml_node currentNode, Corr *corr);
510  void WriteDamage(pugi::xml_node currentNode, Damage *damage);
511  void WriteDel(pugi::xml_node currentNode, Del *del);
512  void WriteExpan(pugi::xml_node currentNode, Expan *expan);
513  void WriteLem(pugi::xml_node currentNode, Lem *lem);
514  void WriteOrig(pugi::xml_node currentNode, Orig *orig);
515  void WriteRdg(pugi::xml_node currentNode, Rdg *rdg);
516  void WriteRef(pugi::xml_node currentNode, Ref *Ref);
517  void WriteReg(pugi::xml_node currentNode, Reg *Reg);
518  void WriteRestore(pugi::xml_node currentNode, Restore *restore);
519  void WriteSic(pugi::xml_node currentNode, Sic *sic);
520  void WriteSubst(pugi::xml_node currentNode, Subst *subst);
521  void WriteSupplied(pugi::xml_node currentNode, Supplied *supplied);
522  void WriteUnclear(pugi::xml_node currentNode, Unclear *unclear);
524 
529  void WriteRefrain(pugi::xml_node currentNode, Refrain *refrain);
530  void WriteVolta(pugi::xml_node currentNode, Volta *volta);
531  void WriteVerse(pugi::xml_node currentNode, Verse *verse);
532  void WriteLyricElement(pugi::xml_node currentNode, LyricElement *lyricElement);
533  void WriteSyl(pugi::xml_node currentNode, Syl *syl);
534  void WriteZone(pugi::xml_node currentNode, Zone *zone);
535  void WriteSurface(pugi::xml_node currentNode, Surface *surface);
536  void WriteFacsimile(pugi::xml_node currentNode, Facsimile *facsimile);
537  void WriteGraphic(pugi::xml_node currentNode, Graphic *graphic);
539 
543  void WriteUnsupportedAttr(pugi::xml_node currentNode, Object *object);
544 
550  void WriteControlElement(pugi::xml_node element, ControlElement *object);
551  void WriteEditorialElement(pugi::xml_node element, EditorialElement *object);
552  void WriteLayerElement(pugi::xml_node element, LayerElement *object);
553  void WriteTextLayoutElement(pugi::xml_node element, TextLayoutElement *object);
554  void WriteRunningElement(pugi::xml_node element, RunningElement *object);
555  void WriteScoreDefElement(pugi::xml_node element, ScoreDefElement *object);
556  void WriteSystemElement(pugi::xml_node element, SystemElement *object);
557  void WriteTextElement(pugi::xml_node element, TextElement *object);
558  //
559  void WriteAltSymInterface(pugi::xml_node currentNode, AltSymInterface *interface);
560  void WriteAreaPosInterface(pugi::xml_node currentNode, AreaPosInterface *interface);
561  void WriteDurationInterface(pugi::xml_node currentNode, DurationInterface *interface);
562  void WriteLinkingInterface(pugi::xml_node currentNode, LinkingInterface *interface);
563  void WriteFacsimileInterface(pugi::xml_node element, FacsimileInterface *interface);
564  void WriteOffsetInterface(pugi::xml_node currentNode, OffsetInterface *interface);
565  void WriteOffsetSpanningInterface(pugi::xml_node currentNode, OffsetSpanningInterface *interface);
566  void WritePitchInterface(pugi::xml_node currentNode, PitchInterface *interface);
567  void WritePlistInterface(pugi::xml_node currentNode, PlistInterface *interface);
568  void WritePositionInterface(pugi::xml_node currentNode, PositionInterface *interface);
569  void WriteScoreDefInterface(pugi::xml_node currentNode, ScoreDefInterface *interface);
570  void WriteTextDirInterface(pugi::xml_node currentNode, TextDirInterface *interface);
571  void WriteTimePointInterface(pugi::xml_node currentNode, TimePointInterface *interface);
572  void WriteTimeSpanningInterface(pugi::xml_node currentNode, TimeSpanningInterface *interface);
574 
580  std::u32string EscapeSMuFL(std::u32string data);
581 
584  std::string IDToMeiStr(Object *element);
585  std::string DocTypeToStr(DocType type);
587 
588 public:
589  //
590 protected:
592  pugi::xml_node m_currentNode;
594  std::list<pugi::xml_node> m_nodeStack;
595 
596 private:
598  int m_indent;
600  bool m_scoreBasedMEI;
602  bool m_basic;
604  bool m_serializing;
605 
607  pugi::xml_node m_mei;
609  std::stack<Object *> m_boundaries;
611  std::deque<Object *> m_objectStack;
612 
615  bool m_hasFilter;
616  MatchLocation m_filterMatchLocation;
617  Object *m_firstFilterMatch;
618  int m_firstPage;
619  int m_currentPage;
620  int m_lastPage;
621  std::string m_firstMeasureID;
622  std::string m_lastMeasureID;
623  RangeMatchLocation m_measureFilterMatchLocation;
624  std::string m_mdivID;
625  MatchLocation m_mdivFilterMatchLocation;
627 
628  bool m_ignoreHeader;
629  bool m_removeIds;
630  SetOfConstObjects m_referredObjects;
631 };
632 
633 //----------------------------------------------------------------------------
634 // MEIOutputExtended
635 //----------------------------------------------------------------------------
636 
640 class MEIOutputExtended : public MEIOutput {
641 public:
644  MEIOutputExtended(Doc *doc);
646 
647  jsonxx::Object ExportScoreDef();
648 
649 private:
650  jsonxx::Object ToJson(const pugi::xml_document &doc);
651 };
652 
653 //----------------------------------------------------------------------------
654 // MEIInput
655 //----------------------------------------------------------------------------
656 
662 class MEIInput : public Input {
663 public:
664  // constructors and destructors
665  MEIInput(Doc *doc);
666  virtual ~MEIInput();
667 
668  bool Import(const std::string &mei) override;
669 
673  void SetDeserializing(bool deserializing) { m_deserializing = deserializing; }
674 
675 private:
676  bool ReadDoc(pugi::xml_node root);
677  bool ReadIncipits(pugi::xml_node root);
678 
680  bool ReadMdiv(Object *parent, pugi::xml_node parentNode, bool isVisible);
681  bool ReadMdivChildren(Object *parent, pugi::xml_node parentNode, bool isVisible);
682  bool ReadScore(Object *parent, pugi::xml_node parentNode);
683  bool ReadScoreScoreDef(Object *parent, pugi::xml_node parentNode);
685 
690  bool ReadPages(Object *parent, pugi::xml_node parentNode);
691  bool ReadPage(Object *parent, pugi::xml_node parentNode);
692  bool ReadPageChildren(Object *parent, pugi::xml_node parentNode);
693  bool ReadPageMilestoneEnd(Object *parent, pugi::xml_node milestoneEnd);
694  bool ReadSystem(Object *parent, pugi::xml_node system);
695  bool ReadSystemChildren(Object *parent, pugi::xml_node parentNode);
696  bool ReadSystemMilestoneEnd(Object *parent, pugi::xml_node milestoneEnd);
698 
703  bool ReadSection(Object *parent, pugi::xml_node section);
704  bool ReadSectionChildren(Object *parent, pugi::xml_node parentNode);
705  bool ReadEnding(Object *parent, pugi::xml_node ending);
706  bool ReadExpansion(Object *parent, pugi::xml_node expansion);
707  bool ReadPb(Object *parent, pugi::xml_node pb);
708  bool ReadSb(Object *parent, pugi::xml_node sb);
710 
720  bool ReadScoreDef(Object *parent, pugi::xml_node scoreDef);
721  bool ReadScoreDefChildren(Object *parent, pugi::xml_node parentNode);
722  bool ReadGrpSym(Object *parent, pugi::xml_node grpSym);
723  bool ReadPgFoot(Object *parent, pugi::xml_node pgFoot);
724  bool ReadPgHead(Object *parent, pugi::xml_node pgHead);
725  bool ReadDiv(Object *parent, pugi::xml_node div);
726  bool ReadRunningChildren(Object *parent, pugi::xml_node parentNode, Object *filter = NULL);
727  bool ReadStaffGrp(Object *parent, pugi::xml_node staffGrp);
728  bool ReadStaffGrpChildren(Object *parent, pugi::xml_node parentNode);
729  bool ReadStaffDef(Object *parent, pugi::xml_node staffDef);
730  bool ReadStaffDefChildren(Object *parent, pugi::xml_node parentNode);
731  bool ReadInstrDef(Object *parent, pugi::xml_node instrDef);
732  bool ReadLabel(Object *parent, pugi::xml_node label);
733  bool ReadLabelAbbr(Object *parent, pugi::xml_node labelAbbr);
734  bool ReadTuning(Object *parent, pugi::xml_node tuning);
735  bool ReadOssia(Object *parent, pugi::xml_node ossia);
736  bool ReadTuningChildren(Object *parent, pugi::xml_node parentNode);
737  bool ReadCourse(Object *parent, pugi::xml_node course);
738  bool ReadSymbolTable(Object *parent, pugi::xml_node parentNode);
739  bool ReadMeasure(Object *parent, pugi::xml_node measure);
740  bool ReadMeasureChildren(Object *parent, pugi::xml_node parentNode);
741  bool ReadMeterSigGrp(Object *parent, pugi::xml_node meterSigGrp);
742  bool ReadMeterSigGrpChildren(Object *parent, pugi::xml_node parentNode);
743  bool ReadFb(Object *parent, pugi::xml_node fb);
744  bool ReadFbChildren(Object *parent, pugi::xml_node parentNode);
745  bool ReadNum(Object *parent, pugi::xml_node parentNode);
746  bool ReadStaff(Object *parent, pugi::xml_node staff);
747  bool ReadOStaff(Object *parent, pugi::xml_node oStaff);
748  bool ReadStaffChildren(Object *parent, pugi::xml_node parentNode);
749  bool ReadLayer(Object *parent, pugi::xml_node layer);
750  bool ReadLayerDef(Object *parent, pugi::xml_node layerDef);
751  bool ReadLayerDefChildren(Object *parent, pugi::xml_node parentNode);
752  bool ReadLayerChildren(Object *parent, pugi::xml_node parentNode, Object *filter = NULL);
753  bool ReadTextChildren(Object *parent, pugi::xml_node parentNode, Object *filter = NULL);
754  bool ReadSymbolDefChildren(Object *parent, pugi::xml_node parentNode, Object *filter = NULL);
756 
761  bool ReadAccid(Object *parent, pugi::xml_node accid);
762  bool ReadArtic(Object *parent, pugi::xml_node artic);
763  bool ReadBarLine(Object *parent, pugi::xml_node barLine);
764  bool ReadBeam(Object *parent, pugi::xml_node beam);
765  bool ReadBeatRpt(Object *parent, pugi::xml_node beatRpt);
766  bool ReadBTrem(Object *parent, pugi::xml_node bTrem);
767  bool ReadChord(Object *parent, pugi::xml_node chord);
768  bool ReadClef(Object *parent, pugi::xml_node clef);
769  bool ReadCustos(Object *parent, pugi::xml_node custos);
770  bool ReadDivLine(Object *parent, pugi::xml_node divLine);
771  bool ReadDot(Object *parent, pugi::xml_node dot);
772  bool ReadEpisema(Object *parent, pugi::xml_node episema);
773  bool ReadFTrem(Object *parent, pugi::xml_node fTrem);
774  bool ReadGenericLayerElement(Object *parent, pugi::xml_node element);
775  bool ReadGraceGrp(Object *parent, pugi::xml_node graceGrp);
776  bool ReadHalfmRpt(Object *parent, pugi::xml_node halfmRpt);
777  bool ReadKeyAccid(Object *parent, pugi::xml_node keyAccid);
778  bool ReadKeySig(Object *parent, pugi::xml_node keySig);
779  bool ReadLigature(Object *parent, pugi::xml_node ligature);
780  bool ReadLiquescent(Object *parent, pugi::xml_node liquescent);
781  bool ReadMensur(Object *parent, pugi::xml_node mensur);
782  bool ReadMeterSig(Object *parent, pugi::xml_node meterSig);
783  bool ReadMRest(Object *parent, pugi::xml_node mRest);
784  bool ReadMRpt(Object *parent, pugi::xml_node mRpt);
785  bool ReadMRpt2(Object *parent, pugi::xml_node mRpt2);
786  bool ReadMSpace(Object *parent, pugi::xml_node mSpace);
787  bool ReadMultiRest(Object *parent, pugi::xml_node multiRest);
788  bool ReadMultiRpt(Object *parent, pugi::xml_node multiRpt);
789  bool ReadNc(Object *parent, pugi::xml_node nc);
790  bool ReadNeume(Object *parent, pugi::xml_node note);
791  bool ReadNote(Object *parent, pugi::xml_node note);
792  bool ReadOriscus(Object *parent, pugi::xml_node oriscus);
793  bool ReadPlica(Object *parent, pugi::xml_node plica);
794  bool ReadProport(Object *parent, pugi::xml_node proport);
795  bool ReadQuilisma(Object *parent, pugi::xml_node quilisma);
796  bool ReadRefrain(Object *parent, pugi::xml_node refrain);
797  bool ReadRest(Object *parent, pugi::xml_node rest);
798  bool ReadSpace(Object *parent, pugi::xml_node space);
799  bool ReadStem(Object *parent, pugi::xml_node stem);
800  bool ReadStrophicus(Object *parent, pugi::xml_node strophicus);
801  bool ReadSyl(Object *parent, pugi::xml_node syl);
802  bool ReadSyllable(Object *parent, pugi::xml_node syllable);
803  bool ReadTabDurSym(Object *parent, pugi::xml_node tabDurSym);
804  bool ReadTabGrp(Object *parent, pugi::xml_node tabGrp);
805  bool ReadTuplet(Object *parent, pugi::xml_node tuplet);
806  bool ReadVolta(Object *parent, pugi::xml_node volta);
807  bool ReadVerse(Object *parent, pugi::xml_node verse);
808  void ReadLyricElement(pugi::xml_node element, LyricElement *lyricElement);
810 
815  bool ReadAnchoredText(Object *parent, pugi::xml_node anchoredText);
816  bool ReadArpeg(Object *parent, pugi::xml_node arpeg);
817  bool ReadBeamSpan(Object *parent, pugi::xml_node beamSpan);
818  bool ReadBracketSpan(Object *parent, pugi::xml_node bracketSpan);
819  bool ReadBreath(Object *parent, pugi::xml_node breath);
820  bool ReadCaesura(Object *parent, pugi::xml_node caesura);
821  bool ReadCpMark(Object *parent, pugi::xml_node cpMark);
822  bool ReadDir(Object *parent, pugi::xml_node dir, bool isStageDir = false);
823  bool ReadDynam(Object *parent, pugi::xml_node dynam);
824  bool ReadFermata(Object *parent, pugi::xml_node fermata);
825  bool ReadFing(Object *parent, pugi::xml_node fing);
826  bool ReadGliss(Object *parent, pugi::xml_node gliss);
827  bool ReadHairpin(Object *parent, pugi::xml_node hairpin);
828  bool ReadHarm(Object *parent, pugi::xml_node harm);
829  bool ReadLv(Object *parent, pugi::xml_node lv);
830  bool ReadMNum(Object *parent, pugi::xml_node mnum);
831  bool ReadMordent(Object *parent, pugi::xml_node mordent);
832  bool ReadOctave(Object *parent, pugi::xml_node octave);
833  bool ReadOrnam(Object *parent, pugi::xml_node ornam);
834  bool ReadPedal(Object *parent, pugi::xml_node pedal);
835  bool ReadPhrase(Object *parent, pugi::xml_node phrase);
836  bool ReadPitchInflection(Object *parent, pugi::xml_node pitchInflection);
837  bool ReadRepeatMark(Object *parent, pugi::xml_node repeatMark);
838  bool ReadReh(Object *parent, pugi::xml_node reh);
839  bool ReadSlur(Object *parent, pugi::xml_node slur);
840  bool ReadTempo(Object *parent, pugi::xml_node tempo);
841  bool ReadTie(Object *parent, pugi::xml_node tie);
842  bool ReadTrill(Object *parent, pugi::xml_node trill);
843  bool ReadTurn(Object *parent, pugi::xml_node turn);
845 
850  bool ReadF(Object *parent, pugi::xml_node f);
851  bool ReadFig(Object *parent, pugi::xml_node fig);
852  bool ReadLb(Object *parent, pugi::xml_node lb);
853  bool ReadRend(Object *parent, pugi::xml_node rend);
854  bool ReadSvg(Object *parent, pugi::xml_node svg);
855  bool ReadSymbol(Object *parent, pugi::xml_node symbol);
856  bool ReadSymbolDef(Object *parent, pugi::xml_node symbolDef);
857  bool ReadText(Object *parent, pugi::xml_node text, bool trimLeft, bool trimRight);
859 
865  bool ReadEditorialElement(Object *parent, pugi::xml_node app, EditorialLevel level, Object *filter = NULL);
866  bool ReadAbbr(Object *parent, pugi::xml_node abbr, EditorialLevel level, Object *filter = NULL);
867  bool ReadAdd(Object *parent, pugi::xml_node add, EditorialLevel level, Object *filter = NULL);
868  bool ReadAnnot(Object *parent, pugi::xml_node annot);
869  bool ReadAnnotScore(Object *parent, pugi::xml_node annot);
870  bool ReadApp(Object *parent, pugi::xml_node app, EditorialLevel level, Object *filter = NULL);
871  bool ReadAppChildren(Object *parent, pugi::xml_node parentNode, EditorialLevel level, Object *filter = NULL);
872  bool ReadChoice(Object *parent, pugi::xml_node choice, EditorialLevel level, Object *filter = NULL);
873  bool ReadChoiceChildren(Object *parent, pugi::xml_node parentNode, EditorialLevel level, Object *filter = NULL);
874  bool ReadCorr(Object *parent, pugi::xml_node corr, EditorialLevel level, Object *filter = NULL);
875  bool ReadDamage(Object *parent, pugi::xml_node damage, EditorialLevel level, Object *filter = NULL);
876  bool ReadDel(Object *parent, pugi::xml_node del, EditorialLevel level, Object *filter = NULL);
877  bool ReadExpan(Object *parent, pugi::xml_node expan, EditorialLevel level, Object *filter = NULL);
878  bool ReadLem(Object *parent, pugi::xml_node lem, EditorialLevel level, Object *filter = NULL);
879  bool ReadOrig(Object *parent, pugi::xml_node orig, EditorialLevel level, Object *filter = NULL);
880  bool ReadRdg(Object *parent, pugi::xml_node rdg, EditorialLevel level, Object *filter = NULL);
881  bool ReadRef(Object *parent, pugi::xml_node ref, EditorialLevel level, Object *filter = NULL);
882  bool ReadReg(Object *parent, pugi::xml_node reg, EditorialLevel level, Object *filter = NULL);
883  bool ReadRestore(Object *parent, pugi::xml_node restore, EditorialLevel level, Object *filter = NULL);
884  bool ReadSic(Object *parent, pugi::xml_node sic, EditorialLevel level, Object *filter = NULL);
885  bool ReadSubst(Object *parent, pugi::xml_node subst, EditorialLevel level, Object *filter = NULL);
886  bool ReadSubstChildren(Object *parent, pugi::xml_node parentNode, EditorialLevel level, Object *filter = NULL);
887  bool ReadSupplied(Object *parent, pugi::xml_node supplied, EditorialLevel level, Object *filter = NULL);
888  bool ReadUnclear(Object *parent, pugi::xml_node unclear, EditorialLevel level, Object *filter = NULL);
889  bool ReadEditorialChildren(Object *parent, pugi::xml_node supplied, EditorialLevel level, Object *filter = NULL);
891 
896  bool ReadControlElement(pugi::xml_node element, ControlElement *object);
897  bool ReadEditorialElement(pugi::xml_node element, EditorialElement *object);
898  bool ReadLayerElement(pugi::xml_node element, LayerElement *object);
899  bool ReadTextLayoutElement(pugi::xml_node element, TextLayoutElement *object);
900  bool ReadRunningElement(pugi::xml_node element, RunningElement *object);
901  bool ReadScoreDefElement(pugi::xml_node element, ScoreDefElement *object);
902  bool ReadSystemElement(pugi::xml_node element, SystemElement *object);
903  bool ReadTextElement(pugi::xml_node element, TextElement *object);
904 
905  bool ReadAltSymInterface(pugi::xml_node element, AltSymInterface *interface);
906  bool ReadAreaPosInterface(pugi::xml_node element, AreaPosInterface *interface);
907  bool ReadDurationInterface(pugi::xml_node element, DurationInterface *interface);
908  bool ReadLinkingInterface(pugi::xml_node element, LinkingInterface *interface);
909  bool ReadFacsimileInterface(pugi::xml_node element, FacsimileInterface *interface);
910  bool ReadOffsetInterface(pugi::xml_node element, OffsetInterface *interface);
911  bool ReadOffsetSpanningInterface(pugi::xml_node element, OffsetSpanningInterface *interface);
912  bool ReadPitchInterface(pugi::xml_node element, PitchInterface *interface);
913  bool ReadPlistInterface(pugi::xml_node element, PlistInterface *interface);
914  bool ReadPositionInterface(pugi::xml_node element, PositionInterface *interface);
915  bool ReadScoreDefInterface(pugi::xml_node element, ScoreDefInterface *interface);
916  bool ReadTextDirInterface(pugi::xml_node element, TextDirInterface *interface);
917  bool ReadTimePointInterface(pugi::xml_node element, TimePointInterface *interface);
918  bool ReadTimeSpanningInterface(pugi::xml_node element, TimeSpanningInterface *interface);
920 
925  bool ReadFacsimile(Doc *doc, pugi::xml_node facsimile);
926  bool ReadGraphic(Object *parent, pugi::xml_node graphic);
927  bool ReadSurface(Facsimile *parent, pugi::xml_node surface);
928  bool ReadTupletSpanAsTuplet(Measure *measure, pugi::xml_node tupletSpan);
929  bool ReadZone(Surface *parent, pugi::xml_node zone);
931 
935  void ReadUnsupportedAttr(pugi::xml_node element, Object *object);
936 
940  bool IsAnnotScore(pugi::xml_node element);
941 
945  bool IsEditorialElementName(std::string elementName);
946 
950  void NormalizeAttributes(pugi::xml_node &xmlElement);
951 
957  bool ReadScoreBasedMei(pugi::xml_node element, Score *parent);
958 
963  void SetMeiID(pugi::xml_node element, Object *object);
964  DocType StrToDocType(std::string type);
965  std::u32string LeftTrim(std::u32string str);
966  std::u32string RightTrim(std::u32string str);
967  bool ReadXMLComment(Object *object, pugi::xml_node element);
969 
974  // to MEI 5.0.0
975  void UpgradeKeySigTo_5_0(pugi::xml_node keySig);
976  void UpgradePageTo_5_0(Page *page);
977  void UpgradePgHeadFootTo_5_0(pugi::xml_node element);
978  void UpgradeMeasureTo_5_0(pugi::xml_node measure);
979  void UpgradeMeterSigTo_5_0(pugi::xml_node meterSig, MeterSig *vrvMeterSig);
980  void UpgradeScoreDefElementTo_5_0(pugi::xml_node scoreDefElement);
981  void UpgradeStaffTo_5_0(pugi::xml_node staff);
982  void UpgradeLayerElementTo_5_0(pugi::xml_node element);
983  void UpgradeRendTo_5_0(pugi::xml_node element);
984  // to MEI 4.0.0
985  void UpgradeBeatRptTo_4_0_0(pugi::xml_node beatRpt, BeatRpt *vrvBeatRpt);
986  void UpgradeDurGesTo_4_0_0(pugi::xml_node element, DurationInterface *interface);
987  void UpgradeFTremTo_4_0_0(pugi::xml_node fTrem, FTrem *vrvFTrem);
988  void UpgradeMensurTo_5_0(pugi::xml_node mensur, Mensur *vrvMensur);
989  void UpgradeMordentTo_4_0_0(pugi::xml_node mordent, Mordent *vrvMordent);
990  void UpgradeScoreDefElementTo_4_0_0(pugi::xml_node scoreDefElement, ScoreDefElement *vrvScoreDefElement);
991  void UpgradeStaffDefTo_4_0_0(pugi::xml_node staffDef, StaffDef *vrvStaffDef);
992  void UpgradeStaffGrpTo_4_0_0(pugi::xml_node staffGrp, StaffGrp *vrvStaffGrp);
993  void UpgradeTurnTo_4_0_0(pugi::xml_node turn, Turn *vrvTurn);
994  // to MEI 3.0.0 (Page-Based MEI only)
995  void UpgradeMeasureTo_3_0_0(Measure *measure, System *system);
996  void UpgradePageTo_3_0_0(Page *page, Doc *doc);
998 
1003  void ReadAccidAttr(pugi::xml_node node, Object *object);
1005 
1006 public:
1007  //
1008 private:
1012  std::string m_filename;
1013 
1017  meiVersion_MEIVERSION m_meiversion;
1018 
1022  bool m_readingScoreBased;
1023 
1027  bool m_hasScoreDef;
1028 
1032  bool IsAllowed(std::string element, Object *filterParent);
1033 
1038  pugi::xml_node m_selectedMdiv;
1039 
1043  std::string m_comment;
1044 
1046  bool m_deserializing;
1047 
1048  //----------------//
1049  // Static members //
1050  //----------------//
1051 
1055  static const std::vector<std::string> s_editorialElementNames;
1056 };
1057 
1058 //----------------------------------------------------------------------------
1059 // MEIInputExtended
1060 //----------------------------------------------------------------------------
1061 
1065 class MEIInputExtended : public MEIInput {
1066 public:
1069  MEIInputExtended(Doc *doc);
1071 
1072  void ImportScoreDef(const jsonxx::Object &scoreDef);
1073 
1074 private:
1075  pugi::xml_document FromJson(const jsonxx::Object &json);
1076 };
1077 
1078 } // namespace vrv
1079 
1080 #endif
Definition: abbr.h:20
This class models the MEI <accid> element.
Definition: accid.h:41
Definition: add.h:20
This class is an interface for elements having a @altsym It is not an abstract class but should not b...
Definition: altsyminterface.h:30
This class is an interface for <anchoredText> elements at the measure level.
Definition: anchoredtext.h:25
This class models the MEI <annot> element.
Definition: annot.h:23
This class models the MEI <annot> element where @type is score.
Definition: annotscore.h:24
Definition: app.h:19
This class is an interface for elements implementing vertically and horizontally positionned elements...
Definition: areaposinterface.h:26
This class models the MEI <arpeg> element.
Definition: arpeg.h:31
Definition: artic.h:31
This class models the MEI <bTrem> element.
Definition: btrem.h:27
This class models the MEI <barLine> element.
Definition: barline.h:34
Definition: beam.h:284
This class models the MEI <beamSpan> element.
Definition: beamspan.h:36
This class models the MEI <beatRpt> element.
Definition: beatrpt.h:25
This class models the MEI <bracketSpan> element.
Definition: bracketspan.h:28
This class models the MEI <breath> element.
Definition: breath.h:24
This class models the MEI <caesura> element.
Definition: caesura.h:29
Definition: choice.h:20
This class represents a collection of notes in the same layer with the same onset time.
Definition: chord.h:44
This class models the MEI <clef> element.
Definition: clef.h:41
This class represents elements appearing within a measure.
Definition: controlelement.h:35
Definition: corr.h:20
This class models the MEI <course> element.
Definition: course.h:23
This class models the MEI <cpMark> element.
Definition: cpmark.h:26
Definition: custos.h:31
Definition: damage.h:20
Definition: del.h:20
This class models the MEI <dir> element.
Definition: dir.h:33
This class represents an MEI Div.
Definition: div.h:24
This class models the MEI <divLine> element.
Definition: divline.h:33
This class is a hold the data and corresponds to the model of a MVC design pattern.
Definition: doc.h:41
Definition: dot.h:23
This class is an interface for elements with duration, such as notes and rests.
Definition: durationinterface.h:39
Definition: dynam.h:33
This class is a base class for the editorial element containing musical content, for example <rgd> or...
Definition: editorial.h:43
This class represents a MEI ending.
Definition: ending.h:33
Definition: episema.h:29
Definition: expan.h:20
This class represents a MEI expansion.
Definition: expansion.h:26
This class models the MEI <f> element.
Definition: f.h:24
This class models the MEI <fTrem> element.
Definition: ftrem.h:25
Implements the facsimile element in MEI.
Definition: facsimile.h:31
Definition: facsimileinterface.h:27
This class models the MEI <fb> element.
Definition: fb.h:23
This class models the MEI <fermata> element.
Definition: fermata.h:32
This class models the MEI <fig> element.
Definition: fig.h:23
This class models the MEI <fing> element.
Definition: fing.h:25
This class holds generic elements existing within MEI <layer> but not supported by Verovio.
Definition: genericlayerelement.h:22
This class models the MEI <gliss> element.
Definition: gliss.h:28
Definition: gracegrp.h:20
Implements the graphic element in MEI.
Definition: graphic.h:30
This class represents a MEI grpSym.
Definition: grpsym.h:30
This class models the MEI <hairpin> element.
Definition: hairpin.h:32
This class models the MEI <halfmRpt> element.
Definition: halfmrpt.h:27
This class models the MEI <harm> element.
Definition: harm.h:32
This class is a base class for input classes.
Definition: iobase.h:73
This class models the MEI <instrDef> element.
Definition: instrdef.h:28
This class models the MEI <keyAccid> element.
Definition: keyaccid.h:33
This class models the MEI <keySig> element.
Definition: keysig.h:51
This class models the MEI <labelAbbr> element.
Definition: labelabbr.h:22
This class models the MEI <label> element.
Definition: label.h:22
Definition: layerdef.h:18
This class is a base class for the Layer (<layer>) content.
Definition: layerelement.h:51
This class represents a layer in a laid-out score (Doc).
Definition: layer.h:40
This class models the MEI <lb>
Definition: lb.h:23
Definition: lem.h:20
This class represents a collection of notes in the same layer with successive onset times,...
Definition: ligature.h:28
This class is an interface for elements having a link It is not an abstract class but should not be i...
Definition: linkinginterface.h:31
Definition: liquescent.h:28
This class models the MEI <lv> element.
Definition: lv.h:22
Shared implementation for note-attached verse and refrain lyrics.
Definition: lyricelement.h:33
Extended MEIInput for partial import.
Definition: iomei.h:1065
This class is a file input stream for reading MEI files.
Definition: iomei.h:662
void SetDeserializing(bool deserializing)
Setter for the page-based deserialization flag (default is false).
Definition: iomei.h:673
Extended MEIOutput for partial exports.
Definition: iomei.h:640
This class is a file output stream for writing MEI files.
Definition: iomei.h:202
void SetSerializing(bool serializing)
Setter for the page-based serialization flag (default is false)
Definition: iomei.h:278
void SetRemoveIds(bool removeIds)
Setter for remove ids flag for the MEI output (default is false)
Definition: iomei.h:283
std::list< pugi::xml_node > m_nodeStack
Xml node stack.
Definition: iomei.h:594
void SetIndent(int indent)
Setter for indent for the MEI output (default is 3, -1 for tabs)
Definition: iomei.h:268
void SetIgnoreHeader(bool ignoreHeader)
Setter for ignore header flag for the MEI output (default is false)
Definition: iomei.h:273
pugi::xml_node m_currentNode
Current xml element.
Definition: iomei.h:592
bool Skip(Object *object) const override
Method for skipping under certain circumstances.
std::string Export() override
The main method for exporting the file to MEI.
bool HasFilter() const
Score based filtering by measure, page or mdiv.
bool WriteObject(Object *object) override
The main method for writing objects.
bool WriteObjectEnd(Object *object) override
Dummy object method that must be overridden in child class.
This class models the MEI <mNum> element.
Definition: mnum.h:31
This class models the MEI <mRest> element.
Definition: mrest.h:36
This class models the MEI <mRpt2> element.
Definition: mrpt2.h:26
This class models the MEI <mRpt> element.
Definition: mrpt.h:26
This class models the MEI <space> element.
Definition: mspace.h:22
This class represent a <mdiv> in page-based MEI.
Definition: mdiv.h:29
This class represents a measure in a page-based score (Doc).
Definition: measure.h:46
This class models the MEI <mensur> element.
Definition: mensur.h:34
This class represents a MEI meterSigGrp.
Definition: metersiggrp.h:32
This class models the MEI <meterSig> element.
Definition: metersig.h:34
This class models the MEI <mordent> element.
Definition: mordent.h:33
This class models the MEI <multiRest> element.
Definition: multirest.h:32
This class models the MEI <multiRpt> element.
Definition: multirpt.h:25
This class models the MEI <nc> element.
Definition: nc.h:43
This class models the MEI <neume> element.
Definition: neume.h:60
This class models the MEI <note> element.
Definition: note.h:69
This class models the MEI <num> element.
Definition: num.h:24
This class represents a basic object.
Definition: object.h:66
This class models the MEI <octave> element.
Definition: octave.h:31
This class is an interface for elements having a single visual offset, such as arpeg,...
Definition: offsetinterface.h:28
This class is an interface for elements having spanning visual offsets, such as slur,...
Definition: offsetinterface.h:72
Definition: orig.h:20
Definition: oriscus.h:28
This class models the MEI <ornam> element.
Definition: ornam.h:31
This class represents an ossia.
Definition: ossia.h:28
This class is a base class for output classes.
Definition: iobase.h:31
This class represents elements appearing within a page.
Definition: pageelement.h:25
This class represents a page in a laid-out score (Doc).
Definition: page.h:31
This class models an end milestone element and has no MEI equivalent.
Definition: pagemilestone.h:26
This class represent a <pages> in page-based MEI.
Definition: pages.h:27
This class represents a MEI pb in score-based MEI.
Definition: pb.h:25
This class models the MEI <pedal> element.
Definition: pedal.h:34
This class represents an MEI pgFoot.
Definition: pgfoot.h:22
This class represents an MEI pgHead.
Definition: pghead.h:22
Definition: phrase.h:19
This class models the MEI <dir> element.
Definition: pitchinflection.h:23
This class is an interface for elements with pitch, such as notes and neumes.
Definition: pitchinterface.h:28
Definition: plica.h:20
This class is an interface for elements having a single time point, such as tempo,...
Definition: plistinterface.h:29
This class is an interface for elements with a position on the staff, such as rests.
Definition: positioninterface.h:30
This class models the MEI <proport> element.
Definition: proport.h:23
Definition: quilisma.h:28
Definition: rdg.h:20
This class models the MEI <ref> element.
Definition: ref.h:23
Recurring note-attached lyrics, such as a chorus.
Definition: refrain.h:19
Definition: reg.h:20
This class models the MEI <reh> element.
Definition: reh.h:30
This class models the MEI <rend> element.
Definition: rend.h:33
This class models the MEI <ornam> element.
Definition: repeatmark.h:32
This class models the MEI <rest> element.
Definition: rest.h:49
Definition: restore.h:20
This class represents running elements (headers and footers).
Definition: runningelement.h:28
This class represents a MEI sb in score-based MEI.
Definition: sb.h:25
This class is a base class for MEI scoreDef or staffDef elements.
Definition: scoredef.h:43
This class represents a MEI scoreDef.
Definition: scoredef.h:136
This class is an interface for elements implementing score attributes, such as <scoreDef>,...
Definition: scoredefinterface.h:42
This class represent a <score> in MEI.
Definition: score.h:30
This class represents a MEI section.
Definition: section.h:28
Definition: sic.h:20
Definition: slur.h:59
This class models the MEI <space> element.
Definition: space.h:23
This class represents a MEI staffDef.
Definition: staffdef.h:37
This class represents a MEI staffGrp.
Definition: staffgrp.h:39
This class represents a staff in a laid-out score (Doc).
Definition: staff.h:110
This class models a stem as a layer element part and as MEI <stem> element.
Definition: stem.h:27
Definition: strophicus.h:27
Definition: subst.h:22
Definition: supplied.h:20
Implements the surface element in MEI.
Definition: surface.h:30
Definition: svg.h:20
Syl is a TimeSpanningInterface for managing syllable connectors.
Definition: syl.h:38
This class models the MEI <mensur> element.
Definition: syllable.h:25
Definition: symboldef.h:20
This class models the MEI <symbol> element.
Definition: symbol.h:25
Definition: symboltable.h:20
This class represents elements appearing within a measure.
Definition: systemelement.h:26
This class represents a system in a laid-out score (Doc).
Definition: system.h:36
This class models an end milestone element at the system level.
Definition: systemmilestone.h:28
This class models the MEI <tabDurSym> element.
Definition: tabdursym.h:29
This class models the MEI <tabGrp> element.
Definition: tabgrp.h:24
This class is an interface for <tempo> elements at the measure level.
Definition: tempo.h:33
This class is an interface for elements implementing a text directive, such as <dir>,...
Definition: textdirinterface.h:26
Definition: textelement.h:22
This class models CDATA (text)
Definition: text.h:23
This class represents a text element featuring horizontal and vertical layout.
Definition: textlayoutelement.h:24
This class models the MEI <tie> element.
Definition: tie.h:32
This class is an interface for elements having a single time point, such as tempo,...
Definition: timeinterface.h:39
This class is an interface for spanning elements, such as slur, hairpin, etc.
Definition: timeinterface.h:145
This class models the MEI <trill> element.
Definition: trill.h:35
This class models the MEI <tuning> element.
Definition: tuning.h:23
Definition: tuplet.h:33
This class models the MEI <turn> element.
Definition: turn.h:33
Definition: unclear.h:20
Definition: verse.h:21
Sung text for a specific iteration of a repeated section of music.
Definition: volta.h:26
Implements the zone element in MEI.
Definition: zone.h:30