fade method
void
fade({})
override
Fade generator.
Implementation
@override
void fade({
required final double length,
final double endGain = 0.0,
final double? startGain,
final double preFade = 0.0,
}) {
checkDeadSound();
final startTime = context.currentTime.value;
final endTime = startTime + length;
generator.gain.automate(
startTime: startTime,
startValue: startGain ?? generator.gain.value,
endTime: endTime,
endValue: endGain,
);
}