Skip to main content

Moog filter

Moog filter is named after the “ladder” filter in Moog synthesizers. It’s a voltage controlled filter (named “ladder” after the shape of the circuit) that creates a warm, thick sound. It’s basically a low-pass filter.

Visualization

Quick Start

import { createBitcrusherNode } from "clawdio";

const context = new AudioContext();
const oscillatorNode = context.createOscillator();
oscillatorNode.start();

const createMoogWorklet = async (id: string) => {
// Create the node using our helper function
const moog = await createMoogNode(context);

// Connect the node
oscillatorNode.connect(moog.node);
moog.node.connect(context.destination);
};

await createMoogWorklet();

Controls

PropertyTypeDefaultDescription
Resonancenumber4Sets base resonance of signal
Cutoffnumber0.10 to 1. The amount of cutoff, higher number means stronger effect.

Resonance

const moog = await createMoogNode(context);
const moogNode = moog.node;

const setResonance = (resonance: number) => {
moogNode.port.postMessage({ type: "set-resonance", data: resonance });
};

// Set the bits inside worklet anytime you need
setResonance(1);

Cutoff

const moog = await createMoogNode(context);
const moogNode = moog.node;

const setCutoff = (cutoff: number) => {
moogNode.port.postMessage({ type: "set-cutoff", data: cutoff });
};

// Set the bits inside worklet anytime you need
setCutoff(1);