void ToneInit(double Freq, double Phase, double Mag, TToneState &ToneState, bool Complex = false);
Initialize the generation of a sine function.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Freq | double | |
| 2 | Phase | double | |
| 3 | Mag | double | |
| 4 | ToneState | TToneState & | |
| 5 | Complex = false | bool |
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
Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler