@audio/effect-exciter 1.1.1 → 1.1.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 ADDED
@@ -0,0 +1,34 @@
1
+ // Generated from the audio.js manifest (params metadata is the source of truth).
2
+ // Regenerate: node tools/dts.js in @audio/compile. Do not edit by hand.
3
+
4
+ /** Automatable number — scalar, `t => value` fn, or breakpoint curve {t, v} */
5
+ type Auto = number | ((t: number) => number) | { t: number[], v: number[] }
6
+ /** Per-block param values as delivered by hosts (numbers arrive as 1-length Float32Array) */
7
+ type Live = Record<string, Float32Array | string | boolean>
8
+ type Ctx = { sampleRate: number, maxBlockSize: number, maxChannels: number, currentTime: number, duration?: number, events?: readonly any[], emit?: (name: string, ...args: any[]) => void, [k: string]: unknown }
9
+ type Process = (inputs: Float32Array[][], outputs: Float32Array[][], params: Live) => void
10
+
11
+ /** Chainable-host options for 'exciter' */
12
+ export interface ExciterOptions {
13
+ /** 500..8000 Hz (default 3000) */
14
+ "freq"?: Auto
15
+ /** 0..1 (default 0.5) */
16
+ "drive"?: Auto
17
+ /** 0..1 (default 0.5) */
18
+ "amount"?: Auto
19
+ at?: number | string
20
+ duration?: number | string
21
+ }
22
+
23
+ export declare const exciter: {
24
+ (ctx: Ctx): Process
25
+ channels: "any"
26
+ params: {
27
+ /** 500..8000 Hz (default 3000) */
28
+ "freq": { type: "number", default: 3000 }
29
+ /** 0..1 (default 0.5) */
30
+ "drive": { type: "number", default: 0.5 }
31
+ /** 0..1 (default 0.5) */
32
+ "amount": { type: "number", default: 0.5 }
33
+ }
34
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audio/effect-exciter",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Exciter — psychoacoustic harmonic synthesis for presence/air",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -8,11 +8,15 @@
8
8
  "exports": {
9
9
  ".": "./exciter.js",
10
10
  "./package.json": "./package.json",
11
- "./atom": "./atom.js"
11
+ "./audio": {
12
+ "types": "./audio.d.ts",
13
+ "default": "./audio.js"
14
+ }
12
15
  },
13
16
  "files": [
14
17
  "exciter.js",
15
- "atom.js"
18
+ "audio.js",
19
+ "audio.d.ts"
16
20
  ],
17
21
  "keywords": [
18
22
  "audio",
@@ -37,5 +41,5 @@
37
41
  "publishConfig": {
38
42
  "access": "public"
39
43
  },
40
- "atom": "./atom.js"
44
+ "audio": "./audio.js"
41
45
  }
File without changes