Lingo Dictionary > D-F > fadeOut()

 

fadeOut()

Syntax

sound(channelNum).fadeOut({milliseconds})
fadeOut(sound(channelNum) {, milliseconds })

Description

This function gradually reduces the volume of sound channel channelNum to zero over the given number of milliseconds, or 1000 milliseconds (1 second) if no value is given.

The current pan setting is retained for the the entire fade.

Example

This statement fades out sound channel 3 over a period of 5 seconds:

sound(3).fadeOut(5000)

See also

fadeIn(), fadeTo(), pan (sound property), volume (sound channel)