@thi.ng/dsp
Version:
Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils
29 lines (28 loc) • 480 B
JavaScript
import { AGen } from "./agen.js";
import { AProc } from "./aproc.js";
const refG = (src) => new RefG(src);
class RefG extends AGen {
constructor(_src) {
super(_src.deref());
this._src = _src;
}
next() {
return this._src.deref();
}
}
const refP = (src) => new RefP(src);
class RefP extends AProc {
constructor(_src) {
super(_src.deref());
this._src = _src;
}
next() {
return this._src.deref();
}
}
export {
RefG,
RefP,
refG,
refP
};