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,
(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
Learning/Lingo Examples folder inside the Director application folder.
Example
These statements pan the sound in sound channel 2 from the left channel to the right channel:
-- Lingo syntax
repeat with x = -100 to 100
sound(2).pan = x
end repeat
// JavaScript syntax
for (var x = -100; x <= 100; x++) {
sound(2).pan = x;
}
See also
Sound Channel
pan (QTVR property)
Usage
-- Lingo syntax
spriteObjRef.pan
// JavaScript syntax
spriteObjRef.pan;
Description
QuickTime VR sprite property; the current pan of the QuickTime VR movie. The value is
in degrees.
This property can be tested and set.
paragraph
Usage
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]
used in a completed movie, see the Sound Control movie in the
pan
affects which speaker
pan
paragraph
911
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