Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.92 KB

File metadata and controls

49 lines (33 loc) · 1.92 KB
sidebar_position 2

import AudioNodePropsTable from "@site/src/components/AudioNodePropsTable" import { Optional } from '@site/src/components/Badges';

ConvolverNode

The ConvolverNode interface represents a linear convolution effect, that can be applied to a signal given an impulse response. This is the easiest way to achieve echo or reverb effects.

:::info Convolver is a node with tail-time, which means, that it continues to output non-silent audio with zero input for the length of the buffer. :::

Constructor

constructor(context: BaseAudioContext, options?: ConvolverOptions)

ConvolverOptions

Inherits all properties from AudioNodeOptions

Parameter Type Default
buffer number Initial value for buffer.
normalize boolean true Initial value for normalize.

Or by using BaseAudioContext factory method: BaseAudioContext.createConvolver()

Properties

It inherits all properties from AudioNode.

Name Type Description
buffer AudioBuffer Associated AudioBuffer.
normalize boolean Whether the impulse response from the buffer will be scaled by an equal-power normalization when the buffer attribute is set.

:::caution Linear convolution is a heavy computational process, so if your audio has some weird artefacts that should not be there, try to decrease the duration of impulse response buffer. :::