--cięcie--
   Tone.start();

   let hiHat = new Tone.NoiseSynth({
     envelope: {
       attack: 0.001, decay: 0.1, sustain: 0, release: 0
     },
     volume: -6
   }).toDestination();

   new Tone.Loop(time => {
     hiHat.triggerAttackRelease("16n", time);
   }, "8n").start("0:0:0").stop("4:0:0");

   Tone.Transport.start();
});
