procedure ToneInit(Freq: Double; Phase: Double; Mag: Double; var ToneState: TToneState; Complex: Boolean);
Initialize the generation of a sine function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Freq | Double | scalar |
| 2 | Phase | Double | scalar |
| 3 | Mag | Double | scalar |
| 4 | ToneState | TToneState | |
| 5 | Complex | Boolean |
Result: stored in self (calling object)
Remarks:
Initialize a sine signal ToneState with frequency Freq, initial Phase and amplitude Mag. Set Complex to true to generate a complex signal. ToneState is to be passed to the Tone routine to generate the actuall time series.
See Also: SignalUtils.Tone, SignalUtils.TriangleTone