procedure TriangleToneInit(Freq: Double; Phase: Double; Mag: Double; asym: Double; var ToneState: TTriangleState; Complex: Boolean);
Initialize the generation of a triangle function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Freq | Double | scalar |
| 2 | Phase | Double | scalar |
| 3 | Mag | Double | scalar |
| 4 | asym | Double | scalar |
| 5 | ToneState | TTriangleState | |
| 6 | Complex | Boolean |
Result: stored in self (calling object)
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