Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Chapter 11: Multinotch filters

Multinotch filters have various uses. One of their most common applications is in phaser and flanger effects, which are built by modulating the parameters (in the simplest and the most common case just the cutoff) of the respective multinotch by an LFO. The main difference between a phaser and a flanger is that in the former the multinotch filter is based around a chain of differential allpass filters, while in the latter the allpass chain is replaced by a delay (thus making a comb filter).

11.1 Basic multinotch structure

Let be an arbitrary allpass:

where is the allpass’s phase response, and consider the transfer function of the form

corresponding to the system in Fig. 11.1.

Figure 11.1: A basic multinotch. G(s) is an allpass.

Figure 11.1: A basic multinotch. is an allpass.

Writing out the amplitude response of we have

and

Thus

The points where the amplitude response of is maximal are referred to as peaks and the points where the amplitude response of is minimal are referred to as notches. So the peaks occur where the phase response of the allpass is zero and the notches occur where the phase response of the allpass is . This is also fully intuitive: when the phase response of is zero, both mixed signals add together, when the phase response of is , both mixed signals cancel each other.

The filters whose phase response contains several notches are referred to as multinotch filters. Apparently the filter in Fig. 11.1 is a multinotch.

11.2 1-pole-based multinotches

The allpass can be arbitrary. However there are some commonly used options. One of such options is to use a chain of identically tuned 1-pole allpasses:

The phase response of a 1-pole allpass according to (2.13) is

Respectively

(Fig. 11.2). The symmetry of the graph of in the logarithmic frequency scale is apparently due to the same symmetry of the phase response of the 1-pole allpass.

So the peaks occur whenever

and the notches occur whenever

Or, combining peaks and notches together, we have

Since we need , the range of values of is obtained from

giving

Thus the total count of peaks plus notches is . Noticing that the peaks correspond to even values of and notches correspond to odd values of we have the following pictures:

If is even there are peaks (including the ones at and ) and notches. Figs. 11.3 and 11.4 illustrate.

If is odd there are peaks (starting at the one at ) and notches (the last notch occuring at ). Fig. 11.5 illustrates.

Odd counts are less commonly used due to unsymmetric shape of the amplitude response.

Figure 11.2: Phase response of a chain of 6 identical 1-pole allpasses. Black dots correspond to multinotch’s peaks, white dots correspond to multinotch’s notches.

Figure 11.2: Phase response of a chain of 6 identical 1-pole allpasses. Black dots correspond to multinotch’s peaks, white dots correspond to multinotch’s notches.

11.3 2-pole-based multinotches

Instead of 1-pole allpasses we could use 2-pole allpasses:

Figure 11.3: Amplitude response of a multinotch built around a chain of 4 identical 1-pole allpasses.

Figure 11.3: Amplitude response of a multinotch built around a chain of 4 identical 1-pole allpasses.

Figure 11.4: Amplitude response of a multinotch built around a chain of 6 identical 1-pole allpasses.

Figure 11.4: Amplitude response of a multinotch built around a chain of 6 identical 1-pole allpasses.

Note that at we obtain an equivalent of a chain of 1-pole allpasses.

According to (4.24) and (4.5) the phase response of a 2-pole allpass is

or, in terms of logarithmic frequency scale (where we also use (4.6))

Thus

Figure 11.5: Amplitude response of a multinotch built around a chain of 5 identical 1-pole allpasses.

Figure 11.5: Amplitude response of a multinotch built around a chain of 5 identical 1-pole allpasses.

Thus this time is going from to , which means that we obtain only symmetric amplitude responses, similar to the ones which we were getting for even numbers of 1-pole allpasses. Fig. 11.6 illustrates. By adjusting the value of we change the steepness of the phase response and thereby the distance between the notches.

Figure 11.6: Amplitude response of a multinotch built around a chain of 2 identical 2-pole allpasses (at different damping values).

Figure 11.6: Amplitude response of a multinotch built around a chain of 2 identical 2-pole allpasses (at different damping values).

The first notch occurs at , that is

or

from where we can obtain the logarithmic position of the first notch

The logarithmic position of the last notch is respectively and the logarithmic bandwidth (in base ) is therefore , while the respective bandwidth in octaves is :

Notice the obvious similarly of the above formula to (4.19).

11.4 Inversion

By multiplying an allpass filter’s output by we obtain another allpass. At frequencies where the phase response was we thereby obtain and vice versa. This means that if such allpass is used as a core of the multinotch in Fig. 11.1, inverting the allpass’s output will swap the peak and notch positions (compare Fig. 11.7 vs. Fig. 11.4).

Figure 11.7: Amplitude response of a multinotch built around a chain of 6 identical 1-pole allpasses with inversion (compare to Fig. 11.4).

Figure 11.7: Amplitude response of a multinotch built around a chain of 6 identical 1-pole allpasses with inversion (compare to Fig. 11.4).

