Title: Tangled Melody: Reflections on Pachelbel's Canon
Tags: Pachelbel Kanon Pachelbel-Canon-in-D MP3 Feynman Variations-On-The-Kanon
Blog Entry: WHAT greater bliss is there, than spending a lazy Saturday afternoon doing absolutely nothing of consequence? I had just settled down to watch the afternoon matinee on TV one such Saturday, hoping that the movie would be good. Well Vijay's films are usually good, and I looked forward to being entertained. Sipping a cup of ginger laced coffee ahh the aroma is just heavenly my eyes wandered to the guitar at the corner of the room. I picked it up, intending to amuse myself during those incessant commercial breaks. It had been a long time since I played a classical piece on the guitar. One of my favourites happens to be Barrios' El Ultimo Tremolo , also known as Una limosnita por amor de Dios . So I started playing this piece, expecting to revel in its hauntingly beautiful melody and harmonic texture, but boy was I in for a big disappointment. I was unable to maintain a smooth tempo and had difficulty holding down the notes. By the time I reached the end of the first section, I was already huffing and puffing. My muscular memory had truly atrophied below the level of respectability. Here's sampler of what my hands wrought: "I gotta do something about this," I thought, "and do it soon". So with my eyes still on the TV - it was an excellent Vijay story, by the way - I started to practice the tremolo the art of repetitively hammering away on a particular string on the guitar until the notes almost begin to merge. I started the tremolo exercise with the C chord and let my fingers wander among the various chord shapes without consciously thinking about them. I found myself playing the following in sequence C, G, Am, Em, F, C, F, G. The resulting sound had an uncanny resemblance to something I'd heard before. See if you can spot it: I played the sequence again, this time allowing my fingers greater latitude to play notes not commonly used in the triads. Here's the result: There could be no doubt now as to what this was or was attempting to be. It was a caricature of George Winston's Variations on the Kanon . It is not that I particularly care for the Kanon , or the Canon in D (Pachelbel's original, George Winston plays it in the key of C). In fact, whenever I get to the Kanon on my mp3 player, I quickly skip to the next track. George Winston's rendition of Vince Guaraldi's Cast your Fate to the Wind is the kind of music I prefer. What's surprising is that my seemingly random choice of chords could result in a sequence characteristic of Pachelbel's Canon . Does this mean that at some subliminal level I have affections for the Canon in D ? I don't think I'll ever know for sure, but the whole experience has got me thinking about how our minds seem to prefer particular sequences of notes or chords. Such preferences surely reflect the dictates of biology as well as the influence of cultural exposure. In my line of work I sometimes find myself resorting to computational constructs known as Finite State Machines, and it's obvious to anybody who has used them that they can be used to generate the sequential series of chords we find in music such as Pachelbel's. So what is a Finite State Machine? [You can safely skip the dry stuff that follows and jump straight to the conclusion by clicking here ] A finite state machine (FSM) is an abstraction of stuff we routinely encounter in our daily lives the behaviour of traffic lights, DVD players and coffee making machines to name a few. We all intuitively understand what they are and how they behave. With traffic light as our example, an FSM can be thought of as an object that could be in any one of a number of permissible internal states (eg. red, yellow, green). External inputs can cause the object to change its state in response. In the case of traffic light, that input comes from a timer signal. The new state that the object shifts to is specified by a transition rule, which could be in the form of a table, or a diagram like the one shown below: The transition rule (the diagram) shows that certain events are not permitted, e.g. the transition from Red to Yellow, or from Green to Red. What we should appreciate is that once the transition rule has been laid down, and the initial state, e.g. Red, specified, the sequence of all future states that the traffic light will go through is completely determined. You can predict with complete certainty the state the traffic light will be in at any given time in the future. By now you could probably tell where all this is leading: An FSM can be used to generate a sequence of chords. Let's try it for Variations on the Kanon . The diagram below shows the actual choice of chords used by the Kanon from the range available in the C major scale. Astute readers will immediately realise we'll have a problem on our hands if we try to write down the transition rule for the sequence of chords shown above. In a simple implementation of an FSM like the one used for the traffic light example, the next state is fully determined by the current state (we'll ignore the input signal for now). In the 5 th measure, the transition is F -> C, whereas in the 7 th measure the transition is F -> G. One way to deal with this situation is to use the musical measure itself as input to the FSM. Another option is to specify a transition rule that depends not only on the current state, but the previous state the FSM was in as well. The real problem with using an FSM for generating chord sequences is that we are stuck with the same sequence for all of eternity, repeated ad nauseum. Used in this way the FSM is nothing but a crude memory device. What would be more useful for us is to have a construct that uses the Kanon as a style guide to generate novel sequences or even completely new melodies. We would like to have a construct that can 'learn' from examples fed to it to identify those musical motifs that humans find aesthetically pleasing. Markov Chains One mathematical construct that has the property we seek is the Markov chain. It is something we use daily. We use it every time we make a phone call on our cell phone, surf the web over a wifi connection or google something on the internet. So how would the Markov chain help us with creating music or understanding why humans have predilection for certain musical motifs? We can understand Markov Chains by thinking of them as extensions to FSM. In an FSM the transition rules specify unique inviolable transition events from an existing state to a future state. In our example, at the start of the Kanon , we have the transition C -> G. No other transition is specified or allowed. This is rather limiting and it is the reason why a simplistic implementation of an FSM cannot be relied upon for generating novel musical sequences using existing musical styles as template. In a Markov chain the rules that govern transitions are modified so that they specify the probability that a given transition will take place. If you look at the Markov chain depicted below you'll notice that transitions from C to chords other than G are possible, but the most probable transition is C -> G. The numbers above the vertices indicate the probability of transitions specified by the corresponding arrows. For C -> G the probability is 0.4 (i.e. there is a 40% chance of it happening) and so it is the preferred path through sequence space. In order to use a Markov chain to generate a sequence of chords, we have to first seed it with values for the transition probabilities. There are a number of ways of doing this. The easiest is to arbitrarily choose large probability values, e.g. 0.4 as shown in the diagram above, for transitions that we favour and one which is characteristic of the Kanon . The other option is to systematically estimate (using an appropriate algorithm) those probabilities from observation of chord sequences in music we like. A database of hit songs from any given era could be used for this purpose. One particular approach that I'm fond of is to use evolutionary computation techniques such as genetic algorithms for estimating the parameters (i.e. the transition probabilities) of the Markov model and vice versa. These techniques rely on evaluating what is known as the 'fitness function'. For things musical, the fitness function is a measure of how aesthetically pleasing the music is to the ear. A program that uses this approach will use model parameters generated through genetic algorithms to generate a sequence of musical notes which will then be presented to a human listener for evaluation. The decision by the human listener whether a particular motif is pleasing or otherwise will then be used to either accept or reject the model parameters, and hence the genetic sequence that gave rise to it. So Where's the Beef? That detour into a discussion of finite state machines and Markov chains might seem unnecessary to some, but I have decided to include them in this post anyway because they capture the thought processes I went through when I realised that the sequence of chords I thought I was playing purely on a whim happened to be the sequence used in Pachelbel's Canon . Prior exposure to music, be it at home, in the elevator or at work music is everywhere these days - had predisposed my mind to expect certain musical motifs as natural. So strong is this predisposition that we have a tendency to see patterns where there are none, or hear sounds when none have been made. The more sophisticated songwriters understand this phenomenon and exploit it to their advantage, and for our listening pleasure, in the songs they write and in the music they create. At another level, psychoacoustics as this phenomenon is called, has been exploited by engineers and scientists to design audio equipment or shrink file sizes to a degree that seems too good to be true. Take the mp3 file format for example; the reason why it can be made so compact is because there is no attempt to accurately reproduce all the information contained in the original sound. Sounds determined to be below the threshold of human perception within a given audio context are discarded or have their priority reduced when deciding which information should be retained and which can safely be thrown away. The predispositions that our minds display are not merely limited to harmonic sequences; they shape the deep-seated expectations we harbour in our daily interactions with other people, and in those important decisions we make in our lives. Mathematical constructs such as Markov chains allow us to gain some degree of appreciation for such phenomena and thereby greatly enrich our understanding and experience of the world. If you are one of those who find the statement that intellectual understanding can only heighten the delight of sensual experience unconvincing, I'd like to end this post with a quote from that inimitable iconoclast, a physicist's physicist: Richard Feynman. Addressing his students one day in a class on introductory physics, he said: "A poet once said 'The whole universe is in a glass of wine.' We will probably never know in what sense he meant that, for poets do not write to be understood. But it is true that if we look at a glass closely enough we see the entire universe. There are the things of physics: the twisting liquid which evaporates depending on the wind and weather, the reflections in the glass, and our imaginations adds the atoms. The glass is a distillation of the Earth's rocks, and in its composition we see the secret of the universe's age, and the evolution of the stars. What strange array of chemicals are there in the wine? How did they come to be? There are the ferments, the enzymes, the substrates, and the products. There in wine is found the great generalization: all life is fermentation. Nobody can discover the chemistry of wine without discovering, as did Louis Pasteur, the cause of much disease. How vivid is the claret, pressing its existence into the consciousness that watches it! If our small minds, for some convenience, divide this glass of wine, this universe, into parts physics, biology, geology, astronomy, psychology, and so on remember that Nature does not know it! So let us put it all back together, not forgetting ultimately what it is for. Let it give us one more final pleasure: drink it and forget it all!"
Bahai Social Networking :: Bahai Friends :: Bahai Network :: Bahai online :: Bahai Singles :: Bahai dating
» Blog
» Tangled Melody: Reflections on Pachelbel's Canon
VIEW FULL VERSION: Link