I have’nt idea
or
t?0:(fx=bz=new Float64Array(4e6),$b=[]),fxi=callCount=0,
((lpf=function(i,f){
fxii=fxi++,
fx[fxii]??=0,
fx[fxii]+=((i)-fx[fxii])*f
return fx[fxii]
},
hpf=highpass=function(i,f)
{
return i - lpf(i, f)
},
bpf=bandpass=function(i,hf,lf)
{
return hpf(lpf(i,hf),lf)
},
nf=notch=function(i,hf,lf)
{
return (hpf(i,hf)+lpf(i,lf))/1.75
},
lbf=lowBoost=function(i,f,v)
{
return i+lpf(i,f)*v
},
hbf=highBoost=function(i,f,v)
{
return i+hpf(i,f)*v
},
bbf=bandBoost=function(i,hf,lf,v)
{
return i+bpf(i,hf,lf)*v
},
//feeshbread - 6th Wave (filters)
lpf2=function(i,f)
{
return lpf(lpf(i,f),f)
},
hpf2=function(i,f)
{
return hpf(hpf(i,f),f)
},
lpr=function(i,f,r)
{
let call=callCount++;
t?0:(bz[call+'lp6']=0,bz[call+'lp12']=0);
let ct=min(f,.999);
let R=r+r/(1-ct);
(bz[call+'lp6']+=ct*(i-bz[call+'lp6']+R*(bz[call+'lp6']-bz[call+'lp12'])))
bz[call+'lp12']+=ct*(bz[call+'lp6']-bz[call+'lp12'])
return bz[call+'lp12'];
},
hpr=function(i,f,r)
{
return i-lpr(i,f,r)
},
bpr=function(i,hf,lf,r)
{
return (hpr(lpr(i,lf,r),hf,r))/4
},
nfr=function(i,hf,lf,r)
{
return (hpr(i,hf,r)+lpr(i,lf,r))/1.75
},
lbr=function(i,f,r,v)
{
return i+lpr(i,f,r)*v
},
hbr=function(i,f,r,v)
{
return i+hpr(i,f,r)*v
},
lbr=function(i,hf,lf,r,v)
{
return i+bpr(i,hf,lf,r)*v
},
(ech$ = 0),
(lp$ = 0),
(echo = (delay, code) => (
ech$++,
($b[ech$] ??= Array(delay).fill(0)),
(ech = (code % 256) + $b[ech$][t % delay]),
($b[ech$][t % delay] = ech / 1.0625),
ech / 2
)),
(rv = delayReverb =
(delay, code,lr) => {
let out = [0, 0];
for (let $i = 0; $i <= ($A = 6); $i++) {
((out[0] += echo(
delay + $i * ($i * 2 ** 4 + 1),
lpf(code, 1 - $i / 10),
)),
(out[1] += echo(
delay + $i * ($i * 2 ** 3 + 1),
lpf(code, 1 - $i / 10),
)));
}
return tanh(atan(bpf(((out[lr] / $A + out[lr] / $A) * 2) / $A, .8, .001))) / 1.5
}))),
n=$=>2**($/12),
//Goofer Doofer note converter
noteConverter=note=>{
const notes = {
C:0,
D:2,
E:4,
F:5,
G:7,
A:9,
B:11,
};
if (note[1] === '#') return notes[note[0]]+12*note[2]+1;
if (note[1] === '-') return notes[note[0]]+12*note[2]-1;
return notes[note[0]]+12*note[1]
},
bpm=130,sr=24e3,spb=3276