SignalUtils::SquareTone Function

Overload List

#SignatureDescription
1void SquareTone(TVec *Dst, TSquareToneState &State);Generate a square wave function.
2void SquareTone(TVec *Dst, int SampleCount, double Freq, double Phase, double Mag, bool Complex = false, const int MaxHarmonics = - 1);Generate a square wave function.

Overload 1: void SquareTone(TVec *Dst, TSquareToneState &State);

Generate a square wave function.

#NameTypeDescription
1DstTVec *
2StateTSquareToneState &
Remarks:

Place a tone defined with a call to ToneInit in Dst. The routine is stream capable. Dst.IsDouble will be used to determine floating point precision.

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

Overload 2: void SquareTone(TVec *Dst, int SampleCount, double Freq, double Phase, double Mag, bool Complex = false, const int MaxHarmonics = - 1);

Generate a square wave function.

#NameTypeDescription
1DstTVec *
2SampleCountint
3Freqdouble
4Phasedouble
5Magdouble
6Complex = falsebool
7MaxHarmonics = - 1const int
Remarks:

Generate a square wave signal with frequency Freq, initial Phase and amplitude Mag. Set Complex to true to generate a complex signal. The routine is not stream capable. Dst.IsDouble will be used to determine floating point precision.

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