pitchgen.c 284 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include <math.h> #include <stdio.h> main() { int i; double ratio; printf("float _pitchTable[] = {\n"); for (i = -11; i < 12; i++) { ratio = pow(2, ((double)i)/12.0); printf("\t%.10f, /* %2d\t */\n", ratio, i); } printf("};\n"); }