News for hackers. Stuff that matters.
Re:The THX Sound by rsiqueira on Sunday May 27, 2012 @12:05PM (#4030318)
I think it can be generated with few lines of code using "algorithmic symphonies" by synthesizing sounds with bit wise operators like this:

((1000/((t/12)%(t>>10))&1)35 + (1000/((t/23)%(t>>10))&1)35)

Link to generate (using javascript) and hear the sound above: http://bit.do/thx-first-try

More sounds created like using those simple equations: http://js.postbit.com/digital-computer-music-with-bitwise-op...

Re:The THX Sound by paulgerhardt on Sunday May 27, 2012 @06:08PM (#4031165)
If we're going about reinventing the wheel see this excellent post from your forebearers: http://www.earslap.com/instruction/recreating-the-thx-deep-n...

And discussion from a few years ago: http://news.ycombinator.com/item?id=725564

Don't miss their Deep Note SuperCollider one-liner at the end: "play{Mix({|k|k=k+1/2;2/kMix({|i|i=i+1;Blip.ar(iXLine.kr(rand(2e2,4e2),87+LFNoise2.k"

Re:The THX Sound by kragen on Sunday May 27, 2012 @10:01PM (#4031646)
That's a very creditable bytebeat version of the THX Deep Note! I recommend:

• Putting a couple of spaces before your formula so the markup processor doesn't chew it up.

• Using Darius Bacon's bytebeat player instead of the old Wurstcaptures one: http://wry.me/bytebeat/?code0=((1000%2F((t%2F12)%25(t%3E%3E1...

If you want to approximate the original more closely, I think you might need sine-wave oscillators rather than square waves. You can get a pretty decent bytebeat sine wave from http://wry.me/bytebeat/?code0=((t%2615)*(-t%2615)%5E!(t%2616..., but most of the time I use a triangle wave instead when the standard sawtooth is too harsh.

I'd like to point out that your bytebeat isn't actually using bitwise operators in any non-arithmetic way; it's equivalent to http://wry.me/bytebeat/?code0=((floor(1000%2F((t%2F12)%25flo..., and in C you can leave out the occurrences of "floor".

Re:The THX Sound by autotravis on Sunday May 27, 2012 @01:31PM (#4030538)
I think you went the wrong direction in pitch, but that method does have potential for sure.