The structure of Fig. 11.1 can be modified as shown in Fig. 11.8 to accomodate optional inversion.

Figure 11.8: Multinotch from Fig. 11.1 with optional inversion.

Figure 11.8: Multinotch from Fig. 11.1 with optional inversion.

11.5 Comb filters

A delay is also an allpass. It is not a differential allpass, since it’s not based on integrators, but it is still an allpass. Indeed, taking the delay equation

where is delay time and letting we have

Since the delay is linear (in the sense that a delayed linear combination of two signals is equal to the same linear combination of these signals delayed separately) we could apply (2.7) which means that the transfer function of the delay is

Apparently

and thus the delay is an allpass.

Therefore we can use the delay as the allpass core of the multnotch filter in Fig. 11.1. Letting we have (Fig. 11.9). The peak/notch equation is respectively

from where

or, in ordinary frequency scale

The peaks and notches are therefore harmonically spaced with a step of Hertz (Fig. 11.10). The amplitude response in Fig. 11.10 looks like a comb. Hence this kind of multinotch filters are referred to as comb filters.

Since the peaks and notches of the comb filter’s amplitude response occur at , the frequency is the fundamental frequency of this harmonic series. It is convenient to use this frequency as comb’s filter formal cutoff .

If there is no inversion, then (excluding the DC peak at ) the peaks of the amplitude response are located at frequencies , etc. This makes the perceived fundamental frequency of the comb filter (especially in the case of a strong resonance1) rather be . However in the case of inversion the peaks are located at , etc., giving an impression (which is stronger in the case of a strong resonance) of an odd-harmonics-only signal at frequency .

11.6 Feedback

Suppose we introduce feedback into the structure of Fig. 11.1 as shown Fig. 11.11. Now the output of the allpass is not anymore purely the allpassed input signal. Let’s introduce the notation for the post-allpass signal (as shown in Fig. 11.11) and for the respective transfer function (in the sense of for complex exponential ). We also introduce the pre-allpass signal , but we are not going to use it for now. Then we are having

Figure 11.11: Multinotch from Fig. 11.1 with added feedback. Note that this figure is showing a poor mixing option.

Figure 11.11: Multinotch from Fig. 11.1 with added feedback. Note that this figure is showing a poor mixing option.

The transfer function of the entire multinotch thereby turns into

or, in frequency response terms

We can immediately notice that as soon as the numerator of the frequency response doesn’t turn to zero anymore, respectively we are not having fully deep notches in the amplitude response (Fig. 11.12).

Instead of mixing with let’s mix it with , as shown in Fig. 11.13. The transfer function corresponding to the signal in Fig. 11.11 is

and thus we obtain

This transfer funtion looks much better, since it preserves fully deep notches. The frequency response turns into

Figure 11.12: Amplitude response of the multinotch in Fig. 11.11 built around a chain of 6 identical 1-pole allpasses at k = 0.5. Dashed curve corresponds to k = 0 (the same response as in Fig. 11.4).

Figure 11.12: Amplitude response of the multinotch in Fig. 11.11 built around a chain of 6 identical 1-pole allpasses at . Dashed curve corresponds to (the same response as in Fig. 11.4).

Figure 11.13: Multinotch from Fig. 11.1 with added feedback and corrected mixing.

Figure 11.13: Multinotch from Fig. 11.1 with added feedback and corrected mixing.

which varies between

and

The amplitude response is then

Again one can see that when and when . Thus the effect of the feedback in Fig. 11.13 is that the peaks become times higher (given ) and notches stay intact. Fig. 11.14 illustrates. Observe that the peaks become higher and narrower.2

Figure 11.14: Amplitude response of the multinotch in Fig. 11.13 built around a chain of 6 identical 1-pole allpasses at k = 0.5. Dashed curve corresponds to k = 0 (the same response as in Fig. 11.4).

Figure 11.14: Amplitude response of the multinotch in Fig. 11.13 built around a chain of 6 identical 1-pole allpasses at . Dashed curve corresponds to (the same response as in Fig. 11.4).

We could combine the feedback (Fig. 11.13) and the inversion (Fig. 11.8), as shown in Fig. 11.15. Apparently the inversion only adds another to , swapping peaks and notches. Therefore the results of the previous discussion of Fig. 11.13 equally apply to Fig. 11.15.

Figure 11.15: Multinotch with feedback and inversion.

Figure 11.15: Multinotch with feedback and inversion.

