Class Distortion

A distortion audio effector.

Extends Effector.

Work in progress. This class currently only declares its identity (name) and an empty initializeOnAttachment() implementation — it does not yet create an audioWorkletNode, expose any tunable properties, or apply any actual distortion processing. Attaching it to a Channel or Master will not audibly change the signal yet.

Example

import { Distortion } from "@fluex/fluexgl-dsp";

const distortion = new Distortion();

await distortion.initializeOnAttachment(audioContext);

Constructor

new Distortion(): Distortion;

Takes no arguments.


Properties

name: string

Internal name for this effector. Defaults to "Distortion".


Methods

initializeOnAttachment(context: AudioContext): Promise<void>

Currently an empty implementation — no audioWorkletNode or context is set up.

Arguments

  • context: AudioContext

Returns

  • Promise<void>

Events

This class does not currently emit any events.

Getters and setters

This class does not define public getters or setters.

Class ``Distortion``