SignalUtils::TriangleToneInit Function

void TriangleToneInit(double Freq, double Phase, double Mag, double asym, TTriangleState &ToneState, bool Complex = false);

Initialize the generation of a triangle function.

#NameTypeDescription
1Freqdouble
2Phasedouble
3Magdouble
4asymdouble
5ToneStateTTriangleState &
6Complex = falsebool
Remarks:

Initialize a triangular signal ToneState with frequency Freq, initial Phase, Asym assymetry and amplitude Mag. Set Complex to true to generate a complex signal. ToneState is to be passed to the TriangleTone routine to actually generate the time series.

See Also: SignalUtils::TriangleTone, SignalUtils::Tone
Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler