Your Ad Here

Reference XPresso XPresso Nodes Common Sound Operator

Sound Operator

Basic Node Parameter

Parameter

The following input ports are available:

Play

Play: Pass a Bool value of 1 to this port to trigger sound playback.

Time

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.

Sample [-2147483647..2147483647]

Sample: A sample is the smallest unit that a sound file can have. The number of sound samples per second can vary greatly depending on the compression and quality of the sound file. This port gives you access to every sample.

Band [-2147483647..2147483647]

See Frequency Bands below. Enter the values 0, 1, 2, etc. in order to access the corresponding menus.

In the example above, a sound sample loaded into the Attribute Manager will be played each time the objects collide.

The following output ports are available:

Left [-2147483647..2147483647]

Left: The left channel’s current volume (the amplitude of the samples for the left sound channel).

Right [-2147483647..2147483647]

Right: The right channel’s current volume (the amplitude of the samples for the right sound channel).

Length

Length: The length of the sound file in seconds. If you want the number of samples instead, use the Sample port.

Samples [-2147483647..2147483647]

Samples: The total number of samples in the sound file.

Bands

The frequency spectrum of a loaded sound file will be broken down among the “Bands” added and output accordingly. The more “Bands” that are added, the more precise the sound will be output - and the longer it will take to calculate. For each individual “Band”, the following applies: If the sound file has a bandwidth of, for example, 44100 Hz (CD-quality), it will be halved internally and split up amongst the “Bands” that were added. If, for example, 512 “Bands” are added, each frequency band will have a bandwidth of 43 Hz.

Left Mag [-10000000..10000000]
Right Mag [-10000000..10000000]

Select the desired amplitude here.

Return to CINEMA 4D Index


Your Ad Here