@thi.ng/dsp 4.7.16 → 4.7.18
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 +6 -0
- package/package.json +10 -9
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -137,6 +137,8 @@ well.
|
|
|
137
137
|
interface to obtain the gen's current (last generated) value.
|
|
138
138
|
|
|
139
139
|
```ts
|
|
140
|
+
import { curve } from "@thi.ng/dsp";
|
|
141
|
+
|
|
140
142
|
// create exponential curve from 0 - 10 over 5 steps
|
|
141
143
|
const c = curve(0, 10, 5);
|
|
142
144
|
|
|
@@ -218,6 +220,8 @@ import { take } from "@thi.ng/transducers";
|
|
|
218
220
|
- [modOsc](https://github.com/thi-ng/umbrella/blob/develop/packages/dsp/src/osc.ts) - FM / FMAM oscillator builder
|
|
219
221
|
|
|
220
222
|
```ts
|
|
223
|
+
import { osc, modOsc, saw, sin } from "@thi.ng/dsp";
|
|
224
|
+
|
|
221
225
|
const FS = 44100;
|
|
222
226
|
|
|
223
227
|
// simple 100Hz sine oscillator
|
|
@@ -449,6 +453,8 @@ be used, currently:
|
|
|
449
453
|
- Biquad
|
|
450
454
|
|
|
451
455
|
```ts
|
|
456
|
+
import { biquadPeak, freqRange, filterResponse } from "@thi.ng/dsp";
|
|
457
|
+
|
|
452
458
|
// peak biquad @ 5kHz w/ -60dB gain
|
|
453
459
|
const coeffs = biquadPeak(5000 / FS, 10, -60).filterCoeffs();
|
|
454
460
|
// {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/dsp",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.18",
|
|
4
4
|
"description": "Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -33,15 +33,16 @@
|
|
|
33
33
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
34
34
|
"pub": "yarn npm publish --access public",
|
|
35
35
|
"test": "bun test",
|
|
36
|
-
"tool:diagrams": "bun tools/generate-diagrams.ts"
|
|
36
|
+
"tool:diagrams": "bun tools/generate-diagrams.ts",
|
|
37
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
38
|
},
|
|
38
39
|
"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.
|
|
40
|
+
"@thi.ng/api": "^8.9.28",
|
|
41
|
+
"@thi.ng/checks": "^3.5.2",
|
|
42
|
+
"@thi.ng/errors": "^2.4.20",
|
|
43
|
+
"@thi.ng/math": "^5.10.5",
|
|
44
|
+
"@thi.ng/random": "^3.6.35",
|
|
45
|
+
"@thi.ng/transducers": "^8.9.10"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@microsoft/api-extractor": "^7.40.1",
|
|
@@ -288,5 +289,5 @@
|
|
|
288
289
|
],
|
|
289
290
|
"year": 2015
|
|
290
291
|
},
|
|
291
|
-
"gitHead": "
|
|
292
|
+
"gitHead": "a421058a65ba76608d94129ac29451bfedaf201c\n"
|
|
292
293
|
}
|