SignalUtils.ToneInit Method

void ToneInit(Double Freq, Double Phase, Double Mag, ref TToneState ToneState, Boolean Complex)

Initialize the generation of a sine function.

#NameTypeDescription
1FreqDoublescalar
2PhaseDoublescalar
3MagDoublescalar
4ToneStateTToneState (ref)
5ComplexBoolean

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