Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure SquareTone(const Dst: TVec; var State: TSquareToneState); | Generate a square wave function. |
| 2 | procedure SquareTone(const Dst: TVec; SampleCount: Integer; Freq: Double; Phase: Double; Mag: Double; Complex: Boolean; const MaxHarmonics: Integer); | Generate a square wave function. |
Overload 1: procedure SquareTone(const Dst: TVec; var State: TSquareToneState);
Generate a square wave function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TVec | |
| 2 | State | TSquareToneState |
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: procedure SquareTone(const Dst: TVec; SampleCount: Integer; Freq: Double; Phase: Double; Mag: Double; Complex: Boolean; const MaxHarmonics: Integer);
Generate a square wave function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TVec | |
| 2 | SampleCount | Integer | |
| 3 | Freq | Double | scalar |
| 4 | Phase | Double | scalar |
| 5 | Mag | Double | scalar |
| 6 | Complex | Boolean | |
| 7 | MaxHarmonics | Integer |
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