@thi.ng/dsp 3.0.28 → 4.0.0

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.
Files changed (129) hide show
  1. package/CHANGELOG.md +82 -133
  2. package/README.md +66 -58
  3. package/{gen/add.d.ts → add.d.ts} +4 -2
  4. package/{gen/add.js → add.js} +7 -2
  5. package/{comp/addg.d.ts → addg.d.ts} +1 -1
  6. package/{comp/addg.js → addg.js} +0 -0
  7. package/{gen/adsr.d.ts → adsr.d.ts} +1 -1
  8. package/{gen/adsr.js → adsr.js} +22 -2
  9. package/{gen/agen.d.ts → agen.d.ts} +1 -1
  10. package/{gen/agen.js → agen.js} +3 -4
  11. package/{proc/allpass.d.ts → allpass.d.ts} +0 -0
  12. package/{proc/allpass.js → allpass.js} +5 -1
  13. package/{gen/alt.d.ts → alt.d.ts} +0 -0
  14. package/{gen/alt.js → alt.js} +3 -1
  15. package/{util/anti-alias.d.ts → anti-alias.d.ts} +0 -0
  16. package/{util/anti-alias.js → anti-alias.js} +1 -1
  17. package/{proc/aproc.d.ts → aproc.d.ts} +6 -4
  18. package/{proc/aproc.js → aproc.js} +8 -4
  19. package/{proc/biquad.d.ts → biquad.d.ts} +1 -1
  20. package/{proc/biquad.js → biquad.js} +15 -3
  21. package/bounce.d.ts +13 -0
  22. package/bounce.js +18 -0
  23. package/{util/complex.d.ts → complex.d.ts} +1 -1
  24. package/{util/complex.js → complex.js} +1 -1
  25. package/{gen/const.d.ts → const.d.ts} +0 -0
  26. package/{gen/const.js → const.js} +0 -0
  27. package/{util/convert.d.ts → convert.d.ts} +0 -0
  28. package/{util/convert.js → convert.js} +1 -1
  29. package/{gen/cosine.d.ts → cosine.d.ts} +0 -0
  30. package/{gen/cosine.js → cosine.js} +5 -1
  31. package/{gen/curve.d.ts → curve.d.ts} +0 -0
  32. package/{gen/curve.js → curve.js} +0 -0
  33. package/{proc/dcblock.d.ts → dcblock.d.ts} +0 -0
  34. package/{proc/dcblock.js → dcblock.js} +0 -0
  35. package/{proc/delay.d.ts → delay.d.ts} +0 -0
  36. package/{proc/delay.js → delay.js} +6 -2
  37. package/{proc/feedback-delay.d.ts → feedback-delay.d.ts} +0 -0
  38. package/{proc/feedback-delay.js → feedback-delay.js} +2 -1
  39. package/{fft/fft.d.ts → fft.d.ts} +1 -1
  40. package/{fft/fft.js → fft.js} +2 -2
  41. package/{util/filter-response.d.ts → filter-response.d.ts} +1 -1
  42. package/{util/filter-response.js → filter-response.js} +3 -2
  43. package/{proc/foldback.d.ts → foldback.d.ts} +0 -0
  44. package/{proc/foldback.js → foldback.js} +3 -1
  45. package/{gen/impulse-train.d.ts → impulse-train.d.ts} +0 -0
  46. package/{gen/impulse-train.js → impulse-train.js} +5 -0
  47. package/{gen/impulse.d.ts → impulse.d.ts} +0 -0
  48. package/{gen/impulse.js → impulse.js} +2 -0
  49. package/index.d.ts +56 -55
  50. package/index.js +56 -55
  51. package/{proc/integrator.d.ts → integrator.d.ts} +0 -0
  52. package/{proc/integrator.js → integrator.js} +2 -0
  53. package/internal/take.d.ts +3 -0
  54. package/internal/take.js +6 -0
  55. package/{gen/iterable.d.ts → iterable.d.ts} +1 -1
  56. package/{gen/iterable.js → iterable.js} +4 -4
  57. package/{gen/line.d.ts → line.d.ts} +0 -0
  58. package/{gen/line.js → line.js} +0 -0
  59. package/{gen/madd.d.ts → madd.d.ts} +0 -0
  60. package/{gen/madd.js → madd.js} +4 -0
  61. package/{comp/mapg.d.ts → mapg.d.ts} +2 -2
  62. package/{comp/mapg.js → mapg.js} +16 -2
  63. package/{proc/mix.d.ts → mix.d.ts} +0 -0
  64. package/{proc/mix.js → mix.js} +2 -1
  65. package/{gen/mul.d.ts → mul.d.ts} +0 -0
  66. package/{gen/mul.js → mul.js} +3 -0
  67. package/multiplex.d.ts +26 -0
  68. package/{comp/multiplex.js → multiplex.js} +2 -1
  69. package/{proc/onepole.d.ts → onepole.d.ts} +1 -1
  70. package/{proc/onepole.js → onepole.js} +6 -1
  71. package/{osc/additive.d.ts → osc-additive.d.ts} +16 -2
  72. package/{osc/additive.js → osc-additive.js} +16 -2
  73. package/osc-cos.d.ts +3 -0
  74. package/{osc/cos.js → osc-cos.js} +1 -1
  75. package/{osc/dsf.d.ts → osc-dsf.d.ts} +2 -2
  76. package/{osc/dsf.js → osc-dsf.js} +1 -1
  77. package/{osc/mix.d.ts → osc-mix.d.ts} +2 -2
  78. package/{osc/mix.js → osc-mix.js} +1 -1
  79. package/{osc/parabolic.d.ts → osc-parabolic.d.ts} +2 -2
  80. package/{osc/parabolic.js → osc-parabolic.js} +1 -1
  81. package/{osc/rect.d.ts → osc-rect.d.ts} +2 -2
  82. package/{osc/rect.js → osc-rect.js} +1 -1
  83. package/osc-saw.d.ts +3 -0
  84. package/{osc/saw.js → osc-saw.js} +1 -1
  85. package/osc-sin.d.ts +3 -0
  86. package/{osc/sin.js → osc-sin.js} +1 -1
  87. package/osc-tri.d.ts +3 -0
  88. package/{osc/tri.js → osc-tri.js} +1 -1
  89. package/{osc/wavetable.d.ts → osc-wavetable.d.ts} +2 -2
  90. package/{osc/wavetable.js → osc-wavetable.js} +2 -1
  91. package/{gen/osc.d.ts → osc.d.ts} +1 -1
  92. package/{gen/osc.js → osc.js} +6 -2
  93. package/package.json +201 -33
  94. package/{gen/pink-noise.d.ts → pink-noise.d.ts} +1 -1
  95. package/{gen/pink-noise.js → pink-noise.js} +6 -1
  96. package/{comp/pipe.d.ts → pipe.d.ts} +8 -1
  97. package/{comp/pipe.js → pipe.js} +0 -0
  98. package/{fft/power.d.ts → power.d.ts} +1 -1
  99. package/{fft/power.js → power.js} +2 -2
  100. package/{comp/product.d.ts → product.d.ts} +1 -1
  101. package/{comp/product.js → product.js} +0 -0
  102. package/{gen/reciprocal.d.ts → reciprocal.d.ts} +0 -0
  103. package/{gen/reciprocal.js → reciprocal.js} +2 -0
  104. package/serial.d.ts +44 -0
  105. package/{comp/compp.js → serial.js} +20 -10
  106. package/{gen/sincos.d.ts → sincos.d.ts} +0 -0
  107. package/{gen/sincos.js → sincos.js} +6 -1
  108. package/{comp/sum.d.ts → sum.d.ts} +1 -1
  109. package/{comp/sum.js → sum.js} +0 -0
  110. package/{proc/svf.d.ts → svf.d.ts} +1 -1
  111. package/{proc/svf.js → svf.js} +11 -1
  112. package/{gen/sweep.d.ts → sweep.d.ts} +1 -1
  113. package/{gen/sweep.js → sweep.js} +1 -1
  114. package/{proc/waveshaper.d.ts → waveshaper.d.ts} +0 -0
  115. package/{proc/waveshaper.js → waveshaper.js} +5 -1
  116. package/{gen/white-noise.d.ts → white-noise.d.ts} +1 -1
  117. package/{gen/white-noise.js → white-noise.js} +3 -1
  118. package/{fft/window.d.ts → window.d.ts} +1 -1
  119. package/{fft/window.js → window.js} +2 -2
  120. package/comp/compp.d.ts +0 -33
  121. package/comp/multiplex.d.ts +0 -11
  122. package/lib/index.js +0 -1703
  123. package/lib/index.js.map +0 -1
  124. package/lib/index.umd.js +0 -1
  125. package/lib/index.umd.js.map +0 -1
  126. package/osc/cos.d.ts +0 -3
  127. package/osc/saw.d.ts +0 -3
  128. package/osc/sin.d.ts +0 -3
  129. package/osc/tri.d.ts +0 -3
