EqualizerGraph

EqualizerGraph

new EqualizerGraph()

Source:
Properties:
Name Type Attributes Default Description
options.accuracy Number <optional>
1

The distance between points on the x axis. Reduces CPU load in favour of accuracy and smoothness.

options.bands Array <optional>
[]

The list of EqBands.

options.oversampling Number <optional>
5

If slope of the curve is too steep, oversample n times in order to not miss e.g. notch filters.

options.threshold Number <optional>
5

Steepness of slope to oversample, i.e. y pixels difference per x pixel

options.rendering_filter function <optional>
(b) => b.get('active')

A callback function which can be used to customize which equalizer bands are included when rendering the frequency response curve. This defaults to those bands which have their active option set to true.

EqualizerGraph is a special Graph, which contains a list of EqBands and draws the resulting frequency response curve.

Extends

Members

element :SVGPath

Source:
Inherited From:

The SVG path. Has class .aux-graph

Type:
  • SVGPath

range_x :Range

Source:
Inherited From:

The range for the x axis.

Type:

range_y :Range

Source:
Inherited From:

The range for the y axis.

Type:

Methods

drawPath()

Source:

Draws an SVG path for the current frequency response curve.

getFilterFunctions()

Source:

Returns the functions representing the frequency response of all active filters.

toBack()

Source:
Inherited From:

Moves the graph to the back, i.e. add as first element to the containing SVG group element.

toFront()

Source:
Inherited From:

Moves the graph to the front, i.e. add as last element to the containing SVG group element.