SignalUtils.SquareTone Method

Overload List

#SignatureDescription
1void SquareTone(TVec Dst, ref TSquareToneState State)Generate a square wave function.
2void SquareTone(TVec Dst, Int32 SampleCount, Double Freq, Double Phase, Double Mag, Boolean Complex, Int32 MaxHarmonics)Generate a square wave function.

Overload 1: void SquareTone(TVec Dst, ref TSquareToneState State)

Generate a square wave function.

#NameTypeDescription
1DstTVecsource TVec
2StateTSquareToneState (ref)

Result: stored in self (calling object)

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

Overload 2: void SquareTone(TVec Dst, Int32 SampleCount, Double Freq, Double Phase, Double Mag, Boolean Complex, Int32 MaxHarmonics)

Generate a square wave function.

#NameTypeDescription
1DstTVecsource TVec
2SampleCountInt32
3FreqDoublescalar
4PhaseDoublescalar
5MagDoublescalar
6ComplexBoolean
7MaxHarmonicsInt32

Result: stored in self (calling object)

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