示例#1
0
 public Vector27(Factory27 f, Random rand, int root)
 {
     edo     = 90;
     factory = f;
     pitch   = rand.Next(60);
     pitch  += root * 27;
 }
示例#2
0
        public Vector27(Factory27 f, Random rand, int root, int loc)
        {
            edo     = 90;
            factory = f;
            pitch   = (((loc / 2) % 9) * 20);
            //pitch = rand.Next(60);
            //pitch = starting_pitch[(loc/2) % 6];
            int vi = root / 2;

            double rootlf = -0.4 + 0.8 * (double)vi;

            while (log_frequency() > rootlf + 0.3)
            {
                pitch -= 27;
            }
            while (log_frequency() < rootlf - 0.3)
            {
                pitch += 27;
            }
        }
示例#3
0
 public Vector27(Factory27 f, int p)
 {
     edo     = 90;
     factory = f;
     pitch   = p;
 }