@thi.ng/dsp
Version:
Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils
28 lines (27 loc) • 396 B
JavaScript
import { map } from "@thi.ng/transducers/map";
class AProc {
constructor(_val) {
this._val = _val;
}
deref() {
return this._val;
}
xform() {
return map((x) => this.next(x));
}
}
class AProc2 {
constructor(_val) {
this._val = _val;
}
deref() {
return this._val;
}
xform() {
return map(([a, b]) => this.next(a, b));
}
}
export {
AProc,
AProc2
};