This is a story I've already shared with some friends, but I think it’s worth commemorating in writing as well. It is best told in two movements.
I. Adagio, suspenseful
The background of this sad tale is as follows: in my Engineering 102 class, we’re building and programming small Lego robots that are tasked with searching an arena for yellow and blue canisters, capturing the canisters, and delivering them to separate landfills, one of which is marked by a strong light source. (If you've talked with me recently, you've probably heard about this robot thing, because it is somehow the most stressful project I've ever undertaken, even though from all accounts it’s very hard to get a bad grade in the course.) For the purpose of the preliminary competition, which is the focus of this story, we’ll ignore the yellow canisters and the landfill without the light source.
My group coded a search function that makes the robot run in an increasing spiral from the center of the field. This involved a lot of switches and loops-within-loops, which got seriously confusing, so we decided to take an upperclassman’s advice and put bits of sound into our code at important points, in order to know what the robot was running at any particular time.
What a great idea, I thought to myself at 11:43pm as I was adding the sounds. In fact, I’ll choose the musical notes to be recognizable songs at each part of the function, so I can immediately know what’s going on. How about the first four notes of “Mary Had A Little Lamb” at the end of each search loop? It’ll be cute, I thought.
It’ll be cute. Cute.
Try this out with me. Sing the first four notes of “Mary Had A Little Lamb”—just the first four. You’ll find yourself singing “Mary had a—” and stopping there. And this is precisely what chimed its charming way through our heads every single time the robot completed one square and prepared to enter another.
Mary had a—
Mary had a—
Mary had a—a what?
What did Mary have??
II. Vivace, enunciated
For the other sound bytes, I foolishly chose snippets of Brahm's Lullaby. In particular, the robot declared that it had found the direction of the light source—when the light sensor read 50 or above—with a loud, four-note ascending melody before it would drive towards the light. This was all right in practice, when we used a phone flashlight as our simulated “light source” and only heard the melody a few times before the robot reached a threshold where it released the canister, backed away, and turned around.
On the actual field, during our competition, it came to our attention that our wheel motors were out of sync, enough that our robot had a significant left-turn drag whenever it tried to go forward. This meant that every time it tried to drive towards the light, it would turn left after about two inches, lose the light, rotate again until it found it, play the melody again, and repeat the whole process.
At around the tenth repetition of the melody, I started to tremble and cover my ears. At around the twelfth repetition, the robot leaped forward into a dramatic left turn near ninety degrees, then stopped in utter confusion, as the light readings on that particular part of the field fluctuated constantly between 49 and 50.
The melody began to play endlessly.
I yelled in anguish, lunged to the other side of the arena, and scrabbled at the robot’s off-button until the whole program aborted.
“Shut UP SHUT UP SHUT UP,” I screamed.
Fellow students nearby backed away, some laughing nervously.
Throughout the rest of the day today, Brahm's Lullaby has kept needling its way into my brain and taunting me with its deceptively innocent tones, but the song is ruined for me, forever. I've had to keep myself from clawing at my own ears in the middle of the street.
Needless to say, the sound bytes are coming out of our code as soon as we don’t need them anymore.
Showing posts with label yes this is true. Show all posts
Showing posts with label yes this is true. Show all posts
Thursday, February 19, 2015
Saturday, February 14, 2015
for the preservation of possible victory
I am watching Death Comes To Pemberley with my family, so...this is my blog post for today.
We are taking an intermission break before the third episode as I write this post, and they're all eating a second dinner. It's great. I love my family.
We are taking an intermission break before the third episode as I write this post, and they're all eating a second dinner. It's great. I love my family.
Saturday, June 23, 2012
chinese tongue twister
chang cheng chang, cheng chiang chang, chang chang chang cheng chang cheng chiang, cheng chiang chang chang cheng chang chang
I HAD TO RECORD THIS ABSURDITY.
I HAD TO RECORD THIS ABSURDITY.
Tuesday, April 3, 2012
*facepalm*
Tinkly music.
DAN: (on the phone) What? Oh, that's just my sister's stuffed lamb. It has a button...you press it and it, like, sings...
A pause.
DAN: No, my sister's fifteen.
DAN: (on the phone) What? Oh, that's just my sister's stuffed lamb. It has a button...you press it and it, like, sings...
A pause.
DAN: No, my sister's fifteen.
Sunday, January 15, 2012
Golden Birthdayyyyy
I was actually awake (though lying in bed) when the day turned from the 14th to the 15th.
At 11:58 or so, I had just randomly--and I mean really randomly--remembered the whole beer-can-in-British-accent vs. bacon-in-Jamaican-accent thing, so by the time 12:00am rolled around, I was lying there whispering "beer can/bacon" to myself and giggling.
What an idiot I can be sometimes.
Do I even deserve to be fifteen?
I guess, in the grand scheme of things, I don't even deserve to be alive at all.
So thank you, God, for giving me these fifteen years of life. I hope to serve you well in this sixteenth, and may my life glorify you as long as I have breath.
(MOM: wailing softly. WAaaaahahhaaaaaaaaaa you're fifteen don't grow up I don't like iiiitttttt waaahahhaaa)
At 11:58 or so, I had just randomly--and I mean really randomly--remembered the whole beer-can-in-British-accent vs. bacon-in-Jamaican-accent thing, so by the time 12:00am rolled around, I was lying there whispering "beer can/bacon" to myself and giggling.
What an idiot I can be sometimes.
Do I even deserve to be fifteen?
I guess, in the grand scheme of things, I don't even deserve to be alive at all.
So thank you, God, for giving me these fifteen years of life. I hope to serve you well in this sixteenth, and may my life glorify you as long as I have breath.
(MOM: wailing softly. WAaaaahahhaaaaaaaaaa you're fifteen don't grow up I don't like iiiitttttt waaahahhaaa)
Thursday, January 12, 2012
Typical Conversation #6
We are talking about my brother Jeremy.
MOM: with happy sigh. It's like he evolved, from a baby boy into a young man.
ME: Uh, isn't that just what happens when you grow up?
MOM: Oh. Yeah.
MOM: with happy sigh. It's like he evolved, from a baby boy into a young man.
ME: Uh, isn't that just what happens when you grow up?
MOM: Oh. Yeah.
Monday, January 2, 2012
Typical Conversations #3 and #4
ME: Looking at writing examples in my Chinese course. Why would you ever say, "I prefer these elephants because they are prettier than other elephants"?
MOM: Elephants are so ugly.
NATHAN: Well, maybe if you were a princess, and your father took you to see some elephants, and he said, "O princess, which elephants would you like for your birthday?" And then you would say, "I want these ones because they are prettier."
~•~
JEREMY: Coming into the room suddenly. You know...sometimes all you need...is a potato.
MOM: For what? To throw at people?
MOM: Elephants are so ugly.
NATHAN: Well, maybe if you were a princess, and your father took you to see some elephants, and he said, "O princess, which elephants would you like for your birthday?" And then you would say, "I want these ones because they are prettier."
~•~
JEREMY: Coming into the room suddenly. You know...sometimes all you need...is a potato.
MOM: For what? To throw at people?
Thursday, December 29, 2011
Typical Conversation #2
NATHAN: Mom, I want boar. Can we eat boar tonight?
MOM: Boar is a bore.
NATHAN & JEREMY: Hahaha!
ME: Has missed the joke. What? What just happened?
NATHAN: You didn't hear it 'cause you were trying to hog the conversation.
NATHAN & JEREMY: Hahaha!
ME: Hey, snort funny!
MOM: Yeah, stop pigging on your sister.
NATHAN: I ham dying of laughter.
JEREMY: Man, keeping up with you guys is such a hard tusk.
MOM: Boar is a bore.
NATHAN & JEREMY: Hahaha!
ME: Has missed the joke. What? What just happened?
NATHAN: You didn't hear it 'cause you were trying to hog the conversation.
NATHAN & JEREMY: Hahaha!
ME: Hey, snort funny!
MOM: Yeah, stop pigging on your sister.
NATHAN: I ham dying of laughter.
JEREMY: Man, keeping up with you guys is such a hard tusk.
Wednesday, December 28, 2011
Typical Conversation #1
MOM: Holding a loaf of sliced bread. If I eat this whole thing, will I get fat?
ME: Um...yes.
MOM: Throwing down the bread and whining. Don't say that! You're so mean! Pouts like small child.
ME: Um...yes.
MOM: Throwing down the bread and whining. Don't say that! You're so mean! Pouts like small child.
Subscribe to:
Posts (Atom)