prepared wavetable.c for amplitude modulation