Scripting API

Scripting API

Decibels

Class in Abyss.Core, from Abyss.Core.

A volume as a share of the whole and as decibels, turned into each other: a bus's fader is in decibels, a sound's volume and a meter's level a share from zero to one.

public static class Decibels

Remarks

A half is about -6 decibels and a tenth -20: twenty times the share's logarithm. The quietest a fader goes, AudioMix.LeastVolume, stands for silence both ways, so a slider's zero can be given to a bus as it is.

Methods

FromLinear

public static float FromLinear(float linear)

A share of the whole in decibels: one is zero, a half about -6; zero, or less, the quietest a fader goes.

Parameters

  • linear

ToLinear

public static float ToLinear(float decibels)

Decibels as a share of the whole: zero is one, -6 about a half; the quietest a fader goes, or less, zero.

Parameters

  • decibels