// Generated from the audio.js manifest (params metadata is the source of truth). // Regenerate: node tools/dts.js in @audio/plugin. Do not edit by hand. /** Automatable number — scalar, `t => value` fn, or breakpoint curve {t, v} */ type Auto = number | ((t: number) => number) | { t: number[], v: number[] } /** Per-block param values as delivered by hosts (numbers arrive as 1-length Float32Array) */ type Live = Record type Transport = Readonly<{ playing: boolean, bpm: number, beat: number, barStart: number, timeSig: [number, number] }> /** What a host hands a processor it builds: the contract's Context (CONTRACT.d.ts, 1.0) */ type Ctx = { readonly sampleRate: number, readonly maxBlockSize: number, readonly maxChannels: number, readonly layouts?: { readonly inputs: readonly (string | undefined)[], readonly outputs: readonly (string | undefined)[] }, readonly params: Live, readonly buffers: Readonly>, readonly events?: readonly { time: number, kind: 'on' | 'off', midi: number, velocity: number, id: number }[], emit(name: string, value: number): void, readonly transport: Transport } type Process = (inputs: Float32Array[][], outputs: Float32Array[][], params: Live) => void /** Chainable-host options for 'formantShift' */ export interface FormantShiftOptions { /** -24..24 st (default 0) */ "semitones"?: Auto at?: number | string duration?: number | string } export declare const formantShift: { (ctx: Ctx): Process channels: "any" latency: 2048 tail: (at: { sampleRate: number, params: Live, buffers?: {}, transport: Transport }) => number params: { /** -24..24 st (default 0) */ "semitones": { type: "number", min: -24, max: 24, default: 0, unit: "st", smoothing: 0.01 } } }