Exemple #1
0
        public void make_bars()
        {
            foreach (D_Measure measure in this.measures)
            {
                int times = measure.getMeasureLengthInBeats() / (measure.beats_per_bar / (measure.beat_length / 4));

                for (int i = 0; i < times; i++)
                {
                    D_Bar to_add = new D_Bar(measure.beats_per_bar / (measure.beat_length / 4));
                    to_add.measure = measure;
                    this.addBar(to_add);
                }
            }
        }
Exemple #2
0
 public void removeBar(D_Bar bar)
 {
     this.bars.Remove(bar);
 }
Exemple #3
0
 public void addBar(D_Bar bar)
 {
     this.bars.Add(bar);
 }