The sum of two Sample objects corresponds to the sound when both samples are played at a time. The product of two samples causes an effect called ringmodulation, but it can also be used to add some vibrato to a sound (see the examples).
If the samples have different sample parameters (bits, rate and channels), the system uses the command fitSampleParameters to adjust them before the waveforms are combined.
Be careful to make sure that the resulting waveform does not exceed the interval [-1,1] when it is played or saved to disk, otherwise you will lose information and hear cracks in the sound. To avoid this, you can use const * s or the normalize command.
In prod and sum also the names of wavefiles can be used. Other forms like e1+e2 do not accept filenames as arguments. If the first argument e1 is a filename, the explicit forms sum.Sample and prod.Sample must be used.