BeatLib


DirectForm2Filter QML Type

Applies a DF2 filter to an audio signal. More...

Import Statement: import
Inherits:

AudioEffect

Inherited By:

VolumeDetector

Properties

Methods

Detailed Description

This AudioEffect applies a series of direct form 2 filters to an MP3Decoder's audio signal.

Property Documentation

data : var

The DF2 filter's data. Set it to a JSON object with the following entries:

Example:

DirectForm2Filter {
  data: ({
    order: 8,
    sosMatrix: [
      [1, 2, 1, 1, -1.999582010463876, 0.999583152065339],
      [1, 2, 1, 1, -1.998812233343328, 0.998813374505309],
      [1, 2, 1, 1, -1.998223471725322, 0.998224612551167],
      [1, 2, 1, 1, -1.997904980861054, 0.997906121505067]
    ],
    scaleValues: [
      0.000000285400366,
      0.000000285290495,
      0.000000285206461,
      0.000000285161003
    ]
  })
}

Note: The value A0 for a DF2 filter is always 1, so the actual value of the fourth entry in a sos-section is ignored.


Method Documentation

void resetState()

Reset the filter algorithm's state and memory. Call this to treat the rest of the MP3Decoder's audio signal like a completely new audio signal.