added the code necessary to change the wave array's waveforms