@thi.ng/dsp 4.7.15 → 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-02-25T14:07:53Z
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
@@ -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
  # ![@thi.ng/dsp](https://media.thi.ng/umbrella/banners-20230807/thing-dsp.svg?5dc8dc3b)
15
4
 
16
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/dsp.svg)](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
- > 🚀 Help me to work full-time on these projects by [sponsoring me on
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)
@@ -148,6 +137,8 @@ well.
148
137
  interface to obtain the gen's current (last generated) value.
149
138
 
150
139
  ```ts
140
+ import { curve } from "@thi.ng/dsp";
141
+
151
142
  // create exponential curve from 0 - 10 over 5 steps
152
143
  const c = curve(0, 10, 5);
153
144
 
@@ -229,6 +220,8 @@ import { take } from "@thi.ng/transducers";
229
220
  - [modOsc](https://github.com/thi-ng/umbrella/blob/develop/packages/dsp/src/osc.ts) - FM / FMAM oscillator builder
230
221
 
231
222
  ```ts
223
+ import { osc, modOsc, saw, sin } from "@thi.ng/dsp";
224
+
232
225
  const FS = 44100;
233
226
 
234
227
  // simple 100Hz sine oscillator
@@ -460,6 +453,8 @@ be used, currently:
460
453
  - Biquad
461
454
 
462
455
  ```ts
456
+ import { biquadPeak, freqRange, filterResponse } from "@thi.ng/dsp";
457
+
463
458
  // peak biquad @ 5kHz w/ -60dB gain
464
459
  const coeffs = biquadPeak(5000 / FS, 10, -60).filterCoeffs();
465
460
  // {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/dsp",
3
- "version": "4.7.15",
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",
@@ -36,12 +36,12 @@
36
36
  "tool:diagrams": "bun tools/generate-diagrams.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.26",
40
- "@thi.ng/checks": "^3.5.0",
41
- "@thi.ng/errors": "^2.4.18",
42
- "@thi.ng/math": "^5.10.3",
43
- "@thi.ng/random": "^3.6.33",
44
- "@thi.ng/transducers": "^8.9.7"
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.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": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
291
+ "gitHead": "df9e312af741d87e6b450afcfea6a6e381662b1e\n"
292
292
  }