Electronic Book Review - improvisionhttp://electronicbookreview.com/tags/improvision
enCritical Code Studies Conference- Week Five Discussionhttp://electronicbookreview.com/thread/firstperson/lightdiscussion
<div class="field field-name-field-author field-type-node-reference field-label-hidden clearfix">
<div class="markup">by</div>
<div class="field-items">
<div class="field-item even">David Shepard</div>
</div>
</div>
<div class="field field-name-field-publication-date field-type-datetime field-label-hidden"><div class="field-items"><div class="field-item even"><span class="date-display-single">2012-03-19</span></div></div></div><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>In week five, Stephen Ramsay performed a live reading of a livecoding performance: in a <a href="http://vimeo.com/9790850" target="_blank">video</a>, he presented a spontaneous commentary over a screencast of Andrew Sorensen’s “Strange Places,” a piece Ramsay had never seen before. The screencast showed Sorensen using <strong><em>Impromptu</em></strong>, a LISP-based environment for musical performance that he had himself developed, to improvise a piece of music; Sorenson developed the piece’s musical themes by composing and editing code. The video allowed the audience to watch Sorenson write and edit his code in the <strong><em>Impromptu</em></strong> editor window. This presentation inspired a discussion that broke livecoding down into two overlapping issues: is it “live,” and is it “coding”?</p>
<p>The first half of “livecoding”- liveness - makes coding interesting by making the programmer and his or her process apparently accessible, compared to the anonymous distribution of most software via download or disc after thorough design and bug testing. The <a href="http://toplap.org/index.php/ManifestoDraft" target="_blank">TOPLAP Manifesto</a> states, “Give us access to the performer’s mind … the whole human instrument.” We never meet the programmers who develop the majority of the software we use, let alone see them at their desks typing; a programmer on a stage seems comparatively accessible, as is (presumably) his or her intent and mistakes.</p>
<p>But what does watching a programmer show? Though the discussion yielded quite a bit of access to the performer’s mind, as Sorensen himself joined in, most of the participants agreed with Sorenson’s own statement that he does not believe livecoding yields such insight, and focused on the performative quality of the coding instead. John Bell described the “miraculous” feeling of watching Sorensen’s act of coding, contrasting it with his own experience of the labor involved in building each component of a program. Livecoding is “live” by virtue of putting a programmer before an audience, who is engaged in a composition that is improvised.</p>
<p>What Bell’s miraculous feeling (and livecoding’s supposed spontaneity) also highlight is how livecoding requires complex layers of abstraction that simplify much of the development process: Sorenson’s custom-built programming environment, the Apple AudioUnits library, and preset routines such as the function “cosr” that Ramsay found opaque (“a macro that provides a wrapper for the standard cos function with some scaling and time stuff built-in,” according to Sorenson). Livecoding - done in minutes on a screen - differs from the analytical, iterative development process of most professional programming, relying heavily on prewritten code libraries to reduce the complexity of the coding process enough to perform before an audience. Livecoding (usually) involves no debugging by virtue of the fact that it depends on well-defined environments and well-tested libraries of routines, not to mention precise typing and a forgiving environment; attempting to compile <em><strong>Impromptu</strong></em> code with syntax errors results in silent errors that appear in a portion of the window hidden from view in Sorenson’s video.</p>
<p>The necessity of these foundations inspired Jeremy Douglass to ask, “At what point do we exit liveness? When we draw on scripted elements or libraries of things that previously ‘worked’?” Daren Chapin responded that “This kind of heuristic simplification is one of the primary goals of programming … Libraries, extensible classes, polymorphism, macros, code generators … all of these mechanisms aid us in transforming what once seemed like complex maps between domains into ones that are easy for us to reason about, so we can in turn build larger and more complex ones. It’s this constant interplay of building-out-and-abstracting-away that makes coding such a lively activity, and perhaps so simultaneously sundry and magical.” All programming employs abstractions that simplify complex problems; they make both livecoding and most serious application development possible; most programmers use at least their operating system’s API to build windowed applications, if not other code libraries.</p>
<p>For similar reasons, John Nyhoff bolstered livecoding’s claim to liveness by arguing against conflating spontaneity with liveness, highlighting yet one more understanding of “live.” Just as not all jazz is improvised, most theater is live while following a preset script. Liveness in traditional drama is the actor’s ability to make a preexisting script seem naturalistic, as if he or she were the character speaking the words and feeling the emotions. Nyhoff consequently stated that “in much theatre and most programming, the script/code is authored through execution/performance. … Sorensen’s work … constitute[s] a kind of temporally compressed re-staging of the process of the composition, the programming.” Nyhoff emphasized that the liveness of livecoding was the performative and demonstrative quality of the coding, rather than whether or not the text produced was composed entirely on the spot.</p>
<p>While something of a special case, then, livecoding raises broader issues for Critical Code Studies, especially questions related to the definition of programming and the visibility of code. As John Bell pointed out, livecoding further applies pressure to the valuation of “scripting” over “coding”: the former is not considered “real” programming because of the use of high-level languages for small tasks. The Ruby on Rails framework was promoted using an “amazing and carefully scripted series of demo magic tricks,” in Jeremy Douglass’ words: on a terminal window projected for an audience, a few scripts generated a basic but complete blogging application. This demonstration blurred the lines between live and preplanned coding, and programming using highly-specialized environments like <strong><em>Impromptu</em></strong> and simply using a framework. What makes livecoding interesting, then, is the question of what coding and access to code really allows the reader―and thus, livecoding gets at the heart of Critical Code Studies’ investigation of what code means and does.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Amanda French </strong>on March 1, 2010 at 11:37am</p>
<p>I did notice that you made one or two comments about Sorensen changing the code along the lines of “Was that note not right?” – comments that sounded a bit odd to me given that the performance was so clearly improvisational. His changes, in other words, always looked to me to be changes for the heck of it, changes that constituted the performance, not changes striving for some ideal. The notion of “sheet music” doesn’t apply here, as it wouldn’t apply to a jazz musician or a bluegrass picker. Even the name of his environment, <strong><em>Impromptu</em></strong>, makes that point. Raises the question for me precisely of whether a livecoding session that <em>did</em> consist of simply typing in an existing program would be as compelling – I think it would definitely have its points of interest, actually. Or what would the livecoding analog be to a non-improvisational live performance of music?</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Mark Marino </strong>on March 1, 2010 at 2:49pm</p>
<p>Although, I’m tempted to speak just about Sorensen’s code and your play-by-play, I find myself returning to an earlier moment in the video. As you set up live coding, you move from Holden Caulfield’s awe at the tympani player (whose music flies off the stand in your version) to this meditation on live instruments. Thinking of Amanda’s intervention, I can’t help but wonder what the sheet music may be. Could it be the specifications of the coding environment? Could it be some starter loops?</p>
<p>I like, too, this distinction Amanda is trying to flesh out about exactly what kind of “live” performance this is. (Any good articles on “live coding” for the bib?) During one cut, you say, that performances seem more real, while the screen shows a reel-to-reel recorder (1:52). This Glenn Gould move establishes a central ironic tension in the video (with all its spliced together, remediated film) within the “live” of the live coding and perhaps also affecting the executed code we’ve been discussing in <a href="http://www.electronicbookreview.com/thread/firstperson/decoded" target="_blank">Week 4</a>.</p>
<p>In fact, this entire discussion seems to speak to Wendy’s chapter, as we see Sorensen’s magical code that executes as he changes it, when we marvel at his mysterious cosr command. Is this “the erasure of execution”? Is this the fetishization of coding? Is this sourcery? How is the code (un)like the tubes of the pan flute? Are there moments in this code where Sorensen seems more slave than wizard? What does it mean to be a slave of the coding environment you yourself built (I know, asking any code monkey, ask Microserf)?</p>
<p>Also, I wanted to say how iconic this video is for CCS - the way we watch you build your reading live and unedited, observing aspects of the code, its effects on the output, and then developing your reading on how Sorensen is “playing the comments and parameters” or how he is ending his song by commenting it out. You engage with the programming language and environment, the programmer, the output and processes, as well as the code itself. You contextualize your examination in electronic music and live coding, while gesturing toward larger issues, such as the real and authenticity as well as programmer as performer/composer/musician. Maybe for some, our comments are taking the music out of the code, or hearing music in the windmill. I think, too, about all the on-the-fly interpretations we’ve been working to produce, as in <a href="http://www.electronicbookreview.com/thread/firstperson/colossal" target="_blank">Week 3</a>. Here are the postcards we are sending even if we are not too sure how to address them.<br /> </p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Stephen Ramsay </strong>on March 1, 2010 at 3:20pm</p>
<p>I see what you’re saying, Amanda. Honestly, though, I think those moments in the film are more about my own conditioned response as a programmer. If I saw that first comment in a source file, I’d assume there was something wrong and the programmer was “commenting it out” so that it didn’t interfere – cauterizing the wound, as it were. I’ve done it a thousand times. It was really my first thought.</p>
<p>But of course, as you say, that’s not what Sorensen is doing at all (as became clear to me later on, when the comments become almost like keys on a flute or stops on an organ).</p>
<p>As far as improvisation goes, yes. But can’t you hit a “wrong note” while improvising? That is, a note that is “wrong,” not because it fails to conform to a preset pattern, but because you didn’t like it, or it didn’t work, or you changed your mind? I really had something like that in mind.</p>
<p>Here’s one thing, though: If I’m improvising on the harp, say, and I hit such a note, the moment is gone. But if I set up an oscillator to start generating some sound wave, I can change it and have it start doing something else. This seems to me a difference between computer music as it is usually conceived and what a bluegrass picker does (unless you really are “playing your laptop” like the gentleman demonstrating GarageBand’s “musical typing” feature in the video).</p>
<p> </p>
<p><strong>Reply by</strong> <strong>Amanda French </strong>on March 1, 2010 at 6:18pm</p>
<p>Sure, you can hit a wrong note in improvising, as I know you know, though any skilled improviser will leave a listener unsure as to whether that really was a “wrong” note. (I, by the way, am totally unable to improvise.) But I don’t quite get the distinction you’re making in the last paragraph between instrumental improvisation and computer music, if you’d care to elaborate.</p>
<p>Actually what I found myself thinking about was degrees of improvisation in music: at the symphony everyone’s usually reading sheet music, which they’d almost have to, because the music is so complex. But your basic rock band isn’t being any more improvisational than a symphony, usually, because they’ve just memorized what they’re playing. Some, of course, do, especially jam bands. But jam bands and jazz bands and blues bands have really very simple structures (logic) that soloists improvise their complexities over: the musical foundation is simpler, and that’s what enables the improv.</p>
<p>But again, it came back to livecoding as an art, for me: I couldn’t, off the top of my head, think of a form of livecoding that would be analogous to a symphony. Probably it would have to be a massive group endeavor, like that of a symphony, where you take all the code for an existing program and get a hundred coders to type it in, live. With live unit tests, which I know you love. :)</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Max Feinstein </strong>on March 2, 2010 at 4:50pm</p>
<p>I’ve isolated some <em><strong>Impromptu</strong></em> code and posted it here for a further examination of improvisation via the random function. I have to admit that posting this code is slightly uncomfortable because the snippet is so lifeless in this form. Compared to its traditional context, which involves continuous code execution, sounds, and constant modification from the author, this snippet is just a static chunk that doesn’t do anything. I suppose this critique is much like a photograph in that it captures a brief glimpse of something “alive” and allows viewers to experience the object in a different context. That said, an <em><strong>Impromptu</strong></em> example, complete with commentary, from our favorite <a href="http://en.wikipedia.org/wiki/Impromptu_(programming_environment)" target="_blank">free encyclopedia</a> :</p>
<blockquote><p>;; first define an instrument<br />(define dls (au:make-node “aumu” “dls ” “appl”))<br />;; next connect dls to the default output node<br />(au:connect-node dls 0 *au:output-node* 0)<br />;; lastly update the audio graph to reflect the connection<br />(au:update-graph);; play one note by itself<br />(play-note (now) inst 60 80 (* *second* 1.0));; play three notes together<br />(dotimes (i 3)<br />(play-note (now) inst (random 60 80) 80 (* *second* 1.0)));; play a looping sequence of random notes<br />(define loop<br />(lambda (time)<br />(play-note time inst (random 40 80) 80 1000)<br />(callback (+ time 8000) ‘loop (+ time 10000))));; start the loop<br />(loop (now));; stop the loop by defining loop to be null<br />(define loop ‘());; define a new loop to play a repeating sequence of notes<br />;; with a small random twist<br />(define loop<br />(lambda (time pitches)<br />(play-note time inst (car pitches) (random 40 80) 8000)<br />(callback (+ time 4000) ‘loop (+ time 5000)<br />(if (null? (cdr pitches))<br />(list 60 63 62 (random 65 68) 68 59)<br />(cdr pitches)))))(loop (now) ‘(60 63 62 67 68 59));; stop the loop by defining loop to be null<br />(define loop ‘())</p></blockquote>
<p>My interest in this code is the prominent role that “random” plays in the piece. There’s an interesting tension between the rest of the code, which seems precise and systematic, and this intentional randomness generated by the computer. For me, music isn’t ordinarily composed “randomly,” nor are any sounds produced randomly. For example, every time a timpani player strikes his drum, the resulting sound is precisely what was expected. Perhaps the sound wasn’t what the musician intended, say if he missed hitting the desired spot on the drum, or if the head has steadily de-tuned from use, but these variables can all be predicted. On the other hand, when a livecoder calls for a random X or Y or Z, nobody can really predict what the computer will generate.</p>
<p>Of course, improvisational pieces can be random, but probably not in the same sense as random in the above code, for even improv pieces typically follow certain guidelines (chord progressions, rhythms, etc), as Amanda notes above. I’m curious if anyone else is intrigued by the implementation of “random” and what it introduces to livecoding that is absent from all other musical performances. Or if anyone would make the argument that instruments other than the computer (e.g., <em><strong>Impromptu</strong></em>) are also random?</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Andrew Sorensen </strong>on March 3, 2010 at 4:02pm</p>
<p>Obviously randomness is, by definition, indeterminate. However, it can also be thought of as an abstraction layer. “Random” allows you to abstract away detail without requiring a complete model of the underlying process. This is hugely important in livecoding where your ability to implement complex processes is hindered by task domain (i.e. musical) temporal constraints. Of course “random” when used in my work is usually highly constrained - to a particular pitch class, rhythm set, etc.</p>
<p>Of course I often do build a model of the process under investigation which is stored as library code and called instead of “random”. However, in practice I have found that “random” is often sufficient - and has the added advantage of being generally applicable and easy for an audience to comprehend.</p>
<p>It’s worth pointing out that while nobody can predict precisely what the computer will generate, the probabilistic constraints imposed give me a very good understanding of the approximate result that I will get. When I absolutely need specifics I use a determinate process.</p>
<p>The constrained indeterminacy is part of the fun of working with generative systems, you never know exactly what you’re going to get. Part of the skill is in massaging an indeterminate system towards an aesthetically appealing outcome.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Mark Marino </strong>on March 4, 2010 at 9:18am</p>
<p>I was drawn to a particular line in your answer:</p>
<blockquote><p>Of course I often do build a model of the process under investigation which is stored as library code and called instead of “random”. However, in practice I have found that “random” is often sufficient - and has the added advantage of being generally applicable and easy for an audience to comprehend.</p></blockquote>
<p>I’m not entirely certain about the relationship between the library code and the random process. Can you elaborate on that?</p>
<p>More importantly, I’m interested in your attention to the audience’s comprehension, as that is an issue that seems to come up in CCS a lot, from the initial arguments that code is not meant for human readers (we’re past those, I think), to our more recent discussion of the display mechanisms through which we should analyze code (should it be more similar to the highlighting, color-coded interfaces programmers are using – or teletype and punch cards?).</p>
<p>As we saw in Stephen’s reading of your coding performance, audiences (without the benefit of an O’Reilly book at hand) might at times be lost in your code. I can see now that this is a central realm of play in “live coding,” that this is part of the delight, of watching the magician at work (<a href="http://www.electronicbookreview.com/thread/firstperson/decoded" target="_blank">Wendy Chun’s image of sourcery</a> keeps returning!).</p>
<p>To what extent do you see this as a performance that you want to make accessible and to what extent is the fun of live coding (both watching and performing) and game of catch-me-if-you-can?</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Andrew Sorensen </strong>on March 4, 2010 at 10:40pm</p>
<p>Actually I’m not overly concerned with the audience’s ability to read the code. At least, it is always subservient to my ability to express my ideas as fluently as possible. That said, I do try to provide something that is reasonably transparent. It’s also important to keep in mind that audience understanding is multi-dimensional. In particular it’s worth bearing in mind that a programmer well-versed in Lisp but with no music theory knowledge may understand the syntax and semantics (program-&gt;process semantics) but fail to comprehend their relationship to the task domain (i.e. the musical outcome).</p>
<p>For me the projection of code is largely about building a trust relationship with the audience by displaying a level of engagement and human agency. Yes I am doing this live, and no I’m not just twiddling my thumbs–here’s the proof. Without the projection it becomes quite difficult to assess the level of human agency in laptop performance. After that initial trust is established, the code becomes less important. In fact, in a lot of my audiovisual performances (where visuals are drawn over the top of the code), it becomes harder to see the code as the performance progresses. Audiences don’t seem to mind because the early part of the performance has established the trust.</p>
<p>I agree with Stephen’s post that displaying the code doesn’t really give access to the performer’s mind - at least not in any deep sense.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Jeremy Douglass </strong>on March 8, 2010 at 11:37am</p>
<p>I very much appreciated the way that the coding environment functioned as “proof” in this video. For example, every time the screen briefly flashed orange the running code was being updated, correct?</p>
<p>For me, those orange flashes were <em>evidence</em>, like seeing a percussionist’s stick rising high – I might not understand how the set of percussion instruments are played, or even their names, but I had a visible events that I could use to tie together changes in what I heard with action of the performer.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Stephen Ramsay</strong> on March 4, 2010 at 9:54am</p>
<blockquote><p>;; first define an instrument<br />(define dls (au:make-node “aumu” “dls ” “appl”))<br />;; next connect dls to the default output node<br />(au:connect-node dls 0 *au:output-node* 0)<br />;; lastly update the audio graph to reflect the connection<br />(au:update-graph);; play one note by itself<br />(play-note (now) inst 60 80 (* *second* 1.0))</p></blockquote>
<p>This code is really imagining audio units and softsynth components exactly the way they are imagined in Max/MSP and Puredata – as nodes on a network that are connected in various ways. I gather that ChucK works the same way. So at some level, there isn’t that much difference between the way <em><strong>Impromptu</strong></em>/<em><strong>ChucK</strong></em> imagines a synthesizer and the way Max/Pd does. (I don’t meant to elide the differences completely; I’m just nothing that the various environments tend to use the same metaphors for thinking about sound synthesis – metaphors that further reflect the way the hardware “looks” or “works” in the world).</p>
<p>But <em>watching</em> livecoding with the textual interfaces seems to me very different from watching them with the “visual programming” interfaces. For me, the former seems more “miraculous” somehow (even though I’m fully aware that underneath they’re both doing the same thing). I would even go so far as to say that text-&gt;sound invokes ancestral memories of spell-craft, as well the western longing for the “word made flesh” invoked so well by Wendy Chun in <a href="http://www.electronicbookreview.com/thread/firstperson/decoded" target="_blank">Week 4</a>.</p>
<p>Really, I think this is ultimately what I’m trying to get at with all of this. I’m not sure that “show us your code” gives us “access to the performers mind.” I am, however, quite sure that we regularly make this connection with code, because text/code holds such an important place in our culture.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Daren Chapin </strong>on March 2, 2010 at 7:13am</p>
<p>It should be noted that [most] of the interactive advantages in the environment above are mostly to do with merely having a language that supports a REPL (read-eval-print loop) rather than the specific utilization of Lisp’s (in this case, Scheme’s) rewritable S-expressions.</p>
<p>Having said that, macros are playing an active role in how <em><strong>Impromptu</strong></em> works. The ‘cosr and ‘sinr functions can be found in the <em><strong>Impromptu</strong></em> wiki. They are functions that oscillate the beat around a central point with a defined amplitude and cycle. See for instance: </p>
<blockquote><p>cosr .</p></blockquote>
<p>So:</p>
<blockquote><p>(cosr 70 10 .5)</p></blockquote>
<p>will produce an oscillation with center 70, range 10 and cycle 0.5.</p>
<p>But because that oscillation expression is being passed to a macro it is being rewritten rather than evaluated right away as a function, which allows setp (a macro; see setp ) to actually perform that oscillation over time.</p>
<p>Hence a construction like this:</p>
<blockquote><p>(setp zeb1 *smd2:comb1:damp* (cosr (cosr 70 10 .5) (cosr 10 10 .5) 2))</p></blockquote>
<p>is setting up an oscillation whose center and range themselves also oscillate. The magic of macro rewriting allows <em><strong>Impromptu</strong> </em>to rewrite these expressions and delay their evaluation, but note that the composition (in the function sense, not the music one) still has to be explicitly wired together by hand.</p>
<p>Back to my original point about just needing a REPL, and to see another way in which this could operate, consider Haskell. Despite being a pure, statically-typed functional language, Haskell ends up being a good choice for tasks such as livecoding. The reasons for this are hard to explain, and I could attempt a whole separate posting on this, but they have to do with the ease with which one can build functions out of other functions by using combinators (a form of higher-order function), in a way somewhat-but-not-really analogous to the way Lisp macros work.</p>
<p>The advantage of programming through a combinator library is that the whole is built out of parts declaratively rather than imperatively. Most people’s experience with most programming languages (including Lisp, although Lisp is good at supporting multi-paradigm programming) is through use of imperative code, especially where IO is concerned, so this is hard for most people to envision. A good example in a slightly different domain (graphical animation) is something called Functional Reactive Programming, an idea created by Paul Hudak (Yale) and Conal Elliott (Microsoft Research). Their paper is somewhat technical and requires a lot of Haskell depth, but Conal has a tutorial post here that is much more instructive. What’s important here is the natural, declarative composability of the functions, which you can see in how easily each of the successive animations is defined from the prior one.</p>
<p>Another issue worth mentioning is that Haskell has strong, static typing, so all statements in Haskell are completely type safe. This means that it isn’t possible to write functions/programs with type errors and get them past the interpreter, something that I have to imagine is a serious concern in a livecoding environment. As far as I can see in the Sorensen video, we never get to see an outright runtime error get sent to the Scheme environment. If the livecoder mistypes something and it generates an error at runtime, what happens I wonder? Does the music just stop? Or is there some sort of exception handling and stack unwind-protection to prevent this?</p>
<p>Here is a presentation (including several embedded videos) about livecoding in Haskell . (You can kind of zoom through the kooky BBC segment on slide 5 if you want, although starting around 2:00 one of the livecoders is using Haskell and the other one is using SuperCollider I think.)</p>
<p>Finally, one of the things I find interesting is that the <em><strong>Impromptu</strong></em>-style livecoders seem to prefer building a large, evolving program and continuously [re-]evaluating its pieces, where the approach with Haskell seems to be to build a domain-specific language (DSL ) and then modify it from a command line. There’s no particular reason for this a priori except maybe that Haskell is a really good environment for building DSLs, at least in comparison to Lisp. You’ll notice how specific and compact the language to change the sound patterns is by the end of the presentation.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Andrew Sorensen </strong>on March 3, 2010 at 5:14pm</p>
<p>Actually, <em><strong>Impromptu</strong> </em>isn’t REPL based, at least not in any standard sense. It is interactive, which as you say is a standard attribute of REPL environments, but the degree to which a REPL makes an environment “live” (as in live coding) is debatable. It is certainly possible to affect change in the runtime system through a REPL but to do so with any temporal accuracy is a completely different question. In other words you need a real-time environment with a suitable semantics for time, a determinate concurrency architecture, and real-time managed memory (i.e. incremental/concurrent GC).</p>
<p>I would argue that <em><strong>Impromptu</strong></em>’s primary “liveness” attributes are its “first class” semantics for time and its co-operative concurrency model - “temporal recursion”. If you’re interested you can read more here:</p>
<p><a href="http://impromptu.moso.com.au/extras/imp_tech_notes.pdf" target="_blank">http://impromptu.moso.com.au/extras/imp_tech_notes.pdf</a></p>
<p>Functional reactive programming is certainly another interesting option for livecoding although I’m not convinced that a synchronous approach to concurrency (which is basically what FRP is) is the best approach for livecoding. Although the ChucK language follows a synchronous approach and it is popular amongst livecoders, so time will tell. <em><strong>Impromptu</strong></em> does include a variety of runtime safety checks but I agree that static type checking would also be nice for livecoding. I have been making some moves in this direction. Since v2.0 <em><strong>Impromptu</strong></em> includes a basic JIT compiler to x86 which includes some basic type inference support. This is a new project for <em><strong>Impromptu</strong></em> but is coming along quit quickly.</p>
<p>I can’t say that I agree that Haskell’s DSL capabilities are superior to Lisps, but isn’t it great that people choose to work in such different ways. Let a thousand paradigms bloom I say!!</p>
<p>FYI: It’s Alex MLaean working with Haskell in the video, he’s been livecoding since 2000 (5 years before I started) and originally livecoded in Perl. Incidentally Alex is also using supercollider for scheduling and for all audio processing. Haskell is being used to generate messages to send to the supercollider server.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Daren Chapin </strong>on March 6, 2010 at 8:32am</p>
<p>After reading through the implementation document I think I understand how this is architected much better. Indeed, what I was trying to articulate with REPLs was that this was possible in any language environment that supported interactivity, though what I imagined when I saw the video was that we were seeing an emacs buffer and that there was a REPL-like command line á la ghci attached to the session “off camera”. Because the whole architecture is based on passing serialized messages to the scheduling engine, it really doesn’t matter how you do it as long as you can. In other words, a different language environment could still contribute to a performance as long as it had its own concurrency model and could be made to serialize sexps and send them to the task scheduler, is that right?</p>
<p>I have to think a bit more about the implications of using FRP with concurrency, but one of the other things I was curious about in seeing the video and which I don’t think I articulated well in the first post is: what happens if you make a mistake? You said there was some basic syntax/type/soundness checking there, but certainly nothing along the lines of what you would be able to have in a strongly typed language. So concurrency issues aside (the possibility of creating a race condition by messing up one’s temporal reasoning) how much care does one need to take in practice to not create a syntax error or omit an argument to a macro, and what consequences are possible if you do? Are you likely to just halt a local process (which would stop sending whatever component of the performance that process was responsible for) or is it theoretically possible to send something that would break the task scheduler and–proverbially and literally–stop the music?</p>
<p>The above isn’t just a technical question, though. I think it speaks to other questions here about the performative nature of the exercise. Implicit in any live virtuosic performance is a kind of contract with an audience that what you are doing takes skill and there is there is always the possibility of a mistake, which contributes excitement to the performance: a juggler can drop a ball, an actor forget a line, a trapeze artist miss a catch. I think in one of the Haskell videos you do see someone submit something at the prompt that is ill-typed, and you see the interpreter complain. So how much is this a concern for the livecoder, and do you think the possibility of error is conveyed to the audience as part of their engagement, or is it accepted more as something magical?</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>John Bell </strong>on March 4, 2010 at 3:05pm</p>
<p>I’m a bit handicapped here because I don’t know lisp, but one point I’m curious about is the heavy use of macros. Really, I feel like it’s the macros that make this work as a performance. If Andrew was forced to write out the expansion of cosr every time he used cosr in the code, the viewer would be more apt to get lost in complexity and the timing of the performance would bog down a bit. Similarly, it’s also helped along by using <em><strong>Impromptu</strong> </em>as an environment and what I assume were a lot of keyboard shortcuts and code completion tricks that made several lines of code appear on the screen instantly during the performance.</p>
<p>But the question that keeps coming to mind is: is it programming?</p>
<p>Ok, obviously it is programming, in all senses of the term. But does a livecoding performance convey the experience of programming? The vast majority of the programming that goes into producing the music we hear isn’t visible anywhere on the screen. Now, this would be true in any case given the layers of software between <em><strong>Impromptu</strong> </em>and the hardware, but things like macros (or functions, objects, or libraries elsewhere) that are part of the language being typed on the screen but do not actually appear hide a lot of complexity from the audience that could plausibly be exposed.</p>
<p>I do want to make clear that this isn’t intended as a value judgment on what’s going on on the screen (the whole “programming vs. scripting” issue where some people seem to think that you’re not hardcore enough if you don’t write your AI in assembly). It’s more a question of perception. I think that a lot of the “miraculous” feeling that Stephen mentions–and I also feel, by the way–comes from all of the prep work that’s done on the language and interface long before the performance begins. Now, when I’m coding my own projects, I never get anything close to that miraculous feeling because I’m actually going in and building out all the little functions and widgets that actually make the code tick as I’m working. So I wonder what the relationship is between programming-as-performance and programming-as-making-things-go, and how finding that relationship can be used to inform other questions of reading code (including, maybe, programming vs. scripting).</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Mark Marino </strong>on March 5, 2010 at 2:31pm</p>
<p>John,</p>
<p>I keep returning to this notion in <a href="http://www.electronicbookreview.com/thread/firstperson/decoded" target="_blank">Wendy’s chapter</a>, the flattening out of time and space, or “substituting space/text for time/process” (6)? In her chapter, she identifies the ways in which code-as-performative (as language that does) comes to efface the execution of the code. As she “state[s] the obvious, one cannot run source code: it must be compiled or interpreted. This compilation or interpretation―this making executable of code―is not a trivial action; the compilation of code is not the same as translating a decimal number into a binary one” (6). At the same time she asks “where does one make the empirical observation?” Our “live coding” conversation seems to be hovering around this space/text-time/process axis and also questions of the magical temporal relationship between the text and the process.</p>
<p>When I first watched Stephen’s video, I thought, a-ha! here is the moment where that time in between code and execution has been erased. Sorensen’s changes to the code are being executed in real time.</p>
<p>However, after reading through these threads and becoming more familiar with the distinctions that Daren draws out, I see that the live-ness of this coding is a function of the delay between Sorensen’s changes in the code and their execution.</p>
<p>Your discussion of the much less magical experience of grinding out programs seems to speak to this as well.</p>
<p>Also, I can’t help but imagine a spectrum something like this:</p>
<blockquote><p>analog physical instruments<br />digital physical instruments<br />digital software instruments<br />patch-based environments (puredate, max)<br />REPL/functional temporal recursion<br />imperative programming</p></blockquote>
<p>(Can someone build out this spectrum with a bit more accuracy and detail?)</p>
<p>In other words, the spectrum runs between the person who makes music (or sound) on an instrument through the physics of their body interacting with another physical object to the person making music by writing programs in an imperative language. [No doubt, this is an over-simplification, too.] Within that spectrum are different foci of audience enchantment.</p>
<p>What I keep coming back to is that it is not amazing to see someone merely press a piano keyboard, strum an electric guitar. Usually in that case, we are interested in accuracy, speed, dexterity, creativity of selection, et cetera. Nor is it impressive to see one drag a loop into a Garage Band composition. It does seem magical for someone to write: (cosr 70 10 .5) and then to change a parameter. And certainly there is a certain “And then the Creator made drums and they were good” aspect of:</p>
<blockquote><p>define drums<br />(lamda (beat)</p></blockquote>
<p>Here I’m thinking of that balance Sorensen is striking between legibility and uncertainty, between revealing his selections through clearly named functions to creating less recognizable changes by changing multiple sets of parameters or nesting elements. That “lambda” above reassures me of the mathematics of the process, of the computation, of the unknowable magic, not least of all because it is followed by:</p>
<blockquote><p>(setp zb1 *smd2:comb1:damp* (cosr (cosr 70 10 .5) (cosr 10 10 .5) 2))</p></blockquote>
<p>which includes those tantalizing nested cosr calls that I would not be able to (easily) process – at least not in the pub atmosphere that shows up in a video that Daren pointed us to.</p>
<p>This is not to say that someone couldn’t know exactly what Sorensen is doing. That actually makes the experience more like listening to Jazz, which satisfies multiple levels of understanding of the complexities of the performance and the improvisation. It is to underscore the role of (the extent of) natural language structures within the performance of this livecoder.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Mark Marino </strong>on March 5, 2010 at 4:10pm</p>
<p>The more I think about this, the more I realize that these qualities (accuracy, speed, dexterity, creativity of selection) are also key to my expectations in live coding - since someone visibly fumbling at the keyboard, scrolling hopelessly through lines of code, adding lines that obviously had no effect, writing lines and then deleting the instant their effects are experienced, or scripting efficient or needlessly circular processes would not be half as entertaining.</p>
<p>In other words, Sorensen’s performance has a virtuosity, so it is instructive to imagine what bad live-coding might look like in order to more fully examine this art.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Jeremy Douglass </strong>on March 8, 2010 at 11:52am</p>
<p>Dear John and Amanda,</p>
<p>My first response to John’s question “is it programming?” is strongly in line with Amanda’s comment on “degrees of improvisation in music” – I think of them as in some way the same question, about what constitutes authentic liveness, authentic engagement, and what the degrees of preparation and problem-factoring are that we see, whether in Jazz or jam bands or livecoding.</p>
<p>I think the broader question is really interesting to apply to code. To what extent is any act of programming (taken from a huge range of examples of people writing code) “making-things-go”? There is a huge amount of performative coding out there. For example, the whole Ruby on Rails culture rallied around an amazing and carefully scripted series of demo magic tricks. (“Voila!”)</p>
<p>Of course, you can argue that code generation and frameworks are a useful and productive way of focusing on a problem space – but that makes Rails and <em><strong>Impromptu</strong> </em>start to have a lot in common. Are pre-written macros and libraries ‘cheating’? At what point do we exit liveness? When we draw on scripted elements or libraries of things that previously ‘worked’? When we operate exclusively in a space without exploration, without the possibility of discovering something new? When we have trivial variability but are essentially prevented anything from going wrong? When there is no variability at all? My sense is that different people will draw different lines in the sand – I’m most interested in tracing the continuum.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Daren Chapin </strong>on March 8, 2010 at 4:26pm</p>
<p>Jeremy,</p>
<p>This is a great question. As one way of thinking about this, I propose that (borrowing from Clarke) any sufficiently advanced macro library is indistinguishable from demo magic. One abstract way of thinking about programming is as a process of constructing maps between domains, for example:</p>
<blockquote><p>human idea &lt;==&gt; code/algorithm &lt;==&gt; results/action/output <br />(what to do) (how to do it) (what is ‘done’)</p></blockquote>
<p>I think we are accustomed to using the complexity of those maps as a proxy for our sense of the degree to which ‘coding’ vs. ‘cheating’ is going on. For instance, consider the following progression of actions and proposed interpretations:</p>
<blockquote><p>(person moves volume lever up 20% on sound mixer board)</p></blockquote>
<p>Not programming. Now change to a virtual mixer with an API (“Recording on Rails”):</p>
<blockquote><p>mixer.master_volume.change(+20.percent)</p></blockquote>
<p>Sort of looks like programming, but is there any qualitative difference between that and physical version before? What if roles were reversed and it was dragging the GUI lever that called this function?</p>
<blockquote><p>mixer.mixers.each {|mxr| mxr.volume.change(+20.percent)}</p></blockquote>
<p>Same result as just changing the master volume, but feels programing-like because there is iteration on the individual levels.</p>
<blockquote><p>mixer.mixers.each_with_index{|mxr, i|<br />mxr.volume.change(i.percent)</p>
<p>}</p></blockquote>
<p>This definitely looks and feels like programming now, although I could maybe accomplish the same thing physically with the careful use of a straight edge. But it’s trivial to modify the code to the point where I couldn’t; the individual mixer levels could be some very complex function I’ve built out of splines called ‘splunge.’ But once that setting proved useful the code would almost certainly land in a library and look like this at the next session:</p>
<blockquote><p>mixer.splunge</p></blockquote>
<p>and we are back to something that doesn’t look or feel like programming again - equivalent to my striking a preset button on my electronic mixer board. The power of libraries and macroization brings us uncomfortably close to collapsing the distance between the idea and implementation domains, the Uncanny Valley of coding. When a Rails programmer types:</p>
<blockquote><p>30.minutes.ago</p></blockquote>
<p>and the code is literally isomorphic to the way the idea would be described in English, it is not hard to feel as if there any coding is going on at all.</p>
<p>And yet this kind of heuristic simplification is one of the primary goals of programming, at least insofar as programming is a social exercise. Libraries, extensible classes, polymorphism, macros, code generators, metaprogramming, domain-specific languages, parser combinators: all of these mechanisms aid us in transforming what once seemed like complex maps between domains into ones that are easy for us to reason about, so we can in turn build larger and more complex ones. It’s this constant interplay of building-out-and-abstracting-away that makes coding such a lively activity, and perhaps so simultaneously sundry and magical.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Jeremy Douglass </strong>on March 9, 2010 at 2:27pm</p>
<p>Daren,</p>
<p>Your Clarke paraphrase and discussion of “demo magic” resonates for me with discussions of magic in Wendy Chun’s Week 4 presentation . It is also really interesting how effective macros or library code can be both mystical an an obscurantist way (“what <em>is</em> cosr?”) but alternately can seem like the most straightforward of elocution – sincere, or, as Stephen cites Holden Caulfield, “not phony.”</p>
<p>You use the phrase “Uncanny Valley of coding” to describe isomorphism to English – a provocative idea. The “uncanny” part resonates for me with the uncanny experience of reading the not-code of mezangelle in mez’s Week 6 discussion . More generally, I thirevulsion or some other aesthetic crises awaits as code and natural language become isomorphic is an interesting one to explore – it leads us past syntactic sugar and macros, and straight to the strong form of that isomorphism:natural language programming (NLP) . But in my experience, what happens to beginners and intermediate users of NLP languages is not revulsion – it is frustration, but also a kind of superstitious thinking that assumes extremely broad isomorphism from extremely narrow examples, and is then constantly frustrated when these expectations are not met. In other words, learning an NLP language is a Loebner Prize Turing Test in slow-motion, with all the joys and disappointments.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Noah Vawter </strong>on March 5, 2010 at 5:48am</p>
<blockquote><p># Give us access to the performer’s mind, to the whole human instrument.</p></blockquote>
<p>His or her body is where? Is the mind the whole human instrument?</p>
<p> </p>
<p><strong>Reply by Mark Marino</strong></p>
<p>&gt;How is the code (un)like the tubes of the pan flute?</p>
<p>The flute’s tubes offer a carefully-contrived space where the denser material, bamboo, confines the movement of air in a mysteriously ordered way – it resonates with a mostly sinusoidal waveform. An electrical circuit is a similarly-contrived space where, in place of fiber and air, metal confines the electronic movement. However, the shape and size of the bamboo are sufficient to produce a perceptible event - an audible tone. Electrons move so fast (in this atmosphere…), that their natural oscillation is inaudible to us. So, instead of using electricity as a fluid (as analog synthesizers do), swishing through a space, we construct channels for it, preferring, instead of hearing the oscillation of a single mass, to hearing the collaboration of hundreds and thousands of small canals/channels interacting with one another.</p>
<p>Code is a chance to architect the electrical canals, a way of controlling the flow of water from basin to basin, selecting which basins overfill and spill into their neighbors. Some types of code simulate the single channel of the flute, while others combine these basins into still more complex structures.</p>
<p><strong>Reply by Max Feinstein</strong></p>
<blockquote><p>&gt;On the other hand, when a livecoder calls for a random X or Y or Z,&gt;nobody can really predict what the computer will generate.</p></blockquote>
<p>Musicians, such as friends of mine at Berklee, have learned to hear randomness as a result of their experience composing with random elements. Many random generators have distinct patterns. For example, the LFSR can be interpreted as continuously either a) doubling in value, or b) doubling in value, then subtracting a constant. It’s also difficult to obscure randomness - it must be ‘shaped’. This is the idea behind the various “colors” of noise.</p>
<blockquote><p>&gt; Or if anyone would make the argument that instruments other than the computer&gt; (eg, <em><strong>Impromptu</strong></em>) are also random?</p></blockquote>
<p>I see randomness used differently in computer and e.g. electric guitar music.</p>
<p>In computer music, randomness tends to be an economic measure, to “stretch out” a pattern. It also tends to be employed nearly continuously vs. more traditional live instruments. For example, in a guitar solo, there is often a tension behind how much the performer is willing to risk to expand the sound, based on his/her ability to “reel it back in”. Random notes are sometimes briefly in bursts. This is randomness that accompanies brief moments of panic or ecstasy, etc. In comparison, I perceive randomness in computer music more like the random noise around us which we create when we measure cloud cover, or count many other things which we rarely perceive (it is noise after all), such as the deviations in the number of people riding a bus from day to day.</p>
<p>That might sound like a “con” of computer music and a “pro” of acoustic music, but it’s not that simple. While learning to play an instrument, it is largely an unknown and random space. Yes, our intuition can tell us where, for example, the higher notes vs. lower notes are on a guitar, but the difference between a tritone and a perfect fifth is a small step with much greater harmonic implications. They’re located next to each other on the guitar, but can not be easily substituted for one another. This is particularly evident when learning to play for the first times, or when figuring out melodies at any stage in musicianship. How many of us have not swept through a four-chord progression, having compiled the first three chords, and search for the “right” fourth chord to complete the sequence? Along the way, we hit many random notes. Even with experience, one may learn a scale, and make a decision between two intervals to resolve a melody, but with a degree of uncertainty about which one to choose.</p>
<p>This also points to an important difference between computer.random() and acoustic randomness: the same critically-confining architecture/shape which enables a guitar to work also has “sweet spots” and “dead zones.” Generally speaking, these are places which are flaneuristically sought after or avoided. I mention this, because I’m not only talking about sonic sweet spots, but also locations on the instrument which are physically easier and harder to play than others. Computer code (typically…) has no such inhibitions in its random function. A simple random function, like a dutiful feline, will attempt to delight you with a minor second interval just as peppily(*) as it offers up a unison.<strong></strong></p>
<p><strong><br /></strong></p>
<p><strong>Reply by</strong> <strong>Max Feinstein </strong>on March 5, 2010 at 3:19pm</p>
<p>John Cage (1912-1992), an American music composer who greatly influenced electronic music, incorporated some of the very same notions of abstraction as Sorenson employs. The transcript from Cage’s speech to his audience before a 1957 performance reveals some of these fascinating parallels between his style and Sorenson’s approach:</p>
<blockquote><p>Those involved with the composition of experimental music find ways and means to<em> remove themselves from the activities of the sounds they make</em>. Some employ <em>chance</em> ok of Changes, or as modern as the tables of random numbers ussicists in resous to the Rorsch may be roughly divided and the actual sounds within these divisions may be indicated as to number but left to the performer or to the splicer to choose. <em>In this latter case, the composer resembles the maker of a camera who allows someone else to take the picture.</em>(Emphasis mine)</p></blockquote>
<p>The first highlighted bit, about composers who “remove themselves from the activities of the sounds they make,” reads to me just like the OED definition of abstract (v.):</p>
<p>To draw off or apart; to separate, withdraw, disengage from..</p>
<p>I find that Sorensen achieves exactly this with his music. As he stated above, “[randomness] can also be togct away detail without requiring a complete model of the undrynample, and most striking to me, is the irony of a composer abstracting portionsoI hear was written with intent by the composer, each sound a ete impe“[abstraction] is hugely important in livecoding where your ability to implement complex processe of Daren’s discussion about the advantages of programming declaratively through a combinator library. It’s almost as if the composer who implements randomness s livecoding but painstakingly obvious in its operations). I think this idea is neatly illustrated by the last italicized portion of Cage’s remarks above.</p>
<p>Another bit of Cage’s speech that I find interesting:</p>
<p>Whether one uses tape or writes for conventional instruments, the present musical situation has changed from what it was before tape came into being. This also need not arouse alarm, for the coming into being of something new does not by that fact deprive what was of its proper place. Each thing has its own place, never takes the place of something else; and the more things there are, as is said, the merrier.</p>
<p>Cage’s concept of the interplay between conventional instruments and new instruments (which for him consisted of tape, among other things) can be extended to encompass the digital realm as well. In this case, I’m reminded of N. Katherine Hayles’s idea of intermediation – the transformative process that takes place at the intersection of the analog and the digital. When overlapping Haylesian intermediation and Cage’s calmness about the transformative process that occurs through medium changes (e.g., analog to digital), I imagine the act of producing electronic music to be colored with sort of serene and peaceful emotions. Just a side note, really, but the thought has made livecoding performances all the more enjoyable for me to watch.</p>
<p><strong><br /></strong></p>
<p><strong>Reply by Jeff Nyhoff </strong>on March 7, 2010 at 6:06pm</p>
<p>The theatrical side of my double-background is creating some “interference” for me as I read through these wonderful posts. Some of the notions of “live performance” that seem to be operating, here, run counter to the way they tend to operate within theatrical discourses. The “liveness” of “performance” turns out to be a delightfully slippery concept when one sets out to try to pin it down …</p>
<p>First, “improvisational” theatrical performances are seldom as loosely structured as they seem. They are usually very, very well ee.g., by suggestions from the audience – but these elements are tightly constrained: by the way the invitation for input is framed, or by the existing circusexts,” if you wilon these dgerienced perohe impression that the “random” elements are mre difficult to accommodate than they really are for the skilled, experienced, and well-prepared performers.</p>
<p>In fact, this illusion of being “unscripted” and “unrehearsed” (what Stanislavsky called the illusion of the first time”) is part of most conventional and popular theatrical forms. Persons who hae never doe any serious acting ften ask “lie” theatre actoslines?part;making ht after night, is theimpression that it is “un-scripted.” Bll-prepared instrumentalists do this – pretend to be doing much more composing-on-the-spot than theyactually are? It is especially challenging to see this as an extensively improvisational work when it is a <em>solo</em> work. There are no inputs being taken from the audience. There are no othe musicians’ choices to accommodate, as in the case of a “jam” session.</p>
<p>Similarly, when I have teach several sections of the same computing course and, in each, take students through programming examples by coding on the screen in front of them, it doesn’t take long before I can do most of the code without consulting a “script/listing.” In fact, at that point, it would actually be <em>harder</em> to try to slavishly follow an exact pre-scription of code, rather than proceedtions from the students regarding parameters, function names, etc., which helps make working through the programming example seem more improvised and participatory than it actually is. (And isn’t this the“end user” experience in general? The *ilusion* of large degrees of freedom and of meaningful and substantive participation , when, in fact, we are tightly constrained in terms of our understanding, our actions, our <em>expectations</em> – including what we come to accept as a “pleasurable” interactive experience?)</p>
<p>In TV news broadcasts, classroom lectures, and many other performance contexts, audience engagement is predicated in part upon keeping the amount of scripted-ness, planning, and rehearsal, *hidden*. And we are well-acculturated to respond to such theatrical forms in the requisite manner, often because we desire h at will reslnislavskian illusionistic theatricalities lurknn orof “live ef audiences to refuse this theatrical positioning and, instead, approach suc in the way nten to sympon advance that I am inclined to suspect. However, even then, it still seems to me that part of in part upon keeping the amount of scripted-ness, planning, and rehearsal, *hidden*. And we are well-acculturated to respond to such theatrical forms in the requisite manner, often because we desire the pleasure that will result from our ability to believe in an illusory degree of “liveness,” unpredictability, and un-scripted-ness in the unfolding sequence of events.</p>
<p>There seems to be some Aristotelian/Stanislavskian illusionistic theatricalities lurking in our notions of “live performance,” here, in that such theatrical forms ask the audience to forget that there’s a script and accept the illusion of un-scripted, unrehearsed-ness. Brecht, of course, called for audiences to refuse this theatrical positioning and, instead, approach such performances in the way one might listen to symphony’s performance while having the score in front of you.</p>
<p>Perhaps there is more in “live coding” that is not coded/scripted in advance that I am inclined to suspect. However, even then, it still seems to me that part of its appeal for us, theatrically, is predicated upon an “Aristotelian” theatrical notion that I’ve mentioned before: that, conventionally, the script/code is something that precedes performance/execution when, in fact, in much theatre and most programming, the script/code is authored<em> through</em> execution/performance. And, in this sense, I would still – and do – find Sorenson’s work fascinating, in that it would still – and does, I believe – constitute a kind of temporally compressed re-staging of the *process* of the composition, the programming.</p>
<p>One other thing that I love about Sorensen’s work is that it does seem to complicate one other<br />Aristotelian theatrical notion has I’ve worried has been lurking here for the past few weeks. I’m thinking of that troublesome point in the Poetics that claims that <em>reading</em> the script/code is sufficient as an experience of its effects, without seeing/hearing it performed/executed. It would be difficult to make this claim for Sorenson’s work, whether we are attempting read it “live” or in a static form!</p>
<p> </p>
<p><strong>Reply by</strong> <strong>Jennifer Lieberman </strong>on March 8, 2010 at 10:57pm</p>
<p>Jeff, you said exactly what I was thinking as I was reading through these posts: “In fact, this illusion of being ‘unscripted’ and ‘unrehearsed’ (what Stanislavsky called the ‘illusion of the first time’) is part of most conventional and popular theatrical forms.”</p>
<p>I came to this performance immediately after finishing Mark Katz’s Capturing Sound: How Technology Has Changed Music. While analyzing what he calls the “phonographic effect,” (which I will oversimplify by summarizing as the feedback between the creation and apprehension of music once it can have a trace beyond live performance,) Katz points out that the recent recovery of editions of early jazz recordings adhere to later/different recordings much more than listeners anticipated. The aura of improvisation, it seems, was more important than actual improvisation. Which is provocative in itself.</p>
<p>But there is one other thing that my reading of Katz might add here. He examines how dramatically the experience of listening to music changes when listeners cannot also see the expressiveness of the musician’s body, arguing that some results of this include the rise of the vibrato in violin music and the compression of dramatic pauses in recorded piano music. Without the dramatic affect of the body, the sound needs to express drama/tension/emotion in other ways.</p>
<p>The presence and absence of the programmer complicates this in interesting ways, as Noah helpfully discussed above. Although much is occluded from the audience, Andrew can manipulate the affect of his music by letting his cursor pause before manipulating the code again – making us anticipate what he might be thinking, where the music might go, and what tweaks we will see on the screen before us. For me, this was exciting because I could only understand parts of the syntax (I don’t know Lisp, but it has an appearance of readability I will touch on below). It’s interesting to think that a cursor can have that type of affect – but perhaps anyone having a romantically-charged conversation on an IM client has that same feeling of anticipation. As Mark put it, “Nor is it impressive to see one drag a loop into a Garage Band composition. It does seem magical for someone to write: (cosr 70 10 .5) and then to change a parameter.”</p>
<p>The act of typing is so familiar and embodied (a bad mirror-neuron analogy comes to mind) that it feels kinetic; but I wonder how the experience might differ if we were actually in the room with Andrew, looking over his shoulder.</p>
<p>To probe this question a bit further: what if we juxtapose the livecoding with something like the stylophone beatbox: <a href="http://www.youtube.com/watch?v=hELTtsBRie4&amp;feature=player_embedded" target="_blank">Brett Domino: Hip-Hop Medley</a></p>
<p>Both the stylophone beatbox and the macro-laden code of Andrew’s composition use recursive functions to make the production of relatively complex musical scores appear (for lack of a better word) succinct. But which one seems more ‘magical’ or more like musical performance? Although the stylophone beatbox is literally black-boxed, it seems ‘easier’ to me because the ‘musicians’ are aloof (and perhaps because they’re reproducing someone else’s music, rather than creating seemingly-original or -improvisational scores).</p>
<p>Stephen, in your video you compare the experience of watching livecoding to the experience of watching a musician. I agree; but I wonder how much of this end-user experience is determined by the implied embodiment of the coder. I personally imagine Andrew typing attentively, thoughtfully reconsidering his code as he writes it. I imagine him sometimes whimsically, sometimes intently making a decisive keystroke that changes the whole nature of the music I’m enjoying. But, if we saw Andrew coding– rather than the livecoding stream – and he were to look as aloof as the stylophone beatboxers, would the music still have the same level of tension? Put another way: is it the incongruity of watching sparse syntactical trees create interesting music – or is it the fact that the play between complexity and simplicity, illegibility and legibility looks like “work” that makes these performances so engaging?</p>
<p>Another question might be: what if Andrew wrote out macros that were completely illegible from the viewer’s perspective? For someone who doesn’t know lisp, like myself, part of what makes the performance so compelling is the tension between readability and unreadability: I can recognize some terms and some conventions of functional scripting programming paradigms, but I don’t know if it would be as interesting if ‘cosr’ really looked like ‘xhsaksjosafhfhsoasd.’ This may seem silly; but I think the issue of the appearance of legibility of a language like Lisp (as I think Stephen suggested in his video) is an important aspect of the experience. I might even go so far as to suggest that there’s something uncanny about it.</p>
<p><strong>Rebly by</strong> <strong>Jeff Nyhoff </strong>on March 9, 2010 at 10:27am</p>
<p>Jennifer wrote:</p>
<p>“Another question might be: what if Andrew wrote out macros that were completely illegible from the viewer’s perspective? For someone who doesn’t know Lisp, like myself, part of what makes the performance so compelling is the tension between readability and unreadability: I can recognize some terms and some conventions of functional scripting programming paradigms, but I don’t know if it would be as interesting if ‘cosr’ really looked like ‘xhsaksjosafhfhsoasd.’ This may seem silly; but I think the issue of the appearance of legibility of a language like Lisp (as I think Stephen suggested in his video) is an important aspect of the experience. I might even go so far as to suggest that there’s something uncanny about it.”</p>
<p>An excellent observation!</p>
<p>And, as it seems you are suggesting, this notion of “recognizability” and “legibility” of certain portions of code is also likely to be highly contingent.</p>
<p>For example, the “cosr” and”sinr” calls were actually among the ones that I found <em>most</em> “recognizable,” “legible.” Similarly, when I teach programming to visual artists, even the ms these two simple companion geometric formulas are. One assignment I will often have them do is to generate both an audio representation of a particular sound wave and use the same methods and parameters to render also an accompanying graphical wave form representation of the wave, such that, when the parameters change, they can see both the graphical wave form and hear the audio change. My point here is that, for these sorts of visual artists students – new to programming and often math-phobic – Sorenson’s cosr and sinr functions would probably have been the ones they actually would recognize <em>first</em>.</p>
<p>It also occurs to me now that, in the case of Sorenson’s cosr and sinr calls, we only hear the audio representation of the resulting wave. But he could also, easily, have created graphical representations of the waves that he’s building. After all, audio representations of his mathematically modeled/coded waves are no more “honest” or “authentic” than any generated geometric, graphical wave forms using the same methods and parameters would be. Perhaps such graphical representations would be unappealing in that they might demystify the coding to a degree that would undermine its mystique and “theatricality.” But if that is so, then perhaps “obscurantism” isn’t as disfavored as their manifesto claims, and that they really don’t want to “give us access to the performer’s mind, to the whole human instrument” as readily as the statement might suggest upon first reading. Although, I suppose this depends largely on which persons are implied in the word “us.” Is this performance intended for a coterie audience?</p>
<p>Stephen also raised the question of purely textual vs. graphical programming of sound (Chuck, Max/Pd), and I think unduly privileging strictly alphanumeric programming is something to guard against, here. If we’re going to call this kind of programming environment a “textual interface,” I think we need to hasten to add that a program created with Chuck or Max/Pd or any other graphical environment is just as much a “text” and constitutes “code” just as much as strictly alphanumeric code.</p>
</div></div></div><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-inline clearfix"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tags/livecoding">livecoding</a>, <a href="/tags/commentary">commentary</a>, <a href="/tags/improvision">improvision</a>, <a href="/tags/music">music</a>, <a href="/tags/code">code</a>, <a href="/tags/composition">composition</a>, <a href="/tags/instrument">instrument</a>, <a href="/tags/programming">programming</a></div></div></div>Mon, 19 Mar 2012 15:45:43 +0000EBR Administrator2086 at http://electronicbookreview.com