source_ohr
Generation of a sinusoidal signal through a harmonic oscillator.
Namespace: dsp
Prototype
sptr<Source<float, OHConfig>> source_ohr(float freq)
Parameters
freq | Normalized frequency of the exponential (between -0.5 et 0.5). |
Returns
Ream data source.
Description
This function returns a data source, which can be called several times (generation of a continuous flow of samples, contrary to sigsin(), which can only generate a fixed number of samples).
The oscillator is based on a standard quadrature one (see source_ohc()), from which we use only the real part (cosinus).