Moved mathematical waveform function into Wavetable class