Lingo Dictionary > T-Z > volume (sound channel) |  |

volume (sound channel)

Syntax

    sound(whichChannel).volume
    the volume of sound channelNum

Description

Sound channel property; determines the volume of the sound channel specified by `channelNum`. Sound channels are numbered 1, 2, 3, and so on. Channels 1 and 2 are the channels that appear in the Score.

The value of the `volume` sound 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 `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 (sound channel)` 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:

    sound(2).volume = 130

See also

`fadeIn()`, `fadeOut()`, `soundEnabled`, `soundLevel, fadeTo(), pan (sound property)`