diaElement: audioElt,
        });

        // Create a compressor node
        const compressor = new DynamicsCompressorNode(audioCtx, {
          threshold: -50,
          knee: 40,
          ratio: 12,
          attack: 0,
          release: 0.25,
        });

        // connect the AudioBufferSourceNode to the destination
        source.connect(audioCtx.destination);

        button.onclick = () => {
          const active = button.getAttribute("data-active");
          if (active === "false") {
        