const buffer = new AudioBuffer({
numberOfChannels: 2,
length: 22050,
sampleRate: 44100,
});Basic concepts behind Web Audio API / notebook
Basic concepts behind Web Audio API
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const buffer = new AudioBuffer({
numberOfChannels: 1,
length: 22050,
sampleRate: 22050,
});