User Guide

611
The sound(whichChannel).fadeIn() syntax performs the fade over a specified number of
frames or milliseconds.
When milliseconds is specified, the fade in occurs evenly over that period of time.
When milliseconds is not specified, the default number of ticks is calculated as 15 * (1000 /
(tempo setting)) based on the tempo setting for the first frame of the fade in.
The
sound fadeIn whichChannel syntax performs the fade over a specified number of frames or
ticks. A tick is a 60th of a second.
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 time has elapsed, or until the sound in the
specified channel changes.
Example
This statement fades in the sound in channel 1 over 5 seconds:
sound(1).fadeIn(5000)
See also
sound fadeOut, fadeTo()
sound fadeOut
Syntax
sound(whichChannel).fadeOut()
sound(whichChannel).fadeOut(milliseconds)
sound fadeOut whichChannel
sound fadeOut whichChannel, ticks
Description
Command; fades out a sound in the specified sound channel over a specified period of time.
The
sound(whichChannel).fadeOut() syntax performs the fade over a specified number of
frames or milliseconds.
When milliseconds is specified, the fade in occurs evenly over that period of time.
When milliseconds is not specified, the default number of ticks is calculated as 15 * (1000 /
(tempo setting)) based on the tempo setting for the first frame of the fade out.
The
sound fadeOut whichChannel syntax performs the fade over a specified number of frames
or ticks. A tick is a 60th of a second.
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 out.
The fade out continues at a predetermined rate until the time has elapsed, or until the sound in
the specified channel changes.