pouët.net

Go to bottom

Experimental music from very short C programs

category: code [glöplog]
i have a whole list of these! i made all of em

Code:t>>(56>>813/8)&56+67+18+56|35*6>>67&t^t+67+t/102/6 //thing #1 t>>(56>>813/8)&56+67+208-11+t/102 //thing #2 t^(t+7)%3679 //thing #3 t/4&t*3&t/89 //thing #4 t^~t>>(4+3) //thing #5 (t&6+t)>>0x62>>t/~5&0xFF^0x01 //thing #6 t>>t/8>>t**(9*6|5)^~t>>8 //thing #7 t>>6&t%150|t<<t/9 //thing #8 t^(t+7)%3679*t/4&t*3&t/89 //thing #9 (actually #3 * #4)
added on the 2026-06-20 17:04:33 by juanp32 juanp32
forgot tjis one
Code:t>>(56>>813/8)&56+67+18+56|35*6>>67&t^t+67+t/102/6/t>>(56>>813/8)&56+67+208-11+t/102 //thing #10 (actually #1 / #2)

unfortunately theres no post editing
added on the 2026-06-20 17:12:03 by juanp32 juanp32
oh hey there juan! anyway, i've got this line of bytebeat that's pretty big.
it's just normal kompa so far
Code:k=2,j=3,(((((t|t%255>>12|t%255>>32)|t^3+4%255|t%4096|t>>3)|(t|t&318/t%2046>>32)|t^2%255/5>>10>>8|19)|t*2/32|t-1|t-4|t-8)|t-21|t-14|t-2)|(t%21>>2)|t>>j>k|k>>31|10|t%255|t-6*100>>1100|t&t>200

play at 11025 Hz!!
added on the 2026-06-21 02:31:50 by hlder hlder
The 42 Melody using tan function!
tan(t*(42&t>>10)/80.8)
added on the 2026-07-10 21:07:10 by Troc8 Troc8
((-t&4095)*(255&t*(t&t>>13))>>12)+(127&t) scorpilus ahh beat
s=[1,1.5,0.8,1.8][t>>15&3],(()=>{let o=0;for (let i=1;i<8;i++)o+=(tan(s*t/64)%1)+sin(s*t/8);return (o*8)/((t&32767)/2048);})()/8+128 some random shi strings
added on the 2026-08-12 13:11:15 by Timescade Timescade
at 44100hz
added on the 2026-08-12 13:11:43 by Timescade Timescade
Attempt at making some things C-compatible:

No Limit, optimized ryg's version
Code:((20000/(1+(t&4095)))%63)+((t*(15&0x9866>>(t>>12&12))/6&127)*(t&4095)/10000+((t>>6^t>>8|t>>12|t*(15&0x9866>>(t>>12&12))/6&127)&63)+85)


ryg c-compatible
Code:(t*((2556715875>>((t>>13&7)<<2))&15)/12&128)+(((t>>12^(t>>12)-2)%11*t/4|t>>13)&127)


Fanfare? by varjohukka
done without floats and shorter
Code:(t&8192?t&4096?t&1024?2*t:4*t:t&512?4*t:t*4+t/5:(t&4096?t&1024?2*t:10*t:t&512?2*t:8*t)>>2)*(t&16384?3:2)|(t&16384?t>>3:100)


Short and C-compatible triangle
Code:(N*t&128?-t:t)*N


that's it 🫩🫩🫩🫩
added on the 2026-08-12 13:33:33 by Timescade Timescade

login

Go to top