waveY[ i ] = amplitude * sin( 2.0 * PI * ( t/period - x/wavelength ) );