
          osc.connect( envGain );
          return osc;
        } );

        oscillators.forEach( ( o ) => {
          o.start( now );
          o.stop( now + duration );
        } );
      }
    }

    // Initialize timer when page loads
    document.addEventListener( 'DOMContentLoaded', () => {
      new Timer();
    } );

  </script>
</body>

</html>