pouët.net

Experimental music from very short C programs

category: code [glöplog]
Glitchcore!
99*(sin(0.0002*t)+cos(0.0002*t)+tan(0.0002*t))*sin((0.002-(t)*.0002*0.0005*t)*t)
added on the 2011-09-30 03:53:38 by MidKnight MidKnight
sin/cos/floats are no valid micro-music functions.
use approximations instead !!
:)

added on the 2011-09-30 04:21:23 by lsl lsl
:O

Approximations?
How do you do that?
added on the 2011-09-30 04:30:46 by MidKnight MidKnight
taylor series approximation for example.
or polynomial approximation, cordic ...
google brings some jewels :)

a good site dealing with dsp: musicdsp.org ... but I guess you already know this one ...

added on the 2011-09-30 04:43:49 by lsl lsl
t*sin(12^2>>5)*tan(12*t>>16)
pure IDM o/
added on the 2011-09-30 09:58:55 by Ish Ish
t*sin(12^2>>5)*tan(12*t>>16)^24 this sounds a bit like a black metal intro :>
</spam>
added on the 2011-09-30 10:00:20 by Ish Ish
Sin() isn't kosher, people!

(t>>6|t|t>>(t>>16))*10+((t>>11)&7)
So here's a beat, anyone want to add a solo instrument on top of this? ;)

((t&4096)?((t*tan(t)|(t/16))>>1):(t>>3)|((t&8192)?t<<2:t))
added on the 2011-09-30 10:48:36 by skurk skurk
aaaawouldyou..fucking..#@!.. drop the semicolon in front of the number 2 and it'll work.
added on the 2011-09-30 10:50:21 by skurk skurk
wow
Combined xpansive's and varjohukka's stuff

(t>>7|t|t>>6)*10+4*(t&t>>13|t>>6)
Nice! This is way to addictive (I'm at work).

A variation on skunk's beat. I'd never come up with it on my own, I just played with your code, hope you don't mind!

((t&8192)?((t&3072)?((t*tan(t)|(t/6))>>1):(t>>3)|((t&6144)?t<< 3:t)):((t&4096)?((t*tan(t)|(t/16))>>1):(t>>3)|((t&8192)?t <<3:t)))
Sorry, I meant skurk! Sorry!!
I have to stop now, before it's too late.


((t&1024)?t*(((t&0x1ffff)>=0x7fff)?(((t&0x1ffff)>=0xffff)?(((t&0x1ffff)>0x17fff)?1.5:1.2):1.75):2):0)|((t&4096)?t*tan(t)|((t-819)/16):0)|((t>0x1ffff)&&(t&8192)?((t&512)?(t<<4)*(((t&0x1ffff)>0x7fff)?(((t&0x1ffff)>0xffff)?2.0:2.25):2.0):0):0)

pastebin: http://pastebin.com/ieGksZ8L

@varjohukka: loved your "remix" ;)
added on the 2011-09-30 11:55:30 by skurk skurk
Quote:
((t&4096)?((t*tan(t)|(t/16))>>1):(t>>3)|((t&8192)?t<<2:t))

Similar, but without tan(): ((t&4096)?((t*(t^t%255)|(t>>4))>>1):(t>>3)|((t&8192)?t<<2:t))
Not sure if the ^ is interpreted as a bitwise xor though...
added on the 2011-09-30 12:06:24 by raer raer
Very impressive! Sounds a little bit like the game Street Surfer I think.
Now would it be possible to synthesize phonemes? That song needs vocals ;)
Possible, yes. But not quite "one line" or even "short" probably... ;)
added on the 2011-09-30 12:28:24 by raer raer
here's a simple bass line modified from the one viznut pasted last:
(t*2>>5|t*2|t*2>>4)*((t>>14)&1)+(t>>5|t|t>>4)*(((t>>14)^1)&1)
added on the 2011-09-30 13:28:00 by tonic tonic
This was FUN! Here's something that sounds like a SID:

((t>=0xffff)?(((t&1024)?((t&64)?127:0):0)):0)|(((t*((t^t%255)&34))|t)>>14)|((t>=0x1ffff)?(t>>4):0)

pastebin: http://pastebin.com/NJsRbAVA
added on the 2011-09-30 13:34:14 by skurk skurk
BB Image
added on the 2011-09-30 13:48:03 by pandur pandur
Fanfare?

(((t&8192)?((t&4096)?((t&1024)?t*2:t*4):((t&512)?t*4:t*4.2)):((t&4096)?((t&1024)?t*2:t*10):((t&512)?t*2:t*8))>>2)*(( t&16384 )?3:2))|t*(( t&16384 )?1/8:1/(.01*t))
Combination:
((t&4096)?((t*(t^t%255)|(t>>4))>>1):(t>>3)|((t&8192)?t <<2:t)) ^ ((((t&8192)?((t&4096)?((t&1024)?t*2:t*4):((t&512)?t*4:t*4.2)):( (t&4096)?((t&1024)?t*2:t*10):((t&512)?t*2:t*8))>>2)*(( t&16384 )?3:2))|t*(( t&16384 )?1/8:1/(.01*t))>>1)
added on the 2011-09-30 15:08:08 by raer raer
Charming :)
raer you just blew my mind
added on the 2011-09-30 15:20:05 by k-bird k-bird
or ears... ;)
added on the 2011-09-30 15:35:15 by raer raer

login