init(_:)
Creates a scattering data set from a sequence of pairs of center frequency and scattering coefficient.
Declaration
init(_ coefficientByFrequency: [Float : Float])Discussion
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.
The values will be interpolated and/or extrapolated to cover the audible frequency range.
let data = Audio.Scattering([500: 0.3, 1000: 0.4, 4000: 0.5])