Skip to content

Search

Documentation

listener component

The point positional sounds are heard from: distance sets volume, offset across its right sets pan, and the closing speed against speed_of_sound bends…

На тази страница

audio · 4 properties · Audio

The point positional sounds are heard from: distance sets volume, offset across its right sets pan, and the closing speed against speed_of_sound bends pitch. The last current listener wins; without one, sounds play flat.

In a scene, listener is the node key that applies it. A script reaches each property below as a field on node.listener: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.listener.get() and node.listener.set(table).

Properties

property type default description
current bool true Whether the mix is heard from this node; the last current one wins
ear_distance float 0 Distance between the ears along the node's right. Above 0 the pan is how much nearer one ear is; 0 pans by direction alone, opening up inside min_distance At least 0.
max_doppler float 2 The most doppler multiplies a pitch by; its inverse is the least At least 1.
speed_of_sound float 343 Units a second sound travels at, which doppler measures closing speeds against At least 0.001.