User Guide
459
pan (sound property)
Syntax
sound(channelNum).pan
the pan of sound(channelNum)
Description
Property; indicates the left/right balance of the sound playing in sound channel channelNum.The
range of values is from –100 to 100. -100 indicates only the left channel is heard. 100 indicate
only the right channel is being heard. A value of 0 indicates even left/right balance, causing the
sound source to appear to be centered. For mono sounds,
pan affects which speaker (left or right)
the sound plays through.
You can change the pan of a sound object at any time, but if the sound channel is currently
performing a fade, the new pan setting doesn’t take effect until the fade is complete.
To see an example of
pan (sound property) used in a completed movie, see the Sound Control
movie in the Learning/Lingo Examples folder inside the Director application folder.
Example
This Lingo pans the sound in sound channel 2 from the left channel to the right channel:
repeat with x = -100 to 100
sound(2).pan = x
end repeat
See also
fadeIn(), fadeOut(), fadeTo(), volume (sound channel)
paragraph
Syntax
chunkExpression.paragraph[whichParagraph]
chunkExpression.paragraph[firstParagraph..lastParagraph]
Description
Text cast member property; this chunk expression allows access to different paragraphs within a
text cast member.
The paragraph is delimited by a carriage return.
put member("AnimText").paragraph[3]
See also
line...of
param()
Syntax
param(parameterPosition)
Description
Function; provides the value of a parameter passed to a handler. The expression
parameterPosition represents the parameter’s position in the arguments.
To avoid errors in a handler, this function can be used to determine the type of a particular
parameter.