voice:set_gain(
gain)
Set this voice's gain
A gain equal to the current one returns at once, so a caller can set the gain of every looped voice on every tick. The test is exact equality. An exponential slew lands exactly on its target, or snaps to exact zero, so a settled voice compares equal and a moving one does not.