Exemple #1
0
 public VectorEDO5(FactoryEDO5 f, Random rand, int root)
 {
     factory = f;
     edo     = f.edo;
     pitch   = rand.Next(edo);
     pitch  += root * edo;
 }
Exemple #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;
            }
        }
Exemple #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");
            }
        }
Exemple #4
0
 public PumpStructureBig(FactoryEDO5 pf, int ppi)
 {
     factory = pf;
     pumpi   = ppi;
 }
Exemple #5
0
 public PumpStructureOffOnOff(FactoryEDO5 pf, int ppi)
 {
     factory = pf;
     pumpi   = ppi;
 }
Exemple #6
0
 public VectorEDO5(FactoryEDO5 f, int p)
 {
     factory = f;
     edo     = f.edo;
     pitch   = p;
 }
Exemple #7
0
 public PumpStructureZigZag(FactoryEDO5 pf, int ppi1, int ppi2)
 {
     factory = pf;
     pi1     = ppi1;
     pi2     = ppi2;
 }
Exemple #8
0
 public PumpStructureSum(FactoryEDO5 pf, PumpStructure pa, PumpStructure pb)
 {
     factory = pf;
     a       = pa;
     b       = pb;
 }
 public PumpStructureArray(FactoryEDO5 pf, int[,] pplan)
 {
     factory = pf;
     plan    = pplan;
 }
Exemple #10
0
 public PumpStructureRandom(FactoryEDO5 pf)
 {
     factory = pf;
 }
Exemple #11
0
 public PumpStructureNull(FactoryEDO5 pf)
 {
     factory = pf;
 }
Exemple #12
0
 public PumpStructureTwoAcross(FactoryEDO5 pf, int ppi1, int ppi2)
 {
     factory = pf;
     pi1     = ppi1;
     pi2     = ppi2;
 }