예제 #1
0
        public Pattern()
        {
            drumEvents = new DrumEvent[NUM_TRACKS * STEPS_PER_PATTERN];

            // Initialise data
            name = "";
            for (int i = 0; i < NUM_TRACKS * STEPS_PER_PATTERN; i++)
            {
                // drumEvents inited in theier constructor already
                drumEvents[i] = new DrumEvent();
                if (7 == i)
                    drumEvents[i].vol = 100;
            }
        }
예제 #2
0
 public void CopyFrom(ref DrumEvent de)
 {
     vol = de.vol;
     pan = de.pan;
 }