Esempio n. 1
0
 public Measure(Track track = null, MeasureHeader header = null) : this()
 {
     if (Voices.Count == 0)
     {
         for (int x = 0; x < MaxVoices; x++)
         {
             Voices.Add(new Voice(this));
         }
     }
     this.Header = header;
     this.Track  = track;
 }
Esempio n. 2
0
        public void AddMeasureHeader(MeasureHeader h)
        {
            if (!(Openings.Count > 0))
            {
                Openings.Add(h);
            }

            MeasureHeaders.Add(h);
            h.RepeatGroup = this;
            if (h.RepeatClose > 0)
            {
                Closings.Add(h);
                IsClosed = true;
            }
            else if (IsClosed)
            {
                IsClosed = false;
                Openings.Add(h);
            }
        }
Esempio n. 3
0
 public Marker()
 {
     Title         = "Section";
     Color         = new Color(255, 0, 0);
     MeasureHeader = null;
 }