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
255 indicates the full volume set for the machine, as controlled by the Sound object's
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
Using
soundLevel
To see an example of
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,
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
1088
Chapter 14: Properties
property ranges from 0 (mute) to 255 (maximum volume). A value of
volume
sound property, the more static or noise you're likely to hear.
volume
may produce less noise, although this property offers less control.
used in a completed movie, see the Sound Control movie in the
volume
soundLevel
soundLevel
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers