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