Lingo Dictionary > D-F > fadeIn()

 

fadeIn()

Syntax

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

Description

This function immediately sets the volume of sound channel channelNum to zero and then brings it back to the current volume over the given number of milliseconds. The default is 1000 milliseconds (1 second) value is given.

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

Example

This Lingo fades in sound channel 3 over a period of 3 seconds from the beginning of cast member introMusic2.

sound(3).play(member("introMusic2"))
sound(3).fadeIn(3000)

See also

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