@thi.ng/colored-noise 0.3.3 → 0.3.4

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**: 2021-12-13T10:26:00Z
3
+ - **Last updated**: 2022-03-11T12:13:49Z
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
@@ -452,4 +452,4 @@ If this project contributes to an academic publication, please cite it as:
452
452
 
453
453
  ## License
454
454
 
455
- © 2015 - 2021 Karsten Schmidt // Apache Software License 2.0
455
+ © 2015 - 2022 Karsten Schmidt // Apache Software License 2.0
package/blue.d.ts CHANGED
@@ -2,9 +2,9 @@ import type { INorm } from "@thi.ng/random";
2
2
  /**
3
3
  * High-pass filtered noise. Opposite of {@link red}.
4
4
  *
5
- * @param n
6
- * @param scale
7
- * @param rnd
5
+ * @param n -
6
+ * @param scale -
7
+ * @param rnd -
8
8
  */
9
9
  export declare function blue(n?: number, scale?: number, rnd?: INorm): Generator<number, void, unknown>;
10
10
  //# sourceMappingURL=blue.d.ts.map
package/blue.js CHANGED
@@ -3,9 +3,9 @@ import { preseed, sum } from "./utils.js";
3
3
  /**
4
4
  * High-pass filtered noise. Opposite of {@link red}.
5
5
  *
6
- * @param n
7
- * @param scale
8
- * @param rnd
6
+ * @param n -
7
+ * @param scale -
8
+ * @param rnd -
9
9
  */
10
10
  export function* blue(n = 2, scale = 1, rnd = SYSTEM) {
11
11
  const state = preseed(n, scale, rnd);
package/green.d.ts CHANGED
@@ -3,9 +3,9 @@ import type { INorm } from "@thi.ng/random";
3
3
  * Band-pass filtered noise (interleaved blue noise). Opposite of
4
4
  * {@link violet}.
5
5
  *
6
- * @param n
7
- * @param scale
8
- * @param rnd
6
+ * @param n -
7
+ * @param scale -
8
+ * @param rnd -
9
9
  */
10
10
  export declare const green: (n?: number, scale?: number, rnd?: INorm) => Generator<number, void, unknown>;
11
11
  //# sourceMappingURL=green.d.ts.map
package/green.js CHANGED
@@ -5,8 +5,8 @@ import { interleave } from "./utils.js";
5
5
  * Band-pass filtered noise (interleaved blue noise). Opposite of
6
6
  * {@link violet}.
7
7
  *
8
- * @param n
9
- * @param scale
10
- * @param rnd
8
+ * @param n -
9
+ * @param scale -
10
+ * @param rnd -
11
11
  */
12
12
  export const green = (n = 2, scale = 1, rnd = SYSTEM) => interleave(blue(n, scale, rnd), blue(n, scale, rnd));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/colored-noise",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Customizable O(1) ES6 generators for colored noise",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,22 +34,22 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/binary": "^3.1.3",
38
- "@thi.ng/random": "^3.2.3"
37
+ "@thi.ng/binary": "^3.2.0",
38
+ "@thi.ng/random": "^3.2.4"
39
39
  },
40
40
  "devDependencies": {
41
- "@microsoft/api-extractor": "^7.19.2",
42
- "@thi.ng/api": "^8.3.3",
43
- "@thi.ng/dsp": "^4.1.3",
44
- "@thi.ng/dsp-io-wav": "^2.1.3",
45
- "@thi.ng/testament": "^0.2.3",
46
- "@thi.ng/text-canvas": "^2.2.6",
47
- "@thi.ng/transducers": "^8.1.3",
48
- "@thi.ng/vectors": "^7.4.2",
41
+ "@microsoft/api-extractor": "^7.19.4",
42
+ "@thi.ng/api": "^8.3.4",
43
+ "@thi.ng/dsp": "^4.1.5",
44
+ "@thi.ng/dsp-io-wav": "^2.1.5",
45
+ "@thi.ng/testament": "^0.2.4",
46
+ "@thi.ng/text-canvas": "^2.2.8",
47
+ "@thi.ng/transducers": "^8.3.0",
48
+ "@thi.ng/vectors": "^7.5.0",
49
49
  "rimraf": "^3.0.2",
50
50
  "tools": "^0.0.1",
51
- "typedoc": "^0.22.10",
52
- "typescript": "^4.5.3"
51
+ "typedoc": "^0.22.13",
52
+ "typescript": "^4.6.2"
53
53
  },
54
54
  "keywords": [
55
55
  "1d",
@@ -108,5 +108,5 @@
108
108
  ],
109
109
  "year": 2015
110
110
  },
111
- "gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
111
+ "gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
112
112
  }
