Real wave propagation is never lossless. Sound waves in air lose energy via molecular frictional forces. Mechanical vibrations in strings are dissipated through yielding terminations, the viscosity of the surrounding air, and via internal frictional forces. In general, these losses vary with frequency.
Losses are often well approximated by the addition of a small number of terms to the wave equation.
In the simplest case, we can add a frequency-independent force term that is proportional to the transverse string velocity. Using the wave equation derived for the string,
where is the resistive proportionality constant. Assuming the friction coefficient is relatively small, the following general class of solutions to this equation can be found:
When this solution is sampled, we get
where
.
Figure 7:
Discrete-time simulation of ideal, lossy wave propagation.
Because the system is linear and time-invariant, the loss terms can be commuted and implemented at discrete points for efficiency.
In the more realistic situation where losses are frequency dependent (and typically of “lowpass” characteristic), the factors are replaced with frequency responses of the form . These responses can likewise be commuted and implemented at discrete spatial locations within the system.