Lingo Dictionary > S > sound fadeIn |  |

sound fadeIn

Syntax

    sound(whichChannel).fadeIn()
    sound(whichChannel).fadeIn(milliseconds)
    sound fadeIn whichChannel
    sound fadeIn whichChannel, ticks

Description

Command; fades in a sound in the specified sound channel over a period of frames or ticks.

| When `ticks` is specified, the fade in occurs evenly over that period of time.
| When`ticks` is not specified, the default number of ticks is calculated as 15 * (60 / (tempo setting)) based on the tempo setting for the first frame of the fade in.

The fade in continues at a predetermined rate until the number of ticks has elapsed, or until the sound in the specified channel changes.

This command has been replaced by the `fadeIn()` command, which requires dot syntax. Consider using that command instead. When using `fadeIn()` with dot syntax, the fade in occurs over the specified number of milliseconds.

The default length of the fade in is one second, regardless of whether ticks or milliseconds are being used.

Example

This statement fades in the sound in channel 1 over 5.5 seconds:

    sound(1).fadeIn(5500)

See also

`fadeIn(), fadeOut(), fadeTo(), sound fadeOut`