For a film loop to make sense to a viewer, the subject of the movie must be periodic, and organized so that the last frame leads naturally into the first. In the movie created by wavemovie() there is a parameter lambda that controls the basic repetition rate of wave pulses fired onto the screen from the top. When a wavelet travels one-quarter of the way down the frame, another is sent in. This is defined by the line
Take any point in (x,z)-space. The signal there will be a superposition of sinusoids of various frequencies, .We can choose what frequencies we will use in the calculation and what amplitudes and phases we will attach to the initial conditions at those frequencies. Here we will simply take uniformly spaced sinusoids of unit amplitude and no phase. The nw frequencies are ,,..., nw.The lowest frequency dw = must be inversely proportional to the wavelength lambda
Finally, the time duration of the film loop must equal the period of the lowest-frequency sinusoid
This latter equation defines the time interval on the line
If you use more frequencies, you might like the result better because the wave pulses will be shorter, and the number of wavelengths between the pulses will increase. Thus the quiet zones between the pulses will get quieter. The frequency components can be weighted differently--but this becomes a digression into simple Fourier analysis.