示例#1
0
 public VectorEDO5(FactoryEDO5 f, Random rand, int root)
 {
     factory = f;
     edo     = f.edo;
     pitch   = rand.Next(edo);
     pitch  += root * edo;
 }
示例#2
0
        public VectorEDO5(FactoryEDO5 f, Random rand, int root, int loc)
        {
            factory = f;
            edo     = f.edo;
            pitch   = factory.pumpStructure.pattern(loc);

            int incr = ((edo + factory.scale.Length / 2) / factory.scale.Length) * factory.scale.Length;

            while (pitch < root * edo)
            {
                pitch += incr; // factory.scale.Length;
            }
        }
示例#3
0
文件: Comma.cs 项目: kukulaj/meantone
        public Comma(FactoryEDO5 pfactory, int[] pfactors)
        {
            factory = pfactory;
            factors = pfactors;

            int vec = 0;

            for (int i = 0; i < factors.Length; i++)
            {
                vec += factors[i] * factory.pstep[i + 1];
            }
            if (vec % factory.edo != 0)
            {
                Console.WriteLine("comma error");
            }
        }
示例#4
0
 public PumpStructureBig(FactoryEDO5 pf, int ppi)
 {
     factory = pf;
     pumpi   = ppi;
 }
示例#5
0
 public PumpStructureOffOnOff(FactoryEDO5 pf, int ppi)
 {
     factory = pf;
     pumpi   = ppi;
 }
示例#6
0
 public VectorEDO5(FactoryEDO5 f, int p)
 {
     factory = f;
     edo     = f.edo;
     pitch   = p;
 }
示例#7
0
 public PumpStructureZigZag(FactoryEDO5 pf, int ppi1, int ppi2)
 {
     factory = pf;
     pi1     = ppi1;
     pi2     = ppi2;
 }
示例#8
0
 public PumpStructureSum(FactoryEDO5 pf, PumpStructure pa, PumpStructure pb)
 {
     factory = pf;
     a       = pa;
     b       = pb;
 }
示例#9
0
 public PumpStructureArray(FactoryEDO5 pf, int[,] pplan)
 {
     factory = pf;
     plan    = pplan;
 }
示例#10
0
 public PumpStructureRandom(FactoryEDO5 pf)
 {
     factory = pf;
 }
示例#11
0
 public PumpStructureNull(FactoryEDO5 pf)
 {
     factory = pf;
 }
示例#12
0
 public PumpStructureTwoAcross(FactoryEDO5 pf, int ppi1, int ppi2)
 {
     factory = pf;
     pi1     = ppi1;
     pi2     = ppi2;
 }