The Sounds of Little C

A group of sonic and code explorers has been discovering excellent super-short C programs that, piped to an 8-bit audio device, generate music. Here’s the first video and a second video with sounds and code.

Here’s the code for one example, “Lost in Space,” from video #2:


main(t){
for(t=0;;t++)putchar(
((t*(t>>8|t>>9)&46&t>>8))^(t&t>>13|t<<6)
);}

If you are also a righteous Ubuntu user, you can paste that into a file (let’s call it “lost_in_space.c”) and compile it with:

% gcc lost_in_space.c -o lost_in_space

Then, pipe it (or pretend to pipe it, using padsp, since recent versions of Ubuntu don’t have /dev/dsp) to your audio device using:

% ./lost_in_space | padsp tee /dev/dsp > /dev/null

Thanks to Andrew Stern for tipping me off about this one.

Mass Effect 3 Unlocks Gayness

In the Mass Effect series, you get all the intensity of a first-person shooter combined with a sprawling space-opera plot arc. And, the games have another aspect as well: As pan-galactic dating sims.

In the first two games, your customizable human, Commander Shepherd, who is the same paragon or renegade badass whether he’s black or white, male or female, can get it on with select characters. However, even though this is the way-far future sort of world in which there’s no problem with romance between beings from different planets, she or he can basically have only heterosexual relationships.

(Okay, she, if your Shepherd is female, can hook up with an alien character who looks quite a bit like a female human. But it’s made clear that your xenophilia isn’t, stricly speaking, homosexual, it’s just a pheremone thing with this hot alien who is not really a chick anyway.)

In May, the news broke that Mass Effect 3, still forthcoming, will support gay. So, everyone should stop teabagging their opponents in Halo 3 for a moment and celebrate this newfound progressive inclusiveness, right?

Well … the thing is, Mass Effect is a series. (Or franchise, really, with spin-offs … but let’s keep things simple.) The two main games released so far are strongly linked, with great effort made to connect the first to the second game – via importation of a character or play-through of an interactive comic. In the new game, Shepherd is definitely supposed to be the same guy (or butch woman, if you picked that option) that he or she was in Mass Effect and Mass Effect 2.

Which means that if Mass Effect 3 is the first game to support homosexuality … and players choose to take this option … it could suggest that the stress of saving the living universe has somehow turned Shepherd gay.

Unless, I suppose, Shepherd really was before, and you simply have turn somewhere else, other than your XBox or PS3, to read about it.

Unconference/Hackday on Digital Writing

Normally I only mention events that I’m attending or organizing, but I want to announce this Boston-area event even though I’ll be in Chicago and won’t be able to attend.

It’s called Dangerous Readings, and is sponsored by Eastgate Systems. Check out the page to see how you can participate.