Contents

Audio.Absorption

An object that holds a set of absorption data.

Declaration

struct Absorption

Overview

The Sabine absorption coefficient is a value between zero and one that describes the proportion of incident sound energy a surface absorbs.

Create absorption data from an array of ten octave-band coefficients, a dictionary of frequency–coefficient pairs, or a dictionary literal:

// From an array of ten octave-band coefficients:
let data = Audio.Absorption([0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.10])

// From a dictionary of frequency–coefficient pairs:
let data = Audio.Absorption([500: 0.3, 1000: 0.4, 4000: 0.5])

// From a dictionary literal:
let data: Audio.Absorption = [500: 0.3, 1000: 0.4, 4000: 0.5]

Topics

Creating an absorption value

Scaling absorption

Initializers

Type Properties

Default Implementations

See Also

Defining acoustic properties