![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@neurosity/dsp
Advanced tools
DSP.js is a comprehensive digital signal processing library for javascript. It includes many functions for signal analysis and generation, including Oscillators (sine, saw, square, triangle), Window functions (Hann, Hamming, etc), Envelopes (ADSR), IIR Filters (lowpass, highpass, bandpass, notch), FFT and DFT transforms, Delays, Reverb.
DFT(bufferSize, sampleRate)
: Discrete Fourier Transform
var dft = new DFT(1024, 44100);
dft.forward(signal);
var spectrum = dft.spectrum;
FFT(bufferSize, sampleRate)
: Fast Fourier Transform
var fft = new FFT(2048, 44100);
fft.forward(signal);
var spectrum = fft.spectrum;
Oscillator(waveform, frequency, amplitude, bufferSize, sampleRate)
: Signal Generator
var osc = new Oscillator(SINEWAVE, 440, 1, 2048, 22050);
osc.generate();
var signal = osc.signal;
ADSR(attack, decay, sustainLevel, sustain, release, sampleRate)
: Attack-Decay-Sustain-Release Envelope
var envelope = new ADSR(0.01, 0.1, 0.5, 0.1, 0.2, 44100);
envelope.process(signal);
IIRFilter(filter, cutoff, sampleRate)
: Infinite Impulse Response Filters
var filter = IIRFilter(LOWPASS, 200, 44100);
filter.process(signal);
MultiDelay(maxDelayInSamplesSize, delayInSamples, masterVolume, delayVolume)
: Delay which feeds back its own delayed signal
var delay = MultiDelay(44100*5, 44100*1, 1.0, 0.6);
delay.process(signal);
Reverb(maxDelayInSamplesSize, delayInSamples, masterVolume, mixVolume, delayVolume, dampFrequency)
: Reverb
var reverb = Reverb(20000, 6500, 0.8, 0.5, 0.9, 4500);
reverb.process(signal);
FAQs
Digital Signal Processing for Javascript
We found that @neurosity/dsp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.