You are here: Symbol Reference > SignalUtils Namespace > Functions > SignalUtils.SquareTone Function
DSP Master VCL
ContentsIndex
PreviousUpNext
SignalUtils.SquareTone Function

Generate a square wave function.

Pascal
procedure SquareTone(const Dst: TVec; SampleCount: integer; Freq: double; Phase: double; Mag: double; Complex: boolean = false; const MaxHarmonics: integer = -1); overload;

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.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!