Each modulation has a suitable demodulation scheme and we will focus on the ring and amplitude modulations in this section. The demodulator for the ring modulator uses exactly the same scheme as the modulator, so no new effect is to be expected there. The demodulator for the amplitude modulator is called an amplitude follower in the realm of digital audio effects. Several implementation schemes are available, some are inspired from analog designs, some are much easier to realize using digital techniques. These demodulators comprise three parts: a detector, an averager and a scaler.
3.3.1 Detectors
The detector can be a half-wave rectifier dh(t), a full-wave rectifier df(t), a squarer dr(t) or an instantaneous envelope detector . The first two detectors are directly inspired by analog designs. They are still useful to achieve effects having typical analog behavior. The third and fourth types are much easier to realize in the digital domain (Figure 3.9). The four detectors are computed by
3.17
respectively, where x(n) denotes the input signal and its Hilbert transform.
3.3.2 Averagers
In the analog domain, the averager is realized with a resistor-capacitor (RC) network and in the digital domain using a first-order lowpass filter. Both structures are characterized by a time constant τ. The filter is implemented as:
3.18
where d(n) denotes the detector output. The time constant τ must be chosen in accordance with the application. A short time constant is suitable when fast variations of the input signal must be followed. A larger time constant is better to measure the long-term amplitude of the input signal. For many applications, however, this averager is not suitable. It is often necessary to follow short attacks of the input signal. This calls for a very small time constant, 5 ms typically. The output of the averager will then react very fast to any amplitude variation, even to the intrinsic variations within a period of a low-frequency signal. We understand that we need an averager with two time constants: an attack time constant τa and a release time constant τr. To distinguish it from the basic averager, we will call this one the AR-averager. McNally has proposed an implementation having two fixed coefficients [McN84, Zöl05] and Jean-Marc Jot has an alternative where a single coefficient is varied according to the relationship between the input and the output of the averager (Figure 3.10):
3.19
where d(n) again denotes the detector output.
3.3.3 Amplitude Scalers
The systems described above lead to slightly different outputs. In order to get measures that are comparable with each other, it would be necessary to scale the outputs. Although scaling schemes are typically defined for sine waves, each type of signal would require a different scaling scheme. To build a RMS detector or an instantaneous envelope detector, furthermore a root extractor would be necessary, a computationally intensive operation. Fortunately, it is often possible to avoid the root extraction by modifying the circuit that makes use of the averager output, so that it works fine with squared measures. For these practical reasons the scaling is taken into account most of the time within the device that follows the averager output.
3.3.4 Typical Applications
Well-known devices or typical applications relate to the previous schemes as follows:
3.135.188.121