SignalUtils.ToneInit Method

procedure ToneInit(Freq: Double; Phase: Double; Mag: Double; var ToneState: TToneState; Complex: Boolean);

Initialize the generation of a sine function.

#NameTypeDescription
1FreqDoublescalar
2PhaseDoublescalar
3MagDoublescalar
4ToneStateTToneState
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