@thi.ng/dsp 4.7.14 → 4.7.16
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/CHANGELOG.md +1 -1
- package/README.md +1 -12
- package/addg.d.ts +3 -1
- package/convert.d.ts +2 -0
- package/curve.d.ts +2 -0
- package/fft.d.ts +4 -0
- package/line.d.ts +2 -0
- package/osc.d.ts +2 -0
- package/package.json +8 -8
- package/sweep.d.ts +2 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
<!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
|
|
3
|
-
> [!IMPORTANT]
|
|
4
|
-
> ‼️ Announcing the thi.ng user survey 2024 📋
|
|
5
|
-
>
|
|
6
|
-
> [Please participate in the survey here!](https://forms.gle/XacbSDEmQMPZg8197)\
|
|
7
|
-
> (open until end of February)
|
|
8
|
-
>
|
|
9
|
-
> **To achieve a better sample size, I'd highly appreciate if you could
|
|
10
|
-
> circulate the link to this survey in your own networks.**
|
|
11
|
-
>
|
|
12
|
-
> [Discussion](https://github.com/thi-ng/umbrella/discussions/447)
|
|
13
|
-
|
|
14
3
|
# 
|
|
15
4
|
|
|
16
5
|
[](https://www.npmjs.com/package/@thi.ng/dsp)
|
|
@@ -22,7 +11,7 @@
|
|
|
22
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
23
12
|
> and anti-framework.
|
|
24
13
|
>
|
|
25
|
-
> 🚀
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring me on
|
|
26
15
|
> GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
|
|
27
16
|
|
|
28
17
|
- [About](#about)
|
package/addg.d.ts
CHANGED
package/convert.d.ts
CHANGED
package/curve.d.ts
CHANGED
package/fft.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ export declare const copyComplex: (complex: ComplexArray) => ComplexArray;
|
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```ts
|
|
32
|
+
* import { conjugate } from "@thi.ng/dsp";
|
|
33
|
+
*
|
|
32
34
|
* conjugate([0, 3, 2, 1], true)
|
|
33
35
|
* // Float64Array [ 0, 3, 2, 1, 0, -1, -2, -3 ]
|
|
34
36
|
*
|
|
@@ -44,6 +46,8 @@ export declare const copyComplex: (complex: ComplexArray) => ComplexArray;
|
|
|
44
46
|
*
|
|
45
47
|
* @example
|
|
46
48
|
* ```ts
|
|
49
|
+
* import { conjugate, ifft } from "@thi.ng/dsp";
|
|
50
|
+
*
|
|
47
51
|
* // generate single-period sine (window size = 16)
|
|
48
52
|
* ifft(conjugate([0, -8, 0, 0, 0, 0, 0, 0]))[0]
|
|
49
53
|
* // [
|
package/line.d.ts
CHANGED
package/osc.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export declare const osc: (osc: StatelessOscillator, freq: IGen<number> | number
|
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* ```ts
|
|
37
|
+
* import { modOsc, osc, saw, sin, rect } from "@thi.ng/dsp";
|
|
38
|
+
*
|
|
37
39
|
* // FM sin osc using rect osc as frequency modulator
|
|
38
40
|
* modOsc(sin, 0.01, osc(rect, 0.1, 0.2))
|
|
39
41
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/dsp",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.16",
|
|
4
4
|
"description": "Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"tool:diagrams": "bun tools/generate-diagrams.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.9.
|
|
40
|
-
"@thi.ng/checks": "^3.5.
|
|
41
|
-
"@thi.ng/errors": "^2.4.
|
|
42
|
-
"@thi.ng/math": "^5.10.
|
|
43
|
-
"@thi.ng/random": "^3.6.
|
|
44
|
-
"@thi.ng/transducers": "^8.9.
|
|
39
|
+
"@thi.ng/api": "^8.9.27",
|
|
40
|
+
"@thi.ng/checks": "^3.5.1",
|
|
41
|
+
"@thi.ng/errors": "^2.4.19",
|
|
42
|
+
"@thi.ng/math": "^5.10.4",
|
|
43
|
+
"@thi.ng/random": "^3.6.34",
|
|
44
|
+
"@thi.ng/transducers": "^8.9.8"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@microsoft/api-extractor": "^7.40.1",
|
|
@@ -288,5 +288,5 @@
|
|
|
288
288
|
],
|
|
289
289
|
"year": 2015
|
|
290
290
|
},
|
|
291
|
-
"gitHead": "
|
|
291
|
+
"gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
|
|
292
292
|
}
|