     };

        const getState = () => {
          return frequencies
            .map(frequencyBinValue)
            .reduce((acc, val, idx) => {
              if (isActive(val)) {
                acc += (1 << idx);
              }
              return acc;
            }, 0);
        }

        const output = (state) => {
          let textarea = document.querySelector('textarea[readonly]');
          textarea.innerHTML += String.fromCharCode(state % 256);
        }

        const trace = (state) => {
   