Skip to main content

scope

The scope component renders a SharedArrayBuffer-based oscilloscope/spectrum visualizer for audio signals.

Usage

Modular:

import { scope } from "/42/ui/media/scope.js"

const myScope = scope({
fill: true,
mode: "auto",
})

Plan:

{
tag: "ui-scope",
fill: true,
mode: "auto",
}

Properties

PropertyTypeDescription
fillBooleanWhether to fill the container
modeStringVisualization mode ("auto", "oscilloscope", "spectrum")