Exemple #1
0
        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);
 }
Exemple #3
0
 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
 }