setWaveform method
void
setWaveform({
- GeneratorWaveformType type = GeneratorWaveformType.sine,
- double frequency = 440.0,
- double amplitude = 0.5,
Sets the waveform type, frequency, and amplitude.
Implementation
void setWaveform({
GeneratorWaveformType type = GeneratorWaveformType.sine,
double frequency = 440.0,
double amplitude = 0.5,
}) =>
_generator.setWaveform(
type: type,
frequency: frequency,
amplitude: amplitude,
);