@thi.ng/dsp 4.7.16 → 4.7.17

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-01T15:22:50Z
3
+ - **Last updated**: 2024-03-02T14:05:53Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
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.16",
3
+ "version": "4.7.17",
4
4
  "description": "Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -41,7 +41,7 @@
41
41
  "@thi.ng/errors": "^2.4.19",
42
42
  "@thi.ng/math": "^5.10.4",
43
43
  "@thi.ng/random": "^3.6.34",
44
- "@thi.ng/transducers": "^8.9.8"
44
+ "@thi.ng/transducers": "^8.9.9"
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": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
291
+ "gitHead": "df9e312af741d87e6b450afcfea6a6e381662b1e\n"
292
292
  }