@audio/effect-ringmod 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 +30 -0
- package/package.json +8 -4
- /package/{atom.js → audio.js} +0 -0
package/audio.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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 'ringmod' */
|
|
12
|
+
export interface RingmodOptions {
|
|
13
|
+
/** 1..5000 Hz (default 440) */
|
|
14
|
+
"fc"?: Auto
|
|
15
|
+
/** 0..1 (default 1) */
|
|
16
|
+
"mix"?: Auto
|
|
17
|
+
at?: number | string
|
|
18
|
+
duration?: number | string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare const ringmod: {
|
|
22
|
+
(ctx: Ctx): Process
|
|
23
|
+
channels: "any"
|
|
24
|
+
params: {
|
|
25
|
+
/** 1..5000 Hz (default 440) */
|
|
26
|
+
"fc": { type: "number", default: 440 }
|
|
27
|
+
/** 0..1 (default 1) */
|
|
28
|
+
"mix": { type: "number", default: 1 }
|
|
29
|
+
}
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@audio/effect-ringmod",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Ring modulator — multiplies signal by a carrier oscillator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -8,11 +8,15 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./ring-mod.js",
|
|
10
10
|
"./package.json": "./package.json",
|
|
11
|
-
"./
|
|
11
|
+
"./audio": {
|
|
12
|
+
"types": "./audio.d.ts",
|
|
13
|
+
"default": "./audio.js"
|
|
14
|
+
}
|
|
12
15
|
},
|
|
13
16
|
"files": [
|
|
14
17
|
"ring-mod.js",
|
|
15
|
-
"
|
|
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
|
-
"
|
|
44
|
+
"audio": "./audio.js"
|
|
41
45
|
}
|
/package/{atom.js → audio.js}
RENAMED
|
File without changes
|