-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65ac123
commit ad0ca44
Showing
41 changed files
with
1,925 additions
and
163 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
███████╗ █████╗ ███╗ ███╗ ██████╗ ██╗ ██╗███████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ | ||
██╔════╝██╔══██╗████╗ ████║██╔═══██╗██║ ██║██╔════╝ ██╔════╝ ██╔═████╗██╔═████╗██║ ██╔╝ | ||
█████╗ ███████║██╔████╔██║██║ ██║██║ ██║███████╗ ███████╗ ██║██╔██║██║██╔██║█████╔╝ | ||
██╔══╝ ██╔══██║██║╚██╔╝██║██║ ██║██║ ██║╚════██║ ██╔═══██╗████╔╝██║████╔╝██║██╔═██╗ | ||
██║ ██║ ██║██║ ╚═╝ ██║╚██████╔╝╚██████╔╝███████║ ╚██████╔╝╚██████╔╝╚██████╔╝██║ ██╗ | ||
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ | ||
[ 𝘽𝙮𝙩𝙚𝙗𝙚𝙖𝙩 𝙀𝙙𝙞𝙩𝙞𝙤𝙣 ] | ||
❀ 𝙊𝙧𝙞𝙜𝙞𝙣𝙖𝙡 𝙎𝙤𝙣𝙜 𝙛𝙧𝙤𝙢 𝙈𝙞𝙘𝙝𝙖𝙚𝙡'𝙨 𝘽𝙁𝘽 𝘼𝙡𝙗𝙪𝙢 𝙤𝙣 𝙎𝙥𝙤𝙩𝙞𝙛𝙮 - 𝘾𝙤𝙙𝙚 𝙗𝙮 𝙪/𝙛𝙚𝙚𝙨𝙝𝙗𝙧𝙚𝙖𝙙 - 𝙍𝙚𝙢𝙖𝙠𝙚𝙙 𝙗𝙮 𝙋𝙧𝙞𝙣𝙘𝙚𝙨𝙨𝙋𝙧𝙞𝙨𝙘𝙞𝙡𝙡𝙖𝙋𝙏 ❀ | ||
[ https://open.spotify.com/album/7LrwIvSOSlL6u7UFCVLihm ] | ||
*/ | ||
|
||
// [ 𝙎𝙤𝙣𝙜 𝙋𝙧𝙚𝙛𝙚𝙧𝙚𝙣𝙘𝙚𝙨 ] | ||
Octave = 0, | ||
Pitch = 0, | ||
Cents = 0, | ||
p = round(Pitch)+(Octave*12)+(Cents/100), | ||
|
||
// [ 𝙊𝙧𝙞𝙜𝙞𝙣𝙖𝙡 𝘽𝙖𝙨𝙨 𝙎𝙚𝙦𝙪𝙚𝙣𝙘𝙚 ] | ||
b1=[-1,1,3,-2,-1,1,3,6][(t>>16)%8], | ||
|
||
// [ 𝘼𝙡𝙩𝙚𝙧𝙣𝙖𝙩𝙞𝙫𝙚 𝘽𝙖𝙨𝙨 𝙎𝙚𝙦𝙪𝙚𝙣𝙘𝙚 ] | ||
b2=[3,-2,-1,1][(t>>16)%4], | ||
|
||
// 𝙙𝙤𝙣'𝙩 𝙘𝙖𝙧𝙚 𝙖𝙗𝙤𝙪𝙩 𝙩𝙝𝙞𝙨 | ||
t?0:(fb1=0,fb=0,f=[],lp=(a,c)=>(li=fi++,f[li]??=0,f[li]+=(a-f[li])*c),hp=(a,c)=>a-lp(a,c),rhp=(a,c,r)=>(rhi=fi++,f[rhi]??=0,f[rhi]=hp(a+f[rhi]*r,c)),hb=(a,c,b)=>a+hp(a,c)*b,bp=(a,hc,lc)=>hp(lp(a,lc),hc),bb=(a,hc,lc,b)=>a+bp(a,hc,lc)*b,s=(a,cu,cd)=>(si=fi++,f[si]??=0,sr=f[si],f[si]+=(a-sr)*(sr<a?cu:cd)),n=c=>(ni=fi++,f[ni]??=0,f[ni]=f[ni]+(random()-.5-f[ni])*c),dm=1e5,d=(a,h,m,fbfn=x=>x)=>{di=fi++;f[di]??=Array(dm).fill(0);dw=dt%dm;df=a;du=0;for (let hd of h){dr=(dm+dt-round(hd.t))%dm;df+=f[di][dr]*hd.fb;du+=f[di][dr]*hd.m;}f[di][dw]=fbfn(df);return a*(1-m)+du*m;},cmp=(a,th,ra,at,rl,sc=a)=>(ci=fi++,f[ci],a/(s(max(abs(sc)-th,0),at,rl)/th*ra+1))),fi=0,dt=t, | ||
|
||
t/=8,pt=t%4096,b=a=>t*2**(((b1+p+12.8635))/12)*1%a/2-32,kc=(1-(t/1024)%1)*!(t>>10&3),k=tanh(sin(20*sqrt(t%4096)**.6))*kc**.6*!(t>>12&0)*168,m=fb=(hp(bp(-fb+(((t*2**((parseInt('FFDA6D88AAIKIHDDFFDA68AADA8AHIDDFFDA6D88AAIKIHDDFFDFDHFFDA8AIHFD'[(t>>11)%64],36)+p+0.8635)/12)<<(1.25*(t>>[10,11][t/3>>10&1])&3)>>1&63)-(t>>10&31|1))&255),.05,.9),.08)),sb=sin((2e6+pt*8)*(1-(1/(pt*100+.1))*2)/71)*(max((1-pt/2048*2),0)**2)*2*kc*(t>>12&1),sc=(t/4096%1*.8+.2)*(1-kc)**1.3,sne=(1-((t/1024)%1)**[.9,.6][t>>10&1])**1.2,he=(1-((t/8192+.5)%1))**1.7,bs=b(255)/2-16,a=lr=>tanh(cmp(hb(bb(k+tanh(sb+1*rhp(n(.5),0,0))*he*120+hp(n(.6)*128*sne,.3),.025,.2,-.5)+2*sc*(2*cmp(d(m,[{t:300+(lr?sin:cos)(t/2e3)*180,m:1,fb:0},{t:24576,m:.5,fb:.875}],.55,x=>bp(x,.1,.6)),20,1,.01,.2e-3)+bb(1.5*lp(.7*hp(b(lr?127:129),.02)+bs,(1-((t/1024)%1))**2*.3+.02),.01,.2,-.5)),.5,-.4),50,1,.01,.1e-3)/40)*128*1.1,[min(max((a(0)),-128),127),min(max((a(1)),-128),127)] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
return function(t) { | ||
t *= 1000; | ||
let lfsr = 0b11111; | ||
let o = []; | ||
|
||
for (let _ = 0; _ < 32; _++) { | ||
const bit = (lfsr & 1) ^ ((lfsr >> 1) & 1); | ||
lfsr = (lfsr >> 1) | (bit << 4); | ||
o.push(lfsr & 1); | ||
} | ||
const atari_thingy = 2 + ((t >> 7 & 7) % 3); | ||
return o[int(t * atari_thingy) % o.length]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
t?0:a=Array(n=12288).fill(0), | ||
SAMP_RATE = 44100, | ||
ts = t/SAMP_RATE, | ||
d = 261.63, | ||
rb = 277.18, | ||
r = 293.66, | ||
mb = 311.13, | ||
m = 329.63, | ||
f = 349.23, | ||
sb = 369.99, | ||
s = 392.00, | ||
lb = 415.30, | ||
l = 440.00, | ||
sib = 466.16, | ||
si = 493.88, | ||
nn=x=>(ts*x*128), | ||
mel1=nn([d*2,d*2,d*2,d*2,d*2,d*2,d*2,d*2,si,si,si,si,si,si,si,si,l,l,l,l,l,l,0,0,0,0,l,lb,l,si,d*2,r*2,m*2,m*2,m*2,0,m*2,m*2,m*2,0,m*2,m*2,m*2,0,m*2,m*2,m*2,0,m*2,m*2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