bels = -62;

        masterGain.connect(analyser);

        let timeBuffer = new Uint8Array(analyser.frequencyBinCount);
        let frequencyBuffer = new Uint8Array(analyser.frequencyBinCount);
        let oscillators = {};

        const playFrequency = (frequency) => {
          if (frequency in oscillators) return;
          let osc = audioContext.createOscillator();
          osc.connect(masterGain);
          osc.type = document.querySelector(`#waveform`).value;
          osc.frequency.value = frequen