# Sound

[Common Attributes](https://scenegroup.gitbook.io/cavalry/nodes/behaviours/common-attributes-behaviours) +

**File** - drag in an audio file from the [Asset Window](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/asset-window)

**Equalizer** - preview your sound file and isolate Frequency Bands. Use your cursor to remove/ add bands to be omitted/ included. The buttons to the right will select or deselect all bands.

**Frequency Bands** - set the number of bands to sample.

**Volume Clipping** - values that fall below this threshold will be ignored (represented by a red line in the equalizer).

**Value Offset** - add/ remove a value to the input.&#x20;

**Frame Offset** - offset audio playback in the timeline.

**Sub Steps** - can be used to 'smooth' the sound signal. With a value of 0 Cavalry samples the audio file at each frame number. By adding sub steps Cavalry will sample more often. e.g. a value of 1 will sample at frames 0.5, 1 and 1.5 and create an average of those values.

**Smoothing Frames** - can be used to 'smooth' the sound signal. This will increase the number of frames to create a sample. e.g. a value of 2 will sample the current frame and the one before and average out those values.

{% hint style="info" %}
Dragging an audio file directly from the [Assets Window](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/asset-window) into the [Project Window](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/scene-window) will create a Sound node using your audio file.
{% endhint %}

{% hint style="warning" %}
When using **Sub Steps** and **Smoothing Frames** expect a performance hit of $$(smoothingFrames+1)\*subSteps$$&#x20;

e.g. **Smoothing Frames = 2** and **Sub Steps = 4** will create a **(2 + 1) \* 4 = 12x** time penalty on the node.
{% endhint %}

{% hint style="danger" %}

* In order to hear audio in playback you'll need to enable **Audio Playback** in the settings at the bottom of the [Viewport](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/viewport).
* It is not currently possible to export audio.
* Embedded audio (e.g. in a .mov) is not currently supported. Please see [Assets Window](https://scenegroup.gitbook.io/cavalry/user-interface/menus/window-menu/asset-window) for supported audio formats.
  {% endhint %}
