User Guide
1088 Chapter 14: Properties
Sound channels are numbered 1, 2, 3, and so on up to 8. Channels 1 and 2 are the channels that
appear in the Score.
The value of the
volume property ranges from 0 (mute) to 255 (maximum volume). A value of
255 indicates the full volume set for the machine, as controlled by the Sound object’s
soundLevel
property, and lower values are scaled to that total volume. This property allows several channels to
have independent settings within the available range.
The lower the value of the
volume sound property, the more static or noise you’re likely to hear.
Using
soundLevel may produce less noise, although this property offers less control.
To see an example of
volume used in a completed movie, see the Sound Control movie in the
Learning/Lingo Examples folder inside the Director application folder.
Example
This statement sets the volume of sound channel 2 to 130, which is a medium sound level setting:
-- Lingo syntax
sound(2).volume = 130
// JavaScript syntax
sound(2).volume = 130;
See also
Sound Channel, soundLevel
volume (Sprite)
Usage
-- Lingo syntax
spriteObjRef.volume
// JavaScript syntax
spriteObjRef.volume;
Description
Sprite property; controls the volume of a digital video movie or Windows Media cast member
specified by name or number. The values range from 0 to 256. Values of 0 or less mute the sound.
Values exceeding 256 are loud and introduce considerable distortion.
Example
This statement sets the volume of the QuickTime movie playing in sprite channel 7 to 256,
which is the maximum sound volume:
-- Lingo syntax
sprite(7).volume = 256
// JavaScript syntax
sprite(7).volume = 256;
See also
soundLevel