next up previous contents index
Next: Phase vocoder time bender Up: Examples Previous: Narrow-band companding: noise suppression   Contents   Index

Timbre stamp (``vocoder")

Figure 9.17: Timbre stamp.
\begin{figure}\psfig{file=figs/fig09.17.ps}\end{figure}

Patch I05.compressor.pd is another channel compander which is presented in preparation for patch I06.timbre.stamp.pd, which we will describe next. This is a realization of the timbre stamp of Figure 9.9, slightly modified.

There are two inputs, one at left to be filtered (and whose Fourier transform is used for resynthesis after modifying the magnitudes), and one at right which acts as a control source. In the simplest case, if the two magnitudes are $f[k]$ for the filter input and $c[k]$ for the control source, we just ``whiten" the filter input, multiplying by $1/f[k]$, and then stamp the control magnitudes onto the result by further multiplying by $c[k]$. In practice, we must limit the gain to some reasonable maximum value. In this patch this is cone by limiting the whitening factor $1/f[k]$ to a specified maximum value. This is done by the clip~ object. The limit is controlled by the squelch parameter, which is squared and divided by 100 to make the units reasonable.

Another possible scheme is to limit the gain after forming the quotient $c[k]/f[k]$. The gain limitation may in either case be frequency dependent. Finally, it is sometimes useful to raise the gain to a power $p$ between 0 and 1; if 1, this is a timbre stamp and if 0, it passes the filter input through unchanged, and values in between give a smooth interpolation between the two.


next up previous contents index
Next: Phase vocoder time bender Up: Examples Previous: Narrow-band companding: noise suppression   Contents   Index
Miller Puckette 2005-04-01