As we should recall from the discussion of ladder filters, the feedback becomes unstable when the total gain across the feedback loop, computed at a frequency where the total phase shift across the feedback loop is zero, exceeds 1. Apparently in the case of Fig. 11.15 the zero total phase shift is occurring exactly at the frequencies where the multinotch has peaks, while the total feedback loop gain at these frequencies is simply . Therefore the multinotch filter becomes unstable at and the suggested range of is .3 Note that the presence of the inversion doesn’t really change the stable range of , since the allpass is anyway delivering all possible phase shifts across the frequency range , and there always will be frequencies at which the total feedback loop phase shift is zero (thereby producing amplitude response peaks), regardless of whether the inversion is on or off. Thus the feedback loop will be stable as long as .

Feedback shaping

Being essentially a ladder allpass, the multnotch in Fig. 11.15 can accomodate feedback shaping, as discussed in Section 5.4. Notably, as long as the amplitude responses of the shaping filters do not exceed 1, neither will the total feedback loop gain (since in the absence of shaping filters the feedback loop gain is exactly 1 at all frequencies). This means that the stability of the feedback loop for will not be destroyed, no matter what the phase responses of the shaping filters are.

11.7 Dry/wet mixing

So far we have been mixing the allpass-processed signal and the input signal (or, if we are using feedback, the pre-allpass signal with the post-allpass signal ) in equal amounts:

Let’s crossfade the multinotch filter output signal with the input signal:

If the multinotch is being used as a part of a phaser or flanger effect, the input signal is commonly referred to as the dry signal while the multinotch output signal is referred to as the wet signal.4

According to (11.2a) the phase response of the feedback multinotch at the peak is zero, therefore the peak, having the height should mix naturally with the input signal (corresponding to the transfer function equal to 1 everywhere), producing a smooth crossfade between and 1 in the amplitude response at this frequency. This is indeed the case and the amplitude response of a multinotch will nicely crossfade into a unity gain response (Fig. 11.16). The respective structure is shown in Fig. 11.17.

Figure 11.16: Amplitude response of the multinotch in Fig. 11.13 built around a chain of 6 identical 1-pole allpasses at k = 0.5 with a dry/wet mixing ratio of 50%. Dashed curve corresponds to a dry/wet mixing ratio of 100% (same response as in Fig. 11.14).

Figure 11.16: Amplitude response of the multinotch in Fig. 11.13 built around a chain of 6 identical 1-pole allpasses at with a dry/wet mixing ratio of 50%. Dashed curve corresponds to a dry/wet mixing ratio of 100% (same response as in Fig. 11.14).

Figure 11.17: Multinotch with feedback, inversion and dry/wet mixing.

Figure 11.17: Multinotch with feedback, inversion and dry/wet mixing.

Since , we can rewrite (11.3) as

Thus, even though normally , we could let grow all the way to , in which case only the allpass output (albeit boosted by ) will be present in the output signal.

11.8 Barberpole notches

Consider the frequency shifter in Fig. 10.31 and let’s replace with some fixed value , obtaining a similar structure shown in Fig. 11.18.5

Figure 11.18: Barberpole allpass, obtained from the frequency shifter in Fig. 10.31.

Figure 11.18: Barberpole allpass, obtained from the frequency shifter in Fig. 10.31.

Across the supported bandwidth of the frequency shifter the phase difference between the allpasses and is . That is

where

or simply

The frequency response of the structure in Fig. 11.18 (within the supported bandwidth of the frequency shifter) is thereby

from where we repsectively obtain

That is, is an allpass and by varying we can arbitrarily offset its phase response! Of course, this holds only within the frequency shifter’s bandwidth, but nevertheless it’s a very remarkable property.

But what does the phase response of actually look like? Apparently it depends on the details of and implementations. If and are built from 1-pole allpasses obtained by minimax optimization of the phase difference (e.g. by using formula eq:ellip:PhaseSplit:PolesZeros), the phase responses of and will look like the ones in Fig. 11.19, where we first should concentrate on the phase responses shown by solid lines.

Figure 11.19: Phase responses of H+^-1 and H- (each consisting of six 1-pole allpasses). The frequency shifter bandwidth is 10 octaves (bounded by vertical dashed lines at omega = 1/32 and omega = 32). Black dots correspond to multinotch’s peaks arising out of H+^-1, white dots correspond to the respective notches. Dashed curves show “aliased” phase responses.

Figure 11.19: Phase responses of and (each consisting of six 1-pole allpasses). The frequency shifter bandwidth is 10 octaves (bounded by vertical dashed lines at and ). Black dots correspond to multinotch’s peaks arising out of , white dots correspond to the respective notches. Dashed curves show “aliased” phase responses.

Aside from being apart across the frequency shifter bandwidth, the phase responses in Fig. 11.19 do not look much different from the phase responses we have been using earlier, such as e.g. in Fig. 11.2. Thus or will provide a decent allpass to be used in a multinotch. By using (11.4b) we can obtain an offset phase response of as the phase response of , which will result in shifted peaks and notches of the multinotch (compared to their positions arising out of ).

