A playful live coding practice to explore syntax and semantics

October 2, 2013 at 1:56 am Leave a comment

Three of the nights of the Dagstuhl Seminar on Live Coding included performances. Several of these combined live coders with analogue instruments (guitar, piano, cello, and even kazoo), which was terrific to watch.

IMG_0143

I found one of their practices fascinating, with real potential for the computer science classroom. Alex Maclean introduced it as “Mexican Roulette,” because they first did it at a live coding event in Mexico City. Live coders take turns (the roulette part) at a shared computer connected to speakers at the front of the room.

  • The first live coder types in some line of code generating music, and gets it running.  From now on, there is music playing.
  • The next live coder changes the code any way she or he wants. The music keeps playing, and changes when the second coder then evaluates the code, thus changing the process.  Now the third coder comes up, and so on.
  • If a live coder is unsure, just a few constants might be changed.
  • If a live coder makes a syntax error, the music continues (because the evaluation that would change the process fails), and the next coder can fix it.  You can see the error messages on the right in the picture above, which I took mid-way through the roulette.
  • If a live coder makes a mistake (at one point, someone created quite a squeal), the next live coder can fix it. Or embellish it.

What I found most promising about this practice is that (to use Briana Morrison’s phrase for this) nothing is ever wrong here. The game is to keep the music going and change it in interesting ways. Responsibility for the music is shared. Mistakes are part of the process, and are really up for definition. Is that a mistake, or an exploration of a new direction? This activity encourages playing with syntax and semantics, in a collaborative setting.  It relies on the separation of program and process — the music is going, while the next live coder is figuring out the change.  This could be used for learning any language that can be used for live coding.

Entry filed under: Uncategorized. Tags: , , .

Live coders challenge CS to think about expression again Live coding as a path to music education — and maybe computing, too

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent Posts

October 2013
M T W T F S S
« Sep   Nov »
 123456
78910111213
14151617181920
21222324252627
28293031  

Feeds

Blog Stats

  • 1,267,766 hits

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 4,562 other followers

CS Teaching Tips


%d bloggers like this: