JSFiddle - React, Tailwind, and code Playground

JavaScript

var context = new webkitAudioContext();
var offline = new webkitOfflineAudioContext(2, 10 * 44100, 44100);
var bufferLoader;

bufferLoader = new BufferLoader(
  context, [
    '/sound/sound1.mp3',
  ],
  finishedLoading
);

bufferLoader.load();

 function finishedLoading(bufferList) {  
    var source1 = offline.createBufferSource();
    source1.buffer = bufferList[0];
    //plan to add some filters here
    source1.connect(offline.destination);
    source1.start(0);
    offline.startRendering();
}

offline.oncomplete = function(ev) {
  var source = context.createBufferSource();
  source.buffer = ev.renderedBuffer;
  source.connect(context.destination);
  source.start(0);
    //want to export rendered buffer into wav file
}