/* square.c - square wavetable of length D, with D1 ones */ double square(D1, i) int D1, i; { if (i < D1) return 1; else return 0; }