Show:

BO.filters.Convolution Class

The Convolution object performs low-pass, high-pass and moving average filtering on an analog input. See Breakout/examples/filters/convolution.html for an example application.

Constructor

BO.filters.Convolution

(
  • kernel
)

Parameters:

  • kernel Number

    An array of coefficients to be used with product-sum operations for input buffers.

Item Index

Methods

Methods

processSample

(
  • val
)
Number protected

Process the value to be filtered and return the filtered result.

Parameters:

  • val Number

    The input value to be filtered.

Returns:

Number:

The resulting value after applying the filter.

Properties

coef

Number

An array of coefficients to be used with product-sum operations for input buffers. If assigned a new array, the input buffer will be cleared.

Convolution.HPF

Unknown static

High-pass filter kernel. Use by passing this array to the constructor.

Convolution.LPF

Unknown static

Low-pass filter kernel. Use by passing this array to the constructor.

Convolution.MOVING_AVERAGE

Unknown static

Moving average filter kernel. Use by passing this array to the constructor.