13 lines
331 B
HTML
13 lines
331 B
HTML
<html onclick="
|
|
c=new AudioContext();
|
|
r=.08;
|
|
n=(f,t,u)=>{
|
|
o=c.createOscillator();
|
|
o.connect(c.destination);
|
|
o.frequency.value=f;
|
|
o.start(t*r);
|
|
o.stop(u*r-r);
|
|
};
|
|
m=[147, 2, 147, 2, 294, 4, 220, 6, 208, 4, 196, 4, 175, 4, 147, 2, 175, 2, 196, 2];
|
|
for(i=0,t=0;i<m.length;i+=2)n(m[i],t,t+=m[i+1]);
|
|
">click anywhere
|