Audio.Scattering
An object that holds a set of scattering data.
Declaration
struct ScatteringOverview
The scattering coefficient is a value between zero and one that describes the proportion of incident sound energy that is diffused or redirected by a surface, rather than absorbed.
Create scattering 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.Scattering([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.Scattering([500: 0.3, 1000: 0.4, 4000: 0.5])
// From a dictionary literal:
let data: Audio.Scattering = [500: 0.3, 1000: 0.4, 4000: 0.5]