RolloffType#

class carb.audio.RolloffType#

Bases: pybind11_object

Distance based DSP value rolloff curve types. These represent the formula that will be used to calculate the spatial DSP values given the distance between an emitter and the listener. This represents the default attenuation calculation that will be performed for all curves that are not overridden with custom curves. The default rolloff model will follow the inverse square law (ie: `INVERSE`).

Members:

INVERSE : Defines an inverse attenuation curve where a distance at the ‘near’ distance is full volume and at the ‘far’ distance gives silence. This is calculated with a formula proportional to (1 / distance).

LINEAR : Defines a linear attenuation curve where a distance at the ‘near’ distance is full volume and at the ‘far’ distance gives silence. This is calculated with (max - distance) / (max - min).

LINEAR_SQUARE : Defines a linear square attenuation curve where a distance at the ‘near’ distance is full volume and at the ‘far’ distance gives silence. This is calculated with ((max - distance) / (max - min)) ^ 2.

Methods

__init__(self, value)

Attributes

INVERSE

LINEAR

LINEAR_SQUARE

name

value

__init__(
self: carb.audio._audio.RolloffType,
value: int,
) None#
property name#