@thi.ng/dsp 4.2.16 → 4.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-10-03T16:07:55Z
3
+ - **Last updated**: 2022-10-17T12:08:09Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [4.2.17](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@4.2.17) (2022-10-17)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - add missing opt args for modOsc() ([e67c110](https://github.com/thi-ng/umbrella/commit/e67c110))
17
+
12
18
  ## [4.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@4.2.0) (2022-04-07)
13
19
 
14
20
  #### 🚀 Features
package/osc.d.ts CHANGED
@@ -21,6 +21,7 @@ import type { IGen, StatelessOscillator } from "./api.js";
21
21
  * @param freq - normalized freq
22
22
  * @param amp - amplitude
23
23
  * @param dc - DC offset / center value
24
+ * @param phase - normalized start phase
24
25
  */
25
26
  export declare const osc: (osc: StatelessOscillator, freq: IGen<number> | number, amp?: IGen<number> | number, dc?: number, phase?: number) => Osc;
26
27
  /**
@@ -44,8 +45,10 @@ export declare const osc: (osc: StatelessOscillator, freq: IGen<number> | number
44
45
  * @param freq - main osc freq
45
46
  * @param fmod - freq modulator
46
47
  * @param amod` - normalized freq
48
+ * @param dc` - DC offset / center value
49
+ * @param phase - normalized start phase
47
50
  */
48
- export declare const modOsc: (osc: StatelessOscillator, freq: IGen<number> | number, fmod: IGen<number>, amod?: IGen<number> | number) => Osc;
51
+ export declare const modOsc: (osc: StatelessOscillator, freq: IGen<number> | number, fmod: IGen<number>, amod?: IGen<number> | number, dc?: number, phase?: number) => Osc;
49
52
  export declare class Osc extends AGen<number> {
50
53
  protected _osc: StatelessOscillator;
51
54
  protected _dc: number;
package/osc.js CHANGED
@@ -24,6 +24,7 @@ import { sum } from "./sum.js";
24
24
  * @param freq - normalized freq
25
25
  * @param amp - amplitude
26
26
  * @param dc - DC offset / center value
27
+ * @param phase - normalized start phase
27
28
  */
28
29
  export const osc = (osc, freq, amp, dc, phase) => new Osc(osc, freq, amp, dc, phase);
29
30
  /**
@@ -47,8 +48,10 @@ export const osc = (osc, freq, amp, dc, phase) => new Osc(osc, freq, amp, dc, ph
47
48
  * @param freq - main osc freq
48
49
  * @param fmod - freq modulator
49
50
  * @param amod` - normalized freq
51
+ * @param dc` - DC offset / center value
52
+ * @param phase - normalized start phase
50
53
  */
51
- export const modOsc = (osc, freq, fmod, amod = 1) => new Osc(osc, sum(fmod, isNumber(freq) ? add(freq) : freq), amod);
54
+ export const modOsc = (osc, freq, fmod, amod = 1, dc, phase) => new Osc(osc, sum(fmod, isNumber(freq) ? add(freq) : freq), amod, dc, phase);
52
55
  export class Osc extends AGen {
53
56
  constructor(_osc, freq, amp = 1, _dc = 0, phase = 0) {
54
57
  super(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/dsp",
3
- "version": "4.2.16",
3
+ "version": "4.2.18",
4
4
  "description": "Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@thi.ng/api": "^8.4.3",
38
- "@thi.ng/checks": "^3.2.6",
38
+ "@thi.ng/checks": "^3.3.1",
39
39
  "@thi.ng/errors": "^2.2.2",
40
40
  "@thi.ng/math": "^5.3.10",
41
- "@thi.ng/random": "^3.3.10",
42
- "@thi.ng/transducers": "^8.3.17"
41
+ "@thi.ng/random": "^3.3.12",
42
+ "@thi.ng/transducers": "^8.3.19"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.31.1",
46
- "@thi.ng/testament": "^0.3.2",
46
+ "@thi.ng/testament": "^0.3.3",
47
47
  "rimraf": "^3.0.2",
48
48
  "tools": "^0.0.1",
49
49
  "typedoc": "^0.22.17",
@@ -272,5 +272,5 @@
272
272
  ],
273
273
  "year": 2015
274
274
  },
275
- "gitHead": "c3f7d6598c7d7d0c61ba87150a56deac12649d7b\n"
275
+ "gitHead": "cc61bc0a890288bea00b8df81ffd73bc4851ffd3\n"
276
276
  }