Example #1
0
 public Vector118(Factory118 f, Random rand, int root)
 {
     edo     = 118;
     factory = f;
     pitch   = rand.Next(140);
     pitch  += root * 118;
 }
Example #2
0
        public Vector118(Factory118 f, Random rand, int root, int loc)
        {
            edo     = 118;
            factory = f;
            // pitch = rand.Next(340);
            // pitch = starting_pitch[(loc) % 14];

            /*
             * int x = loc % 9;
             * int y = loc / 9;
             *
             * int xi = (x * (schisma.Length - 1)) / 9;
             * int yi = (y * (luna.Length - 1)) / 17;
             */
            //int xi = (loc % 144) / 16;
            //int xp = schisma[xi];
            // int yp = luna[yi];
            //pitch = xp % edo;

            int row_size = 24;
            int big      = loc / row_size;
            int small    = loc % row_size;

            pitch = (38 * ((1 * small + row_size / 5) / row_size + (15 * big + (3 * row_size) / 5) / row_size)
                     + 69 * ((8 * small + (2 * row_size) / 5) / row_size + (2 * big + (4 * row_size) / 5) / row_size))
                    % edo;

            pitch += root * edo;
        }
Example #3
0
 public Vector118(Factory118 f, int p)
 {
     edo     = 118;
     factory = f;
     pitch   = p;
     if (p > 2000)
     {
         p = p % 118;
     }
 }