예제 #1
0
파일: Stem.cs 프로젝트: suvjunmd/Moritz
 public Stem(ChordSymbol chordSymbol, Stem stem)
 {
     Chord = chordSymbol;
     if (stem != null)
     {
         Direction = stem.Direction;
     }
 }
예제 #2
0
파일: Stem.cs 프로젝트: suvjunmd/Moritz
 public Stem(ChordSymbol chordSymbol, Stem stem)
 {
     Chord = chordSymbol;
     if(stem != null)
     {
         Direction = stem.Direction;
     }
 }
예제 #3
0
        public ChordSymbol(Voice voice, int msDuration, int absMsPosition, int minimumCrotchetDurationMS, bool beamContinues, float fontSize)
            : base(voice,  msDuration, absMsPosition, minimumCrotchetDurationMS, 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, beamContinues);

            // Beam is currently null. Create when necessary.
        }
예제 #4
0
        public ChordSymbol(Voice voice, int msDuration, int msPosition, int minimumCrotchetDurationMS, float fontSize)
            : base(voice, msDuration, msPosition, minimumCrotchetDurationMS, 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);

            // Beam is currently null. Create when necessary.
        }
예제 #5
0
        /// <summary>
        /// Old constructor, currently not used (03.05.2020), but retained for future inspection
        /// </summary>
        public ChordSymbol(Voice voice, int msDuration, int absMsPosition, int minimumCrotchetDurationMS, double fontSize)
            : base(voice, msDuration, absMsPosition, minimumCrotchetDurationMS, fontSize)
        {
            M.Assert(false); // 03.05.2020: don't use this constructor (to be inspected once work on midi info begins).

            // 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);

            // Beam is currently null. Create when necessary.
        }
예제 #6
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.
        }