hilbert2 — A Hilbert transformer.
asig -- input signal
ar1 -- real output of asig
ar2 -- imag output of asig
hilbert2 is a DFT-based implementation of the Hilbert Transform producing two outputs in quadrature (90 degree phase difference across the spectrum). Unlike the IIR-based hilbert opcode, hilbert2 has a linear frequency response. Given that it employs a streaming algorithm, a delay of fftsize samples will be imposed between input and output.
Here is an example of the hilbert2 opcode. Play hilbert2.csd
Example 439. Example of the hilbert2 opcode.
See the sections Real-time Audio and Command Line Flags for more information on using command line flags.