@@ -1,4 +1,4 @@
1
- import { SYSTEM } from "@thi.ng/random";
1
+ import { SYSTEM } from "@thi.ng/random/system";
2
2
  import { AGen } from "./agen";
3
3
  const AMP = [3.8024, 2.9694, 2.597, 3.087, 3.4006];
4
4
  const PROB = [0.00198, 0.0128, 0.049, 0.17, 0.682];
@@ -28,6 +28,11 @@ const PROB = [0.00198, 0.0128, 0.049, 0.17, 0.682];
28
28
  */
29
29
  export const pinkNoise = (gain, rnd, amp, prob) => new PinkNoise(gain, rnd, amp, prob);
30
30
  export class PinkNoise extends AGen {
31
+ _gain;
32
+ _rnd;
33
+ _amp;
34
+ _bins;
35
+ _psum;
31
36
  constructor(_gain = 1, _rnd = SYSTEM, _amp = AMP, prob = PROB) {
32
37
  super(0);
33
38
  this._gain = _gain;
@@ -1,4 +1,11 @@
1
- import type { IGen, IProc } from "../api";
1
+ import type { IGen, IProc } from "./api";
2
+ /**
3
+ * Higher order generator. Composes a new {@link IGen} from given source gen and
4
+ * a number of {@link IProc}s (processed in series, like using {@link serial}).
5
+ *
6
+ * @param src
7
+ * @param proc
8
+ */
2
9
  export declare function pipe<A, B>(src: IGen<A>, proc: IProc<A, B>): IGen<B>;
3
10
  export declare function pipe<A, B, C>(src: IGen<A>, a: IProc<A, B>, b: IProc<B, C>): IGen<C>;
4
11
  export declare function pipe<A, B, C, D>(src: IGen<A>, a: IProc<A, B>, b: IProc<B, C>, c: IProc<C, D>): IGen<D>;
File without changes
@@ -1,5 +1,5 @@
1
1
  import type { NumericArray } from "@thi.ng/api";
2
- import type { ComplexArray } from "../api";
2
+ import type { ComplexArray } from "./api";
3
3
  /**
4
4
  * Computes the sum of the given array.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { isNumber } from "@thi.ng/checks";
2
- import { isComplex } from "../util/complex";
1
+ import { isNumber } from "@thi.ng/checks/is-number";
2
+ import { isComplex } from "./complex";
3
3
  /**
4
4
  * Computes the sum of the given array.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { IGen } from "../api";
1
+ import type { IGen } from "./api";
2
2
  /**
3
3
  * Higher order gen. Returns a {@link MapG2} or {@link MapG3} yielding
4
4
  * stepwise (non-accumulated) products of the given {@link IGen}s.
File without changes
File without changes
@@ -6,6 +6,8 @@ import { AGen } from "./agen";
6
6
  */
7
7
  export const reciprocal = (step) => new Reciprocal(step);
8
8
  export class Reciprocal extends AGen {
9
+ _step;
10
+ _n;
9
11
  constructor(_step = 1) {
10
12
  super(1);
11
13
  this._step = _step;
package/serial.d.ts ADDED
@@ -0,0 +1,44 @@
1
+ import type { IProc } from "./api";
2
+ import { AProc } from "./aproc";
3
+ /**
4
+ * Composes the given {@link IProc}s into a single new processor instance. The
5
+ * returned `IProc` processes the given procs in serial (sequence), i.e. output
6
+ * from 1st proc is used as input for 2nd etc.
7
+ *
8
+ * @remarks
9
+ * Provides optimized (loop free) versions for 2-4 inputs
10
+ *
11
+ * @param a
12
+ * @param b
13
+ */
14
+ export declare function serial<A, B, C>(a: IProc<A, B>, b: IProc<B, C>): IProc<A, C>;
15
+ export declare function serial<A, B, C, D>(a: IProc<A, B>, b: IProc<B, C>, c: IProc<C, D>): IProc<A, D>;
16
+ export declare function serial<A, B, C, D, E>(a: IProc<A, B>, b: IProc<B, C>, c: IProc<C, D>, d: IProc<D, E>): IProc<A, E>;
17
+ export declare function serial<A, B, C, D, E>(a: IProc<A, B>, b: IProc<B, C>, c: IProc<C, D>, d: IProc<D, E>, ...xs: IProc<any, any>[]): IProc<A, any>;
18
+ export declare class Serial2<A, B, C> extends AProc<A, C> {
19
+ protected _a: IProc<A, B>;
20
+ protected _b: IProc<B, C>;
21
+ constructor(_a: IProc<A, B>, _b: IProc<B, C>);
22
+ next(x: A): C;
23
+ }
24
+ export declare class Serial3<A, B, C, D> extends AProc<A, D> {
25
+ protected _a: IProc<A, B>;
26
+ protected _b: IProc<B, C>;
27
+ protected _c: IProc<C, D>;
28
+ constructor(_a: IProc<A, B>, _b: IProc<B, C>, _c: IProc<C, D>);
29
+ next(x: A): D;
30
+ }
31
+ export declare class Serial4<A, B, C, D, E> extends AProc<A, E> {
32
+ protected _a: IProc<A, B>;
33
+ protected _b: IProc<B, C>;
34
+ protected _c: IProc<C, D>;
35
+ protected _d: IProc<D, E>;
36
+ constructor(_a: IProc<A, B>, _b: IProc<B, C>, _c: IProc<C, D>, _d: IProc<D, E>);
37
+ next(x: A): E;
38
+ }
39
+ export declare class Serial extends AProc<any, any> {
40
+ protected _procs: IProc<any, any>[];
41
+ constructor(_procs: IProc<any, any>[]);
42
+ next(x: any): any;
43
+ }
44
+ //# sourceMappingURL=serial.d.ts.map
@@ -1,18 +1,20 @@
1
- import { AProc } from "../proc/aproc";
2
- export function compP(...procs) {
1
+ import { AProc } from "./aproc";
2
+ export function serial(...procs) {
3
3
  const [a, b, c, d] = procs;
4
4
  switch (procs.length) {
5
5
  case 2:
6
- return new CompP2(a, b);
6
+ return new Serial2(a, b);
7
7
  case 3:
8
- return new CompP3(a, b, c);
8
+ return new Serial3(a, b, c);
9
9
  case 4:
10
- return new CompP4(a, b, c, d);
10
+ return new Serial4(a, b, c, d);
11
11
  default:
12
- return new CompP(procs);
12
+ return new Serial(procs);
13
13
  }
14
14
  }
15
- export class CompP2 extends AProc {
15
+ export class Serial2 extends AProc {
16
+ _a;
17
+ _b;
16
18
  constructor(_a, _b) {
17
19
  super(null);
18
20
  this._a = _a;
@@ -22,7 +24,10 @@ export class CompP2 extends AProc {
22
24
  return (this._val = this._b.next(this._a.next(x)));
23
25
  }
24
26
  }
25
- export class CompP3 extends AProc {
27
+ export class Serial3 extends AProc {
28
+ _a;
29
+ _b;
30
+ _c;
26
31
  constructor(_a, _b, _c) {
27
32
  super(null);
28
33
  this._a = _a;
@@ -33,7 +38,11 @@ export class CompP3 extends AProc {
33
38
  return (this._val = this._c.next(this._b.next(this._a.next(x))));
34
39
  }
35
40
  }
36
- export class CompP4 extends AProc {
41
+ export class Serial4 extends AProc {
42
+ _a;
43
+ _b;
44
+ _c;
45
+ _d;
37
46
  constructor(_a, _b, _c, _d) {
38
47
  super(null);
39
48
  this._a = _a;
@@ -45,7 +54,8 @@ export class CompP4 extends AProc {
45
54
  return (this._val = this._d.next(this._c.next(this._b.next(this._a.next(x)))));
46
55
  }
47
56
  }
48
- export class CompP extends AProc {
57
+ export class Serial extends AProc {
58
+ _procs;
49
59
  constructor(_procs) {
50
60
  super(null);
51
61
  this._procs = _procs;
File without changes
@@ -1,4 +1,4 @@
1
- import { TAU } from "@thi.ng/math";
1
+ import { TAU } from "@thi.ng/math/api";
2
2
  import { AGen } from "./agen";
3
3
  /**
4
4
  * Generator of sine & cosine values of given frequency in the form of
@@ -18,6 +18,11 @@ import { AGen } from "./agen";
18
18
  * @param amp - amplitude (default: 1)
19
19
  */
20
20
  export class SinCos extends AGen {
21
+ _freq;
22
+ _amp;
23
+ _f;
24
+ _s;
25
+ _c;
21
26
  constructor(_freq, _amp = 1) {
22
27
  super([0, _amp]);
23
28
  this._freq = _freq;
@@ -1,4 +1,4 @@
1
- import type { IGen } from "../api";
1
+ import type { IGen } from "./api";
2
2
  /**
3
3
  * Higher order gen. Returns a {@link MapG2} or {@link MapG3} yielding
4
4
  * stepwise (non-accumulated) sums of given {@link IGen}s. Initializes
File without changes
@@ -1,5 +1,5 @@
1
1
  import type { IReset } from "@thi.ng/api";
2
- import type { SVFType } from "../api";
2
+ import type { SVFType } from "./api";
3
3
  import { AProc } from "./aproc";
4
4
  export declare const svfLP: (fc: number, q?: number | undefined) => SVF;
5
5
  export declare const svfHP: (fc: number, q?: number | undefined) => SVF;
@@ -1,4 +1,5 @@
1
- import { clamp05, PI } from "@thi.ng/math";
1
+ import { PI } from "@thi.ng/math/api";
2
+ import { clamp05 } from "@thi.ng/math/interval";
2
3
  import { AProc } from "./aproc";
3
4
  export const svfLP = (fc, q) => new SVF("lp", fc, q);
4
5
  export const svfHP = (fc, q) => new SVF("hp", fc, q);
@@ -16,6 +17,15 @@ export const svfAllpass = (fc, q) => new SVF("all", fc, q);
16
17
  * - https://en.wikipedia.org/wiki/Trapezoidal_rule
17
18
  */
18
19
  export class SVF extends AProc {
20
+ _type;
21
+ _freq;
22
+ _q;
23
+ _a1;
24
+ _a2;
25
+ _c1;
26
+ _c2;
27
+ _g;
28
+ _k;
19
29
  constructor(_type, _freq, _q = 0.5) {
20
30
  super(0);
21
31
  this._type = _type;
@@ -24,5 +24,5 @@
24
24
  * @param rate
25
25
  * @param clamp - true, if clamp at `end` value
26
26
  */
27
- export declare const sweep: (start: number, end: number, steps: number, rate?: number | undefined, clamp?: boolean) => import("..").IGen<number>;
27
+ export declare const sweep: (start: number, end: number, steps: number, rate?: number | undefined, clamp?: boolean) => import("./api").IGen<number>;
28
28
  //# sourceMappingURL=sweep.d.ts.map
@@ -1,4 +1,4 @@
1
- import { addG } from "../comp/addg";
1
+ import { addG } from "./addg";
2
2
  import { curve } from "./curve";
3
3
  /**
4
4
  * Similar to {@link curve}, but with added accumulation (via
File without changes
@@ -1,4 +1,4 @@
1
- import { PI } from "@thi.ng/math";
1
+ import { PI } from "@thi.ng/math/api";
2
2
  import { AProc } from "./aproc";
3
3
  /**
4
4
  * Customizable wave shaper for user defined shaping function supporting
@@ -26,6 +26,10 @@ import { AProc } from "./aproc";
26
26
  */
27
27
  export const waveShaper = (thresh, amp, map) => new WaveShaper(thresh, amp, map);
28
28
  export class WaveShaper extends AProc {
29
+ _coeff;
30
+ _map;
31
+ _amp;
32
+ _autoGain;
29
33
  constructor(_coeff = 3, amp = true, _map = waveshapeSigmoid) {
30
34
  super(0);
31
35
  this._coeff = _coeff;
@@ -1,5 +1,5 @@
1
1
  import type { IReset } from "@thi.ng/api";
2
- import { IRandom } from "@thi.ng/random";
2
+ import type { IRandom } from "@thi.ng/random";
3
3
  import { AGen } from "./agen";
4
4
  /**
5
5
  * White noise gen with customizable gain and
@@ -1,4 +1,4 @@
1
- import { SYSTEM } from "@thi.ng/random";
1
+ import { SYSTEM } from "@thi.ng/random/system";
2
2
  import { AGen } from "./agen";
3
3
  /**
4
4
  * White noise gen with customizable gain and
@@ -9,6 +9,8 @@ import { AGen } from "./agen";
9
9
  */
10
10
  export const whiteNoise = (gain, rnd) => new WhiteNoise(gain, rnd);
11
11
  export class WhiteNoise extends AGen {
12
+ _gain;
13
+ _rnd;
12
14
  constructor(_gain = 1, _rnd = SYSTEM) {
13
15
  super(0);
14
16
  this._gain = _gain;
@@ -1,5 +1,5 @@
1
1
  import type { FloatArray, Fn, NumericArray } from "@thi.ng/api";
2
- import type { WindowFn } from "../api";
2
+ import type { WindowFn } from "./api";
3
3
  /**
4
4
  * Creates or fills a given buffer with results of window function `fn`.
5
5
  * The buffer size MUST be the same as the signal length given to
@@ -1,5 +1,5 @@
1
- import { isNumber } from "@thi.ng/checks";
2
- import { PI, TAU } from "@thi.ng/math";
1
+ import { isNumber } from "@thi.ng/checks/is-number";
2
+ import { PI, TAU } from "@thi.ng/math/api";
3
3
  // https://en.wikipedia.org/wiki/Window_function
4
4
  const PI4 = 4 * PI;
5
5
  const PI6 = 6 * PI;
package/comp/compp.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import type { IProc } from "../api";
2
- import { AProc } from "../proc/aproc";
3
- export declare function compP<A, B, C>(a: IProc<A, B>, b: IProc<B, C>): IProc<A, C>;
4
- export declare function compP<A, B, C, D>(a: IProc<A, B>, b: IProc<B, C>, c: IProc<C, D>): IProc<A, D>;
5
- export declare function compP<A, B, C, D, E>(a: IProc<A, B>, b: IProc<B, C>, c: IProc<C, D>, d: IProc<D, E>): IProc<A, E>;
6
- export declare function compP<A, B, C, D, E>(a: IProc<A, B>, b: IProc<B, C>, c: IProc<C, D>, d: IProc<D, E>, ...xs: IProc<any, any>[]): IProc<A, any>;
7
- export declare class CompP2<A, B, C> extends AProc<A, C> {
8
- protected _a: IProc<A, B>;
9
- protected _b: IProc<B, C>;
10
- constructor(_a: IProc<A, B>, _b: IProc<B, C>);
11
- next(x: A): C;
12
- }
13
- export declare class CompP3<A, B, C, D> extends AProc<A, D> {
14
- protected _a: IProc<A, B>;
15
- protected _b: IProc<B, C>;
16
- protected _c: IProc<C, D>;
17
- constructor(_a: IProc<A, B>, _b: IProc<B, C>, _c: IProc<C, D>);
18
- next(x: A): D;
19
- }
20
- export declare class CompP4<A, B, C, D, E> extends AProc<A, E> {
21
- protected _a: IProc<A, B>;
22
- protected _b: IProc<B, C>;
23
- protected _c: IProc<C, D>;
24
- protected _d: IProc<D, E>;
25
- constructor(_a: IProc<A, B>, _b: IProc<B, C>, _c: IProc<C, D>, _d: IProc<D, E>);
26
- next(x: A): E;
27
- }
28
- export declare class CompP extends AProc<any, any> {
29
- protected _procs: IProc<any, any>[];
30
- constructor(_procs: IProc<any, any>[]);
31
- next(x: any): any;
32
- }
33
- //# sourceMappingURL=compp.d.ts.map
@@ -1,11 +0,0 @@
1
- import type { IProc } from "../api";
2
- import { AProc } from "../proc/aproc";
3
- export declare function multiplex<T, A, B>(a: IProc<T, A>, b: IProc<T, B>): Multiplex<T, [A, B]>;
4
- export declare function multiplex<T, A, B, C>(a: IProc<T, A>, b: IProc<T, B>, c: IProc<T, C>): Multiplex<T, [A, B, C]>;
5
- export declare function multiplex<T, A, B, C, D>(a: IProc<T, A>, b: IProc<T, B>, c: IProc<T, C>, d: IProc<T, D>): Multiplex<T, [A, B, C, D]>;
6
- export declare class Multiplex<A, B extends any[]> extends AProc<A, B> {
7
- protected _procs: IProc<A, any>[];
8
- constructor(procs: IProc<A, any>[]);
9
- next(x: A): B;
10
- }
11
- //# sourceMappingURL=multiplex.d.ts.map