Пример #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
        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;
 }