package/pink.d.ts CHANGED
@@ -11,9 +11,9 @@ import type { INorm } from "@thi.ng/random";
11
11
  * - https://www.dsprelated.com/showarticle/908.php
12
12
  * - https://www.firstpr.com.au/dsp/pink-noise/#Voss-McCartney
13
13
  *
14
- * @param n
15
- * @param scale
16
- * @param rnd
14
+ * @param n -
15
+ * @param scale -
16
+ * @param rnd -
17
17
  */
18
18
  export declare function pink(n?: number, scale?: number, rnd?: INorm): Generator<number, void, unknown>;
19
19
  //# sourceMappingURL=pink.d.ts.map
package/pink.js CHANGED
@@ -13,9 +13,9 @@ import { preseed, sum } from "./utils.js";
13
13
  * - https://www.dsprelated.com/showarticle/908.php
14
14
  * - https://www.firstpr.com.au/dsp/pink-noise/#Voss-McCartney
15
15
  *
16
- * @param n
17
- * @param scale
18
- * @param rnd
16
+ * @param n -
17
+ * @param scale -
18
+ * @param rnd -
19
19
  */
20
20
  export function* pink(n = 8, scale = 1, rnd = SYSTEM) {
21
21
  const state = preseed(n, scale, rnd);
package/red.d.ts CHANGED
@@ -2,9 +2,9 @@ import type { INorm } from "@thi.ng/random";
2
2
  /**
3
3
  * Low-pass filtered noise (same as brown noise). Opposite of {@link blue}.
4
4
  *
5
- * @param n
6
- * @param scale
7
- * @param rnd
5
+ * @param n -
6
+ * @param scale -
7
+ * @param rnd -
8
8
  */
9
9
  export declare function red(n?: number, scale?: number, rnd?: INorm): Generator<number, void, unknown>;
10
10
  //# sourceMappingURL=red.d.ts.map
package/red.js CHANGED
@@ -3,9 +3,9 @@ import { preseed, sum } from "./utils.js";
3
3
  /**
4
4
  * Low-pass filtered noise (same as brown noise). Opposite of {@link blue}.
5
5
  *
6
- * @param n
7
- * @param scale
8
- * @param rnd
6
+ * @param n -
7
+ * @param scale -
8
+ * @param rnd -
9
9
  */
10
10
  export function* red(n = 2, scale = 1, rnd = SYSTEM) {
11
11
  const state = preseed(n, scale, rnd);
package/violet.d.ts CHANGED
@@ -2,9 +2,9 @@ import type { INorm } from "@thi.ng/random";
2
2
  /**
3
3
  * Band-stop filtered noise (interleaved red noise). Opposite of {@link green}.
4
4
  *
5
- * @param n
6
- * @param scale
7
- * @param rnd
5
+ * @param n -
6
+ * @param scale -
7
+ * @param rnd -
8
8
  */
9
9
  export declare const violet: (n?: number, scale?: number, rnd?: INorm) => Generator<number, void, unknown>;
10
10
  //# sourceMappingURL=violet.d.ts.map
package/violet.js CHANGED
@@ -4,8 +4,8 @@ import { interleave } from "./utils.js";
4
4
  /**
5
5
  * Band-stop filtered noise (interleaved red noise). Opposite of {@link green}.
6
6
  *
7
- * @param n
8
- * @param scale
9
- * @param rnd
7
+ * @param n -
8
+ * @param scale -
9
+ * @param rnd -
10
10
  */
11
11
  export const violet = (n = 2, scale = 1, rnd = SYSTEM) => interleave(red(n, scale, rnd), red(n, scale, rnd));
package/white.d.ts CHANGED
@@ -3,8 +3,8 @@ import type { INorm } from "@thi.ng/random";
3
3
  * Unfiltered noise w/ uniform distribution. Merely yields samples from
4
4
  * given PRNG.
5
5
  *
6
- * @param scale
7
- * @param rnd
6
+ * @param scale -
7
+ * @param rnd -
8
8
  */
9
9
  export declare function white(scale?: number, rnd?: INorm): Generator<number, void, unknown>;
10
10
  //# sourceMappingURL=white.d.ts.map
package/white.js CHANGED
@@ -3,8 +3,8 @@ import { SYSTEM } from "@thi.ng/random/system";
3
3
  * Unfiltered noise w/ uniform distribution. Merely yields samples from
4
4
  * given PRNG.
5
5
  *
6
- * @param scale
7
- * @param rnd
6
+ * @param scale -
7
+ * @param rnd -
8
8
  */
9
9
  export function* white(scale = 1, rnd = SYSTEM) {
10
10
  while (true) {