Author Topic: Music from very small programs  (Read 285 times)

These are very small C and JS programs that when converted to audio, make 8-bit music. (inspiration taken from https://www.youtube.com/watch?v=tCRPUv8V22o). Examples:
Code: [Select]
w=t>>9,k=32,m=2048,a=1-t/m%1,d=(14*t*t^t)%m*a,y=[3,3,4.7,2][p=w/k&3]*t/4,h="IGNNNN!!]]!Q!IW]WQNN??!!]WQNNN?".charCodeAt(w/2&15|p/3<<4)/33*t-t,s=y*.98%80+y%80+(w>>7&&a*((5*t%m*a&128)*(0x53232323>>w/4&1)+(d&127)*(0xa444c444>>w/4&1)*1.5+(d*w&1)+(h%k+h*1.99%k+h*0.49%k+h*0.97%k-64)*(4-a-a))),s*s>>14?127:sRun at 8kHz for best effect
Code: [Select]
(((t*5&t>>6)^(t>>4|t>>2&t%255.004|t*3&t>>8)-10))|(((t*5&t>>6)^(t>>4|t>>2&t%255.004|t*3&t>>8)-10)/4)Run at 8kHz for best effect
Code: [Select]
(((t*31&t>>6)^(t>>4|t>>2&t%254|t*3&t>>8)-10))|(((t*5&t>>6)^(t>>4|t>>2&t%255.004|t*3&t>>8)-31)/4)Similar to above but slightly stranger, again, run at 8kHz
Code: [Select]
t*(t>>10|t>>5|t<<2)+((t<<8)||t>>1)+sin(t/10)*(t/1000)Run at 8kHz for best effect, very hardcore


Post below some nice-sounding music
online sound synthesizer: http://wurstcaptures.untergrund.net/music/