Experimental music from very short C programs
category: code [glöplog]
0xdeaf - thats what i call this.
Code:
// 8000Hz Bytebeat
(((t*(0xdeaf>>(t>>10&15)&(t&32768?7:9))&t>>4)*5/4-32)/2&127)+(t&4096?(t*t/100|t*t/101)*99&~t>>(t&8192?5:4)&127:0)
oh, 32 pages.
0xdeaf goes well with all `board the ole steam boat by noah lovotti.
Code:
// 11025Hz Bytebeat
L: (((t*(0xdeaf>>(t>>10&15)&(t&32768?7:9))&t>>4)*5/4-32)/2&127)+(t&4096?(t*t/100|t*t/101)*99&~t>>(t&8192?5:4)&127:0)
R: (v="4568"[t>>11&3],w=(t>>5|t>>v^sin(t/8/(v/(((t>>12&t>>14)&8)+((t>>14|t>>11)&1))))*29-100),w+(v*((t*v/7*4&t>>11)|w)))
[(((t*(0xdeaf>>(t>>10&15)&(t&32768?7:9))&t>>4)*5/4-32)/2&127)+(t&4096?(t*t/100|t*t/101)*99&~t>>(t&8192?5:4)&127:0),(v="4568"[t>>11&3],w=(t>>5|t>>v^sin(t/8/(v/(((t>>12&t>>14)&8)+((t>>14|t>>11)&1))))*29-100),w+(v*((t*v/7*4&t>>11)|w)))]
panickg
Code:
(x=(z=(t*(y='0103010304560606')[(t>>10)%y.length]))-z/[3,3.5][t>>15&1])|(t&131072?x*2|x*4:x*2)
flowg (made becuase boredom and to revive the forum ig):
Code:
((t*6^t*(3+(1&t>>14))|t>>4)^(t*(3&t>>12))*t/128)/4|(t*6^t*(3+(1&t>>14))|t>>4)^(t*(3&t>>12))
//8000
idk what i made
Code:
(t*((t-1280^t)>>10)&127)+((t*(4|t>>13&3)>>(~t>>11&1))&127)
the type of music you hear on a game
Code:
(t*(5|t>>13&3)>>(~t>>11&1))|t>>5|t>>9|t>>13|t>>4|t>>6
what have i done to the 42 melody
t*(42&t>>10)%256*(1-t%123456789/3E3)
t*(42&t>>10)%256*(1-t%123456789/3E3)
i dunno what is this
Code:
3*(t&t>>8|t&t>>5)
strange drum thing
Code:
t&4096?(t*(t^t%9)|t>>3)>>3:999
//11025hz
actually the code above works well with almost every sample rate so uhh
the swings ish thinh
(t*3&t>>8)|((t>>6&t*2)&63)
(t*3&t>>8)|((t>>6&t*2)&63)
ryg x random note generator 2 & 3 x minimal serpenski harmony
Code:
(t*'36364689'[t>>13&7]/12&128)+(((t>>12^(t>>12)-2)%11*t/4|t>>13)&127)|t*((-1-t*(6+((t^t/4&t/2)>>12&3))/6&255)>=(t/256&127))/128%256/3+t*(6+(t>>18&3))/12%256/4+((2<<17)/(t%(1<<15))&128)/2+((t-t/256)%256/4+(t+t/128)*7/6%256/4+(t*8/6+t/256)%256/4+(t*9/6-t/512)%256/4)*2/5|t*((-1-t*(6+((t^t/4&t/2)>>12&3))/6&255)>=(t/256&127))/128%256/3+t*(6+(t>>18&3))/12%256/4+((2<<17)/(t%(1<<15))&128)/2+((t-t/256)%256/4+(t+t/128)*7/6%256/4+(t*8/6+t/256)%256/4+(t*9/6-t/512)%256/4)*2/5|t&t>>8|t*(42&t>>10)|(t*'36364689'[t>>13&7]/12&128)+(((t>>12^(t>>12)-2)%11*t/4|t>>13)&127)|(t*'36364689'[t>>13&7]/12&128)+(((t>>12^(t>>12)-2)%11*t/4|t>>13)&127)|(t*'36364689'[t>>13&7]/12&128)+(((t>>12^(t>>12)-2)%11*t/4|t>>13)&127)|(t*'36364689'[t>>13&7]/12&128)+(((t>>12^(t>>12)-2)%11*t/4|t>>13)&127)|(t*'36364689'[t>>13&7]/12&128)+(((t>>12^(t>>12)-2)%11*t/4|t>>13)&127)|(t*'36364689'[t>>13&7]/12&128)+(((t>>12^(t>>12)-2)%11*t/4|t>>13)&127)|((t/4*((t>>12^(t>>12)-2)%11)|t>>13)&127)+(t/12*(0x98646363>>(t>>11&28)&15)&128)
Blast from the somewhat recent past: my 64 character Sleng Teng from Lovebyte 2023. Warning: massive DC offset.
T=t/2e3,U=T%16>12,9*(t/[62,56,42,44][(U?T/2:T%4>1)&3]&1)/(T%++U)
I should make more of these.
T=t/2e3,U=T%16>12,9*(t/[62,56,42,44][(U?T/2:T%4>1)&3]&1)/(T%++U)
I should make more of these.
strange stuff
Code:
((t&t%64)^t>>(t>>6))