@audio/shift-pvoc 1.1.2 → 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.
Files changed (2) hide show
  1. package/audio.d.ts +28 -0
  2. package/package.json +7 -3
package/audio.d.ts ADDED
@@ -0,0 +1,28 @@
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 'vocoder' */
12
+ export interface VocoderOptions {
13
+ /** -24..24 (default 0) */
14
+ "semitones"?: Auto
15
+ at?: number | string
16
+ duration?: number | string
17
+ }
18
+
19
+ export declare const vocoder: {
20
+ (ctx: Ctx): Process
21
+ channels: "any"
22
+ latency: 2048
23
+ tail: 0
24
+ params: {
25
+ /** -24..24 (default 0) */
26
+ "semitones": { type: "number", default: 0 }
27
+ }
28
+ }
package/package.json CHANGED
@@ -1,19 +1,23 @@
1
1
  {
2
2
  "name": "@audio/shift-pvoc",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Canonical phase vocoder (Bernsee/SMB) pitch shift",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "index.js",
8
8
  "exports": {
9
9
  ".": "./index.js",
10
- "./audio": "./audio.js",
10
+ "./audio": {
11
+ "types": "./audio.d.ts",
12
+ "default": "./audio.js"
13
+ },
11
14
  "./package.json": "./package.json"
12
15
  },
13
16
  "files": [
14
17
  "index.js",
15
18
  "audio.js",
16
- "host.js"
19
+ "host.js",
20
+ "audio.d.ts"
17
21
  ],
18
22
  "dependencies": {
19
23
  "@audio/spectral-pvoc": "^1.0.0",