@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.
- package/CHANGELOG.md +82 -133
- package/README.md +66 -58
- package/{gen/add.d.ts → add.d.ts} +4 -2
- package/{gen/add.js → add.js} +7 -2
- package/{comp/addg.d.ts → addg.d.ts} +1 -1
- package/{comp/addg.js → addg.js} +0 -0
- package/{gen/adsr.d.ts → adsr.d.ts} +1 -1
- package/{gen/adsr.js → adsr.js} +22 -2
- package/{gen/agen.d.ts → agen.d.ts} +1 -1
- package/{gen/agen.js → agen.js} +3 -4
- package/{proc/allpass.d.ts → allpass.d.ts} +0 -0
- package/{proc/allpass.js → allpass.js} +5 -1
- package/{gen/alt.d.ts → alt.d.ts} +0 -0
- package/{gen/alt.js → alt.js} +3 -1
- package/{util/anti-alias.d.ts → anti-alias.d.ts} +0 -0
- package/{util/anti-alias.js → anti-alias.js} +1 -1
- package/{proc/aproc.d.ts → aproc.d.ts} +6 -4
- package/{proc/aproc.js → aproc.js} +8 -4
- package/{proc/biquad.d.ts → biquad.d.ts} +1 -1
- package/{proc/biquad.js → biquad.js} +15 -3
- package/bounce.d.ts +13 -0
- package/bounce.js +18 -0
- package/{util/complex.d.ts → complex.d.ts} +1 -1
- package/{util/complex.js → complex.js} +1 -1
- package/{gen/const.d.ts → const.d.ts} +0 -0
- package/{gen/const.js → const.js} +0 -0
- package/{util/convert.d.ts → convert.d.ts} +0 -0
- package/{util/convert.js → convert.js} +1 -1
- package/{gen/cosine.d.ts → cosine.d.ts} +0 -0
- package/{gen/cosine.js → cosine.js} +5 -1
- package/{gen/curve.d.ts → curve.d.ts} +0 -0
- package/{gen/curve.js → curve.js} +0 -0
- package/{proc/dcblock.d.ts → dcblock.d.ts} +0 -0
- package/{proc/dcblock.js → dcblock.js} +0 -0
- package/{proc/delay.d.ts → delay.d.ts} +0 -0
- package/{proc/delay.js → delay.js} +6 -2
- package/{proc/feedback-delay.d.ts → feedback-delay.d.ts} +0 -0
- package/{proc/feedback-delay.js → feedback-delay.js} +2 -1
- package/{fft/fft.d.ts → fft.d.ts} +1 -1
- package/{fft/fft.js → fft.js} +2 -2
- package/{util/filter-response.d.ts → filter-response.d.ts} +1 -1
- package/{util/filter-response.js → filter-response.js} +3 -2
- package/{proc/foldback.d.ts → foldback.d.ts} +0 -0
- package/{proc/foldback.js → foldback.js} +3 -1
- package/{gen/impulse-train.d.ts → impulse-train.d.ts} +0 -0
- package/{gen/impulse-train.js → impulse-train.js} +5 -0
- package/{gen/impulse.d.ts → impulse.d.ts} +0 -0
- package/{gen/impulse.js → impulse.js} +2 -0
- package/index.d.ts +56 -55
- package/index.js +56 -55
- package/{proc/integrator.d.ts → integrator.d.ts} +0 -0
- package/{proc/integrator.js → integrator.js} +2 -0
- package/internal/take.d.ts +3 -0
- package/internal/take.js +6 -0
- package/{gen/iterable.d.ts → iterable.d.ts} +1 -1
- package/{gen/iterable.js → iterable.js} +4 -4
- package/{gen/line.d.ts → line.d.ts} +0 -0
- package/{gen/line.js → line.js} +0 -0
- package/{gen/madd.d.ts → madd.d.ts} +0 -0
- package/{gen/madd.js → madd.js} +4 -0
- package/{comp/mapg.d.ts → mapg.d.ts} +2 -2
- package/{comp/mapg.js → mapg.js} +16 -2
- package/{proc/mix.d.ts → mix.d.ts} +0 -0
- package/{proc/mix.js → mix.js} +2 -1
- package/{gen/mul.d.ts → mul.d.ts} +0 -0
- package/{gen/mul.js → mul.js} +3 -0
- package/multiplex.d.ts +26 -0
- package/{comp/multiplex.js → multiplex.js} +2 -1
- package/{proc/onepole.d.ts → onepole.d.ts} +1 -1
- package/{proc/onepole.js → onepole.js} +6 -1
- package/{osc/additive.d.ts → osc-additive.d.ts} +16 -2
- package/{osc/additive.js → osc-additive.js} +16 -2
- package/osc-cos.d.ts +3 -0
- package/{osc/cos.js → osc-cos.js} +1 -1
- package/{osc/dsf.d.ts → osc-dsf.d.ts} +2 -2
- package/{osc/dsf.js → osc-dsf.js} +1 -1
- package/{osc/mix.d.ts → osc-mix.d.ts} +2 -2
- package/{osc/mix.js → osc-mix.js} +1 -1
- package/{osc/parabolic.d.ts → osc-parabolic.d.ts} +2 -2
- package/{osc/parabolic.js → osc-parabolic.js} +1 -1
- package/{osc/rect.d.ts → osc-rect.d.ts} +2 -2
- package/{osc/rect.js → osc-rect.js} +1 -1
- package/osc-saw.d.ts +3 -0
- package/{osc/saw.js → osc-saw.js} +1 -1
- package/osc-sin.d.ts +3 -0
- package/{osc/sin.js → osc-sin.js} +1 -1
- package/osc-tri.d.ts +3 -0
- package/{osc/tri.js → osc-tri.js} +1 -1
- package/{osc/wavetable.d.ts → osc-wavetable.d.ts} +2 -2
- package/{osc/wavetable.js → osc-wavetable.js} +2 -1
- package/{gen/osc.d.ts → osc.d.ts} +1 -1
- package/{gen/osc.js → osc.js} +6 -2
- package/package.json +201 -33
- package/{gen/pink-noise.d.ts → pink-noise.d.ts} +1 -1
- package/{gen/pink-noise.js → pink-noise.js} +6 -1
- package/{comp/pipe.d.ts → pipe.d.ts} +8 -1
- package/{comp/pipe.js → pipe.js} +0 -0
- package/{fft/power.d.ts → power.d.ts} +1 -1
- package/{fft/power.js → power.js} +2 -2
- package/{comp/product.d.ts → product.d.ts} +1 -1
- package/{comp/product.js → product.js} +0 -0
- package/{gen/reciprocal.d.ts → reciprocal.d.ts} +0 -0
- package/{gen/reciprocal.js → reciprocal.js} +2 -0
- package/serial.d.ts +44 -0
- package/{comp/compp.js → serial.js} +20 -10
- package/{gen/sincos.d.ts → sincos.d.ts} +0 -0
- package/{gen/sincos.js → sincos.js} +6 -1
- package/{comp/sum.d.ts → sum.d.ts} +1 -1
- package/{comp/sum.js → sum.js} +0 -0
- package/{proc/svf.d.ts → svf.d.ts} +1 -1
- package/{proc/svf.js → svf.js} +11 -1
- package/{gen/sweep.d.ts → sweep.d.ts} +1 -1
- package/{gen/sweep.js → sweep.js} +1 -1
- package/{proc/waveshaper.d.ts → waveshaper.d.ts} +0 -0
- package/{proc/waveshaper.js → waveshaper.js} +5 -1
- package/{gen/white-noise.d.ts → white-noise.d.ts} +1 -1
- package/{gen/white-noise.js → white-noise.js} +3 -1
- package/{fft/window.d.ts → window.d.ts} +1 -1
- package/{fft/window.js → window.js} +2 -2
- package/comp/compp.d.ts +0 -33
- package/comp/multiplex.d.ts +0 -11
- package/lib/index.js +0 -1703
- package/lib/index.js.map +0 -1
- package/lib/index.umd.js +0 -1
- package/lib/index.umd.js.map +0 -1
- package/osc/cos.d.ts +0 -3
- package/osc/saw.d.ts +0 -3
- package/osc/sin.d.ts +0 -3
- 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 "
|
|
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>;
|
package/{comp/pipe.js → pipe.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
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 "
|
|
2
|
-
export function
|
|
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
|
|
6
|
+
return new Serial2(a, b);
|
|
7
7
|
case 3:
|
|
8
|
-
return new
|
|
8
|
+
return new Serial3(a, b, c);
|
|
9
9
|
case 4:
|
|
10
|
-
return new
|
|
10
|
+
return new Serial4(a, b, c, d);
|
|
11
11
|
default:
|
|
12
|
-
return new
|
|
12
|
+
return new Serial(procs);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
export class
|
|
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
|
|
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
|
|
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
|
|
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;
|
package/{comp/sum.js → sum.js}
RENAMED
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IReset } from "@thi.ng/api";
|
|
2
|
-
import type { SVFType } from "
|
|
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;
|
package/{proc/svf.js → svf.js}
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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("
|
|
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
|
|
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,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 "
|
|
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
|
package/comp/multiplex.d.ts
DELETED
|
@@ -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
|