@thi.ng/dsp 4.7.14 → 4.7.15
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/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 +6 -6
- package/sweep.d.ts +2 -0
package/CHANGELOG.md
CHANGED
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.15",
|
|
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.
|
|
39
|
+
"@thi.ng/api": "^8.9.26",
|
|
40
40
|
"@thi.ng/checks": "^3.5.0",
|
|
41
41
|
"@thi.ng/errors": "^2.4.18",
|
|
42
|
-
"@thi.ng/math": "^5.10.
|
|
43
|
-
"@thi.ng/random": "^3.6.
|
|
44
|
-
"@thi.ng/transducers": "^8.9.
|
|
42
|
+
"@thi.ng/math": "^5.10.3",
|
|
43
|
+
"@thi.ng/random": "^3.6.33",
|
|
44
|
+
"@thi.ng/transducers": "^8.9.7"
|
|
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": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
|
|
292
292
|
}
|