public ChordSymbol(Voice voice, int msDuration, int absMsPosition, MNX.Common.Event mnxEventDef, double fontSize) : base(voice, msDuration, absMsPosition, mnxEventDef.MNXDurationSymbol, fontSize) { // note that all chord symbols have a stem! // Even cautionary, semibreves and breves need a stem direction in order to set chord Metrics correctly. Stem = new Stem(this); IsBeamStart = mnxEventDef.IsBeamStart; IsBeamRestart = mnxEventDef.IsBeamRestart; IsBeamEnd = mnxEventDef.IsBeamEnd; OctaveShift = mnxEventDef.OctaveShift; EndOctaveShift = mnxEventDef.EndOctaveShift; TicksPosInScore = mnxEventDef.TicksPosInScore; TicksDuration = mnxEventDef.TicksDuration; SlurDefs = mnxEventDef.SlurDefs; // can be null TupletDefs = mnxEventDef.TupletDefs; // can be null EventID = mnxEventDef.ID; // Beam is currently null. Create when necessary. }
public OutputChordSymbol(Voice voice, MNX.Common.Event mnxEventDef, int absMsPosition, PageFormat pageFormat) : base(voice, mnxEventDef.MsDuration, absMsPosition, mnxEventDef, pageFormat.MusicFontHeight) { SetHeads(mnxEventDef); }
public RestSymbol(Voice voice, int msDuration, int absMsPosition, MNX.Common.Event mnxEventDef, double fontSize) : base(voice, msDuration, absMsPosition, mnxEventDef.MNXDurationSymbol, fontSize) { TupletDefs = mnxEventDef.TupletDefs; // can be null }