public TimeSignature(Voice voice, MNX.Common.TimeSignature mnxTimeSigDef, double fontHeight) : base(voice) { Signature = mnxTimeSigDef.Signature; FontHeight = fontHeight; }
public SequenceDirections(XmlReader r, TimeSignature currentTimeSignature) { M.Assert(r.Name == "directions"); M.ReadToXmlElementTag(r, "clef", "cresc", "dim", "dynamics", "expression", "instruction", "octave-shift", "wedge", "text-block"); while (r.Name == "clef" || r.Name == "cresc" || r.Name == "dim" || r.Name == "dynamics" || r.Name == "expression" || r.Name == "instruction" || r.Name == "octave-shift" || r.Name == "wedge" || r.Name == "text-block") { if (r.NodeType != XmlNodeType.EndElement) { switch (r.Name) { case "clef": Clef = new Clef(r); Components.Add(Clef); break; case "cresc": // TODO break; case "dim": // TODO break; case "dynamics": // TODO break; case "expression": // TODO break; case "instruction": // TODO break; case "octave-shift": OctaveShift = new OctaveShift(r); Components.Add(OctaveShift); break; case "wedge": // TODO break; case "text-block": TextBlock = new TextBlock(r); Components.Add(TextBlock); break; } } M.ReadToXmlElementTag(r, "clef", "cresc", "dim", "dynamics", "expression", "instruction", "octave-shift", "wedge", "text-block", "directions"); } if (Repeats != null) { SetDefaultRepeatPositions(Repeats, currentTimeSignature); } M.Assert(r.Name == "directions"); // end of "directions" }
public GlobalDirections(TimeSignature currentTimeSignature) { CurrentTimeSignature = currentTimeSignature; // Components is an empty list }