However, recall that the phase is defined modulo . That is a phase response of is exactly the same as the phase response of or of etc. This has been shown by the dashed curves in Fig. 11.19, they represent alternative interpretations or “aliased” versions of the “principal” (solid-line) phase responses. Notice how the black and white dots on the aliased responses of correspond to exactly the same peak and notch frequencies as the ones arising out of the principal phase responses (reflecting the fact that it doesn’t matter if we use a principal or an aliased phase response to determine peak and notch positions). By offsetting the phase response of (visually this corresponds to a vertical shifting of the responses in Fig. 11.19) we simultaneously offset all its aliases by the same amount.

Imagine that is increasing, thus the principal and aliased responses of in Fig. 11.19 are continuously moving upwards, and the notches and peaks are continuously moving to the right.6 In turn, each of the peaks and notches will disappear on the right at simultaneously reappearing from the left at . Thus the peaks and notches will move “endlessly” from left to the right. Respectively if is decreasing, they will move from right to the left. This is the so-called barberpole effect.

In reality, however, the peaks and notches will not move all the way to or . At some point they will leave the frequency shifter bandwidth, at which moment (11.4b) will no longer hold. Particularly, the amplitude response of will no longer stay allpass. At we have , which means that

which means that the amplitude response of at can get as large as . The same situation occurs at . Respectively, if the multinotch contains feedback, it will explode at . The explosion can be prevented by introducing low- and high-pass or -shelving filters into the feedback loop.7

Thus, we have built a barberpole phaser, where the peaks and notches can move endlessly to the left or to the right. The same technique cannot be directly used to build a barberpole flanger, since, while we have a phase splitter acting as a differential allpass, we do not have a phase splitter acting as a delay. This would not be even possible in theory, since the phase response of a delay must be proportional to the frequency (this is the property which ensures the harmonic spacing of comb filter’s peaks and notches), but adding any constant to such phase response will destroy this property. What is however possible is using an allpass arising out of a serial connection of a delay and a barberpole allpass in Fig. 11.18. This would destroy the perfect harmonic spacing of flanger’s peaks and notches, but one gets a barberpole effect in return, as the phase responses of the delay and the barberpole allpass add up.

Summary

Multinotch filters can be build by mixing a signal with its allpassed version, where the allpass could be a differential allpass or a delay, the latter resulting in a comb filter. Inverting the allpass’s output swaps the peaks and the notches. Adding feedback makes the peaks more prominent.

Figure 11.9: Phase response of a delay. Black dots correspond to multinotch’s peaks, white dots correspond to multinotch’s notches. The frequency scale is linear!

Figure 11.9: Phase response of a delay. Black dots correspond to multinotch’s peaks, white dots correspond to multinotch’s notches. The frequency scale is linear!

Figure 11.10: Amplitude response of a multinotch built around a delay (comb filter). The frequency scale is linear!

Figure 11.10: Amplitude response of a multinotch built around a delay (comb filter). The frequency scale is linear!


  1. Resonating multinotches will be discussed later in this chapter. ↩

  2. Since , instead of simple averaging we could have had however this doesn’t seem to give any benefits compared to the previous option, while we need to adjust the mixing coefficient for depending on the feedback amount, which is rather a drawback. ↩

  3. Negative values of lower the amplitude response peaks below 1, simultaneously making them wider and respectively making the notches narrower. Being narrower, such notches become less audible, even if we compensate for the amplitude loss by multiplying the signal by , thus the case of is less common. ↩

  4. Sometimes just the allpass output signal is referred to as the wet signal. Such terminology is however more appropriate for an effect such as e.g. chorus, where the main idea of the effect is the pitch detuning produced by delay modulation. In comparison e.g. in a flanger the main idea of the effect is the appearance of the notches, while pitch detuning, if present at all, is rather a modulation artifact. Thus, in absence of strong modulation, the output of the flanger’s delay will be hardly distinguishable by ear from the dry signal, not really being “wet”. ↩

  5. The author was introduced to the approach of using the frequency shifter structure to implement barberpole phasers and flangers by Dr. Julian Parker. ↩

  6. In a practical implementation would not be able to increase endlessly, as at some point it will leave the representable range of values. If floating point representation is used, precision losses will become intolerably large even before the value gets out of range. However, we don’t really need to increase or decrease endlessly, since what matters in the end (according to Fig. 11.18) are the values of its sine and cosine. Thus we could wrap to the range , or work directly with sine and cosine values (in which case it’s convenient to treat them as real and imaginary parts of a complex number ). ↩

  7. Particularly, for the 1-pole lowpass (or any 1st kind Butterworth lowpass) we have , while outside of that range we still have . Therefore such filter, placed at the upper boundary of the frequency shifter’s bandwidth, will be guaranteed to mitigate the unwanted amplitude response boost in the high frequency range. A highpass of the same kind placed at the lower boundary of the frequency shifter’s bandwidth will perform the same in the low frequency range. ↩