PHP in a Tweet
emanueleminotto.it
PHP in a Tweet
1–10 of 58 posts
Re: PHP in a Tweet
#2Re: PHP in a Tweet
#3Re: PHP in a Tweet
#4here are some great ones:
http://fredrikolofsson.com/f0blog/?q=node/478
play{a=SinOscFB;sum({|i|a.ar(a.ar(a.ar(a.ar(i+1,1/9,999),1/9,a.ar(1/9,1,1/9)),a.ar(0.1,3),i+2999),a.ar(1/9,1/9),1/9)}!9)!2}//#SuperCollider
r{loop{x={GVerb.ar(MoogFF.ar(ClipNoise.ar0.4,LFPar.kr({0.3.rand}!2,0,600,990)),9,9,1)}.play(s,0,19);3.wait;x.release}}.play//#SuperCollider
audio examples on the page above
Re: PHP in a Tweet
#5Re: PHP in a Tweet
#6people have been creating 140 character music pieces in the supercollider music language for a while. its very tricky to make something that lasts and evolves and has structure and keeps your interest. here are some great ones: http://fredrikolofsson.com/f0blog/?q=node/478 play{a=SinOscFB;sum({|i|a.ar(a.ar(a.ar(a.ar(i+1,1/9,999),1/9,a.ar(1/9,1,1/9)),a.ar(0.1,3),i+2 999),a.ar(1/9,1/9),1/9)}!9)!2}//#SuperCollider r{loo…
play{a=LFPulse;b=(1..4);Mix(a.ar(a.ar(a.ar(a.ar(b/32)+1/8)+1b)+(Mix(a.ar(b/64))+a.ar(4/b)(a.ar(a.ar(b/8))2+b))100))/8!2}//#SuperCollider
audio:
http://fredrikolofsson.com/f0blog/files/audio/tweet0020.mp3
"this tweet is also totally deterministic and without any randomness. here a lot of nested square wave oscillators creates the complexity. basically there are 4 channels/voices mixed down to one and then duplicated in left and right channel. there are three levels deep nesting of frequency modulation with another set of square waves mixed and added."
Re: PHP in a Tweet
#7It's hilarious looking at how cryptic these one-liners are, particularly when I consider that with languages like Ruby and Python you can do a LOT with a tiny little line if code.
As a side-note, one of my favorites is summing an array in Ruby:
x = [1, 2, 3, 4, 5]
x.inject &:+
=> 15Re: PHP in a Tweet
#8Re: PHP in a Tweet
#9A while ago, I put together a dirt-simple URL shortener https://twitter.com/eksith/statuses/275709375665037312
A bit of background: http://eksith.wordpress.com/2012/12/03/id-obfuscation
Re: PHP in a Tweet
#10I enjoy PHP like I enjoy going home to see my family for the holidays. It's fun for a bit, the nostalgia makes me feel warm and fuzzy, and the familiarity of everything is very comforting. You quickly realize though that the grass really is a lot greener on the other side. You remember why you moved out of your parent's place and went out on your own. It's hilarious looking at how cryptic these one-liners are, partic…
+/ 1 2 3 4 5