Table Of Contents

Previous topic

9.27. The SoundEffect Object

Next topic

9.30. The NetworkDevice Object

This Page

9.29. The SoundFilter Object

A SoundFilter object represents a filter created with a set of parameters that can be applied to the output of a source.

9.29.1. Constructor

A SoundFilter object can be constructed with SoundDevice.createFilter.

9.29.2. Properties

9.29.2.1. name

Summary

The name that identifies the filter object.

Syntax

// Get
var name = filter.name;

// Set
filter.name = "LowPass01";

9.29.2.2. type

Summary

The type of the filter, as a string.

Syntax

// Get
var type = filter.type;

Note

Read Only

9.29.3. LowPass Properties

A LowPass filter is used to remove high frequency content from a signal.

9.29.3.1. gain

Summary

The gain applied to the LowPass filter.

Syntax

// Get
var gain = filter.gain;

// Set
filter.gain = 0.4;

Range

0.0 to 1.0

Default

1.0

9.29.3.2. gainHF

Summary

The gain applied to the LowPass filter acting on high frequencies.

Syntax

// Get
var gainHF = filter.gainHF;

// Set
filter.gain = 0.9;

Range

0.0 to 1.0

Default

1.0