public Vector31(Factory31 f, Random rand, int root) { factory = f; edo = 31; pitch = rand.Next(90); pitch += root * 31; }
public Vector31(Factory31 f, Random rand, int root, int loc) { factory = f; edo = 31; pitch = 0; /* * switch((loc % 10)) * { * case 0: * pitch = 0; * break; * * case 1: * pitch = 18; * break; * * case 2: * pitch = 28; * break; * * case 3: * pitch = 7; * break; * * case 4: * pitch = 25; * break; * * case 5: * pitch = 4; * break; * case 6: * pitch = 14; * break; * case 7: * pitch = 24; * break; * * case 8: * pitch = 11; * break; * * case 9: * pitch = 21; * break; * * default: * pitch = 0; * break; * } */ pitch += root * 31; }
public Vector31(Factory31 f, int p) { factory = f; edo = 31; pitch = p; }