@audio/effect-exciter 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/audio.d.ts +8 -6
- package/package.json +1 -1
package/audio.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// Generated from the audio.js manifest (params metadata is the source of truth).
|
|
2
|
-
// Regenerate: node tools/dts.js in @audio/
|
|
2
|
+
// Regenerate: node tools/dts.js in @audio/plugin. Do not edit by hand.
|
|
3
3
|
|
|
4
4
|
/** Automatable number — scalar, `t => value` fn, or breakpoint curve {t, v} */
|
|
5
5
|
type Auto = number | ((t: number) => number) | { t: number[], v: number[] }
|
|
6
6
|
/** Per-block param values as delivered by hosts (numbers arrive as 1-length Float32Array) */
|
|
7
7
|
type Live = Record<string, Float32Array | string | boolean>
|
|
8
|
-
type
|
|
8
|
+
type Transport = Readonly<{ playing: boolean, bpm: number, beat: number, barStart: number, timeSig: [number, number] }>
|
|
9
|
+
/** What a host hands a processor it builds: the contract's Context (CONTRACT.d.ts, 1.0) */
|
|
10
|
+
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<Record<string, Float32Array[] | undefined>>, readonly events?: readonly { time: number, kind: 'on' | 'off', midi: number, velocity: number, id: number }[], emit(name: string, value: number): void, readonly transport: Transport }
|
|
9
11
|
type Process = (inputs: Float32Array[][], outputs: Float32Array[][], params: Live) => void
|
|
10
12
|
|
|
11
13
|
/** Chainable-host options for 'exciter' */
|
|
@@ -25,13 +27,13 @@ export interface ExciterOptions {
|
|
|
25
27
|
export declare const exciter: {
|
|
26
28
|
(ctx: Ctx): Process
|
|
27
29
|
channels: "any"
|
|
28
|
-
tail: (at: { sampleRate: number, params: Live, buffers
|
|
30
|
+
tail: (at: { sampleRate: number, params: Live, buffers?: {}, transport: Transport }) => number
|
|
29
31
|
params: {
|
|
30
32
|
/** 500..8000 Hz (default 3000) */
|
|
31
|
-
"fc": { type: "number", default: 3000, alias: "freq" }
|
|
33
|
+
"fc": { type: "number", min: 500, max: 8000, default: 3000, unit: "Hz", curve: "log", smoothing: 0.02, alias: "freq" }
|
|
32
34
|
/** 0..1 (default 0.5) */
|
|
33
|
-
"drive": { type: "number", default: 0.5 }
|
|
35
|
+
"drive": { type: "number", min: 0, max: 1, default: 0.5 }
|
|
34
36
|
/** 0..1 (default 0.5) */
|
|
35
|
-
"amount": { type: "number", default: 0.5 }
|
|
37
|
+
"amount": { type: "number", min: 0, max: 1, default: 0.5 }
|
|
36
38
|
}
|
|
37
39
|
}
|