3 ms·
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>>
by rsiqueira 14y ago
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 http://bit.do/thx-first-try
More sounds created like using those simple equations:
http://js.postbit.com/digital-computer-music-with-bitwise-operators.html http://js.postbit.com/digital-computer-music-with-bitwise-op...
- autotravis 14y agoI think you went the wrong direction in pitch, but that method does have potential for sure.
- paulgerhardt 14y agoIf we're going about reinventing the wheel see this excellent post from your forebearers: http://www.earslap.com/instruction/recreating-the-thx-deep-note http://www.earslap.com/instruction/recreating-the-thx-deep-n... And discussion from a few years ago: http://news.ycombinator.com/item?id=725564 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"
- kragen 14y agoThat'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%3E10))%261)*35%20%2B%20(1000%2F((t%2F23)%25(t%3E%3E10))%261)*35)&duration=22&samplerate=44100&title=thx-deep-note-attempt-by-rsiqueira 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)-1)%2B128&duration=1&title=parabolic-sinewave 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)%25floor(t%2F1024)))%252)*35%20%2B%20(floor(1000%2F((t%2F23)%25floor(t%3E%3E10)))%252)*35)&duration=22&samplerate=44100&title=rsiqueira-thx-deep-note-attempt-without-bitwise http://wry.me/bytebeat/?code0=((floor(1000%2F((t%2F12)%25flo..., and in C you can leave out the occurrences of "floor".