remove clicking
All checks were successful
/ build (push) Successful in 35s

This commit is contained in:
Nycki 2025-07-06 19:31:24 -07:00
parent 8cc517fc9c
commit 968ec59529

View file

@ -9,16 +9,20 @@
@i+ge!dc-ge!dh.c
</textarea><br>
<button onclick="
A=new AudioContext();
const A=new AudioContext();
// tempo
r=.4;
e='exponentialRampToValueAtTime';
// play note with pitch and duration
p=(h,t,u)=>{
a=A.createOscillator();
a.connect(A.destination);
const b=A.createGain();
a.connect(b);
b.connect(A.destination);
a.frequency.value=h;
a.start(t*r);
a.stop(u*r);
b.gain[e](1,t*r+.1);
b.gain[e](0.001,u*r);
};
// read text from input
v=window.location.search.slice(1)||f.value;f.value=v;