@audio/effect-ringmod 1.1.4 → 1.1.5
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/README.md +1 -1
- package/package.json +1 -1
- package/ring-mod.d.ts +1 -1
- package/ring-mod.js +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Multiplies signal by a carrier oscillator — produces sum and difference freque
|
|
|
15
15
|
**`fc`** carrier frequency Hz (default 440) · **`mix`** wet/dry 0–1 (default 1) · **`fs`** sample rate
|
|
16
16
|
|
|
17
17
|
```js
|
|
18
|
-
import
|
|
18
|
+
import ringMod from '@audio/effect-ringmod'
|
|
19
19
|
|
|
20
20
|
let p = { fc: 300, mix: 1, fs: 44100 }
|
|
21
21
|
for (let buf of stream) ringMod(buf, p)
|
package/package.json
CHANGED
package/ring-mod.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export interface RingModOptions {
|
|
|
12
12
|
* Mutates `data` in place and returns the same reference. Pass the same params
|
|
13
13
|
* object across calls — the running carrier phase persists on it (`_phase`).
|
|
14
14
|
*/
|
|
15
|
-
export default function ringMod(data:
|
|
15
|
+
export default function ringMod<T extends Float32Array | Float64Array>(data: T, params?: RingModOptions): T
|
package/ring-mod.js
CHANGED