UNPKG

@thi.ng/dsp

Version:

Composable signal generators, oscillators, filters, FFT, spectrum, windowing & related DSP utils

8 lines (7 loc) 194 B
import { MapG2, MapG3 } from "./mapg.js"; function sum(a, b, c) { return c ? new MapG3((a2, b2, c2) => a2 + b2 + c2, a, b, c, 0) : new MapG2((a2, b2) => a2 + b2, a, b, 0); } export { sum };