Octave-band and fractional octave-band filter
The octaveFilter
System object™ performs octave-band or fractional octave-band filtering independently across
each input channel. An octave-band is a frequency band where the highest frequency is twice
the lowest frequency. Octave-band and fractional octave-band filters are commonly used to
mimic how humans perceive loudness. Octave filters are best understood when viewed on a
logarithmic scale, which models how the human ear weights the spectrum.
To perform octave-band or fractional octave-band filtering on your input:
Create the octaveFilter
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?.
octFilt = octaveFilter
creates a System object, octFilt
, that performs octave-band filtering
independently across each input channel.
octFilt = octaveFilter(
sets the
CenterFrequency property to centerFreq
)centerFreq
.
octFilt = octaveFilter(
sets the Bandwidth
property to centerFreq
,bw
)bw
.
octFilt = octaveFilter(___,
sets each property Name,Value
)Name
to the specified Value
.
Unspecified properties have default values.
octFilt = octaveFilter(1000,'1/3
octave','SampleRate',96000)
creates a System object, octFilt
, with a center frequency of 1000 Hz, a 1/3
octave filter bandwidth, and a sample rate of 96,000 Hz.To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
Note
octaveFilter
supports additional filter analysis functions. See Analyze Octave Filter
Design for details.
The createAudioPluginClass
and configureMIDI
functions map tunable properties of the
octaveFilter
to user-facing parameters:
Property | Range | Mapping | Units |
---|---|---|---|
CenterFrequency | [3, 22000] | log | Hz |
Bandwidth | '1 octave' , '2/3 octave' , '1/2
octave' , '1/3 octave' , '1/6
octave' , '1/12 octave' , '1/24
octave' , or '1/48 octave' | Your MIDI controller range is discretized into seven levels,
corresponding to the seven | –– |
[1]
, Sophocles J. Introduction to Signal Processing. Englewood Cliffs, NJ: Prentice Hall, 2010.[2] Acoustical Society of America. American National Standard Specification for Octave-Band and Fractional-Octave-Band Analog and Digital Filters. ANSI S1.11-2004. Melville, NY: Acoustical Society of America, 2009.
dsp.BiquadFilter
| multibandParametricEQ
| Octave Filter | octaveFilterBank
| weightingFilter