This commit is contained in:
parent
7ff9024ba5
commit
164aea2eae
1 changed files with 5 additions and 4 deletions
|
@ -27,12 +27,13 @@
|
||||||
<BUTTON onclick="
|
<BUTTON onclick="
|
||||||
F.A?.close();
|
F.A?.close();
|
||||||
F.A=A=new AudioContext;
|
F.A=A=new AudioContext;
|
||||||
|
D=Date.now();
|
||||||
// kill some time for the audio context to start
|
// kill some time for the audio context to start
|
||||||
S='@qx@'+F.value.toLowerCase();
|
S='@'+F.value.toLowerCase();
|
||||||
// stack
|
// stack
|
||||||
B=[];
|
B=[];
|
||||||
// stack variables
|
// stack variables
|
||||||
K=O=T=Z=L=0;
|
K=L=O=T=Z=0;
|
||||||
U=137;
|
U=137;
|
||||||
V=40;
|
V=40;
|
||||||
// samples
|
// samples
|
||||||
|
@ -94,7 +95,7 @@ M=_=>{
|
||||||
// play sample
|
// play sample
|
||||||
S=C[a]+S.slice(s--);
|
S=C[a]+S.slice(s--);
|
||||||
|
|
||||||
// loop
|
// loop (but don't get too far ahead)
|
||||||
(S=S.slice(s))&&setTimeout(M,50)
|
A.state!='closed'&&(S=S.slice(s))&&setTimeout(M,1000*T-Date.now()+D);
|
||||||
};M()
|
};M()
|
||||||
">#play</BUTTON> <BUTTON ONCLICK=F.A.close()>#stop
|
">#play</BUTTON> <BUTTON ONCLICK=F.A.close()>#stop
|
||||||
|
|
Loading…
Add table
Reference in a new issue