Beispiel #1
0
 public Vector53(Factory53 f, Random rand, int root)
 {
     factory = f;
     edo     = 53;
     pitch   = rand.Next(170);
     pitch  += root * 53;
 }
Beispiel #2
0
        public Vector53(Factory53 f, Random rand, int root, int loc)
        {
            int[] kleisma = new int[] { 0, 31, 14, 50, 28, 11, 42, 25, 3, 39, 17 };
            factory = f;
            edo     = 53;

            int row = loc / 9;
            int col = loc % 9;

            //int krow = row / 4;
            //int scol = (3 *col) / 8;
            pitch = (col * 31 + row * 14) % 53;


            //pitch = kleisma[loc % 11] ;
            pitch += root * 53;
        }
Beispiel #3
0
 /*
  * readonly double[] intervals =
  *  { 0, // 0
  *  17, // 1
  *  9, // 2
  *  5, // 3
  *  7, // 4
  *  4, // 5
  *  20, // 6
  *  17, // 7
  *  5, // 8
  *  6, // 9
  *  13, // 10
  *  8, // 11
  *  5, // 12
  *  9, // 13
  *  1, // 14
  *  16, // 15
  *  17, // 16
  *  2, // 17
  *  16, // 18
  *  4, // 19
  *  10, // 20
  *  20, // 21
  *  2, // 22
  *  10, // 23
  *  10, // 24
  *  4, // 25
  *  10, // 26
  * };
  */
 public Vector53(Factory53 f, int p)
 {
     factory = f;
     edo     = 53;
     pitch   = p;
 }