示例#1
0
        public override int pattern(int loc)
        {
            int pitch = 0;

            pitch = a.pattern(loc) + b.pattern((loc + 1) % factory.map.size);
            pitch = pitch % factory.edo;

            return(pitch);
        }
示例#2
0
 public override void show_pattern()
 {
     Console.WriteLine("initial pattern:");
     for (int r = 0; r < map.row_size; r++)
     {
         for (int c = 0; c < map.row_size; c++)
         {
             int loc = c + r * map.row_size;
             Console.Write(string.Format("{0} ", pumpStructure.pattern(loc)));
         }
         Console.WriteLine();
     }
 }