sound_pressure_level library

Provides type-safe units for sound pressure level.

Import this file to use logarithmic SPL quantities, pressure bridge helpers, and num extensions like 94.dBSPL.

Classes

AffineQuantity<T extends Unit<T>, Q extends AffineQuantity<T, Q>>
Base class for quantities whose conversions are affine instead of purely multiplicative.
InverseQuantity<T extends Unit<T>, Q extends InverseQuantity<T, Q>>
Base class for quantities whose conversions route through a reciprocal canonical form.
LinearQuantity<T extends LinearUnit<T>, Q extends LinearQuantity<T, Q>>
An abstract base class for physical quantities with linear (factor-based) unit conversions.
LinearUnit<T extends LinearUnit<T>>
A contract for units that scale linearly (via a simple multiplier).
LogarithmicQuantity<T extends Unit<T>, Q extends LogarithmicQuantity<T, Q>>
Base class for quantities that represent logarithmic levels of another physical dimension.
Quantity<T extends Unit<T>>
An abstract representation of a physical quantity, encapsulating a numerical value and a specific unit of measurement.
SoundPressureLevel
Represents an absolute sound pressure level.
Unit<T extends Unit<T>>
A base contract for all unit enums.

Enums

SoundPressureLevelUnit
Represents units of sound pressure level.

Extensions

PressureSoundPressureLevelBridge on Pressure
Provides bridge helpers between Pressure and SoundPressureLevel.
SoundPressureLevelCreation on num
Provides convenient factory methods for creating SoundPressureLevel instances.
SoundPressureLevelPressureBridge on SoundPressureLevel
Provides bridge helpers from SoundPressureLevel back to Pressure.
SoundPressureLevelValueGetters on SoundPressureLevel
Provides convenient access to SoundPressureLevel values.