UNPKG

meyda

Version:

Real-time feature extraction for the web audio api

14 lines (11 loc) 237 B
import { mu } from "./extractorUtilities"; export default function ({ ampSpectrum, }: { ampSpectrum: Float32Array; }): number { if (typeof ampSpectrum !== "object") { throw new TypeError(); } return mu(1, ampSpectrum); }