dutyCycle property

double get dutyCycle

Duty cycle of the pulsewave. Percentage of the cycle in which wave is in the high state. Clamped between 0 and 1.

0.0 and 1.0 will probably not be heard. 0.5 will sound exactly like a square wave with the same frequency.

Implementation

double get dutyCycle => _sound.dutyCycle;
set dutyCycle (double value)

Implementation

set dutyCycle(double value) => _sound.dutyCycle = value.clamp(0, 1);