UNPKG

tone

Version:

A Web Audio framework for making interactive music in the browser.

25 lines (24 loc) 717 B
import { MeterBase, MeterBaseOptions } from "./MeterBase"; export declare type DCMeterOptions = MeterBaseOptions; /** * DCMeter gets the raw value of the input signal at the current time. * * @example * import { DCMeter, UserMedia } from "tone"; * const meter = new DCMeter(); * const mic = new UserMedia(); * mic.open(); * // connect mic to the meter * mic.connect(meter); * // the current level of the mic * const level = meter.getValue(); * @category Component */ export declare class DCMeter extends MeterBase<DCMeterOptions> { readonly name: string; constructor(options?: Partial<DCMeterOptions>); /** * Get the signal value of the incoming signal */ getValue(): number; }