№
5289
1735723757438.jpg
(865B, 16x16)
%3Ca%20href%3D%22%2Fbtb%2Fsrc%2F1736592749536-0.gif%22%20onclick%3D%22return%20expandFile%28event%2C%2052890%29%3B%22%3E%3Cimg%20src%3D%22%2Fbtb%2Fsrc%2F1736592749536-0.gif%22%20width%3D%2216%22%20style%3D%22max-width%3A%20100%25%3B%20height%3A%20auto%3B%22%3E%3C%2Fa%3E
sq=(f,p=0.5)=>2((stone(f)%1)<p)-1,
s=t/48000,
b=94,
r=-1/0,
tone=(note)=>440(2*((note-9)/12)),
q=(a)=>s%(60/a)*a/60,
F=(a)=>sin(2PIs*a),
st=(j)=>F(tone(j)),
bass=(k)=>asin(sin(s2PI440(2*((k-9)/12))))/PI2,
cyc=(p,l)=>(floor(p/60*s))%l,
dec=(s,r=1)=>(1-q(s))**r,
lfo=(f,a,w,p=0,o=0)=>
[sin(f2PIs+p)a+o,
sign(sin(f2PI*s+p))+o,
(s+p)%(1/f)fa+o,
random()][w],
sum=(Ar)=>Ar.reduce((a,b)=>a+b,0),
R=random(),
Cho=(Ar,Fn)=>sum(Ar.map(Fn))/Ar.length,
ω=(a)=>{throw a},
p=(a,b)=>a!=b?a:r,
avg=(a)=>sum(a)/a.length,
Kick=_=>F(exp(q(_)-19)30/s),
Snare=(a)=>Kick(a)/2+R*dec(a,2)/2,
T=(M)=>(M[0].map((_,i) => M.reduce((A, R) => [...A, R[i]], []))),
Hat=_=>R*dec(_),
Chords={Maj:[0,4,7],
Min:[0,3,7],
Dim:[0,3,6],
Aug:[0,4,8],
Qua:[0,4,7,10],
Mi7:[0,3,7,10],
Ma7:[0,4,7,11],
Di7:[0,3,6,9],
mM7:[0,3,7,11]},
output=st(">@BEGJLN".charCodeAt(cyc(b2,8))-64)dec(b2,1/2)/2+bass(">2;9".charCodeAt(cyc(b/4,4))-64)/2dec(b/4,2)