9.5.2

Table Of Contents
1104 CHAPTER 22
XPRESSO EDITOR 1105
Sound
A sound is played each time the cube and sphere collide.
With this node, you can load and play back sound les in the viewport (but not in the render). The
sound le must be in a format that CINEMA 4D supports, such as WAV or AIFF. To load the le, in the
Attribute manager, click the button that is next to the Filename text box. Use the dialog that opens
to locate and open the sound le.
In the Attribute manager, you’ll also nd a setting called Probe. This denes how many samples will
be used to calculate the amplitude — the greater the number of samples in this calculation, the more
damped the sound will become. In other words, the sound gets quieter as you increase the Probe
value.
The following input ports are available:
Play: Pass a Bool value of 1 to this port to trigger sound playback.
Sample: A sample is the smallest unit that a sound le can have. The number
of sound samples per second can vary greatly depending on the compression
and quality of the sound le. This port gives you access to every sample.
Time: Usually, you’ll want the sound to be played back at its original speed.
However, if you want to play the sound at a faster or slower rate, connect your
own time to this port.
The following output ports are available:
Left: The left channel’s current volume (the amplitude of the samples for
the left sound channel).
Length: The length of the sound le in seconds. If you want the number of
samples instead, use the Sample port.
Right: The right channel’s current volume (the amplitude of the samples for
the right sound channel).
Samples: The total number of samples in the sound le.