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