dsp.js | Digital Signal Processing for Javascript | Audio Utils library
kandi X-RAY | dsp.js Summary
kandi X-RAY | dsp.js Summary
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.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dsp.js
dsp.js Key Features
dsp.js Examples and Code Snippets
Community Discussions
Trending Discussions on dsp.js
QUESTION
Trying to do some basic wavetable synthesis (developing an addon for p5.sound) – and wondering if it's possible to dynamically change the waveform of an oscillator while it's playing (constant tone rather than note duration)? In my basic testing, the setPeriodicWave()
function has to be called before the oscillator is connected to the AudioContext output then started. Hoping to do some dynamic wavetable synth (with two hard panned channels) for feeding into the X-Y mode of an oscilloscope (for vector visuals based on audio signals). The workflow above, constantly creating a new oscillator with every wavetable change, causes lots of artifacts and phase-shifting issues... it would be great if I could start two oscillators and just update their waveform. Any tips on workflow for doing so? My abstracted workflow:
- create oscillator with 'custom' type (inited with a flat/silent wave)
- custom
setWavetable()
which uses functions from dsp.js tocreatePeriodicWave()
with array values - re-init oscillator with this wave (stop oscil, disconnect/trash oscil, init new oscil w/ wave, connect + start oscil)
ANSWER
Answered 2020-Jul-10 at 15:01What issues are you having? As an example, this works for me. I can clearly hear the sound change:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dsp.js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page