Taos API Reference
    Preparing search index...

    Class AudioAnalyser

    Wraps an AnalyserNode for visualization and level metering. Acts as a pass-through node — connect a source to input and (optionally) output onward — so it can tap any point of the graph without changing the signal. Reuse the out typed arrays across frames to avoid per-frame allocation.

    const a = audio.createAnalyser();
    bus.connect(a.input); // tap the bus
    const wave = new Float32Array(a.node.fftSize);
    function draw() { a.getWaveform(wave); ... }
    Index

    Constructors

    Properties

    The underlying analyser. Connect sources here; this is also input.

    Accessors

    Methods

    • Root-mean-square amplitude of the current waveform in [0, 1] — a cheap loudness/level estimate for meters and reactive visuals.

      Returns number