{"id":230,"date":"2008-05-09T15:24:32","date_gmt":"2008-05-09T20:24:32","guid":{"rendered":"http:\/\/www.pchristensen.com\/blog\/?p=230"},"modified":"2013-12-23T12:08:45","modified_gmt":"2013-12-23T19:08:45","slug":"music-operates-directly-on-your-abstract-syntax-tree","status":"publish","type":"post","link":"http:\/\/pchristensen.com\/blog\/articles\/music-operates-directly-on-your-abstract-syntax-tree\/","title":{"rendered":"Music Operates Directly On Your Abstract Syntax Tree"},"content":{"rendered":"<p>I mentioned music in each of the last <a href=\"http:\/\/www.pchristensen.com\/blog\/articles\/what-kind-of-software-would-people-actually-pay-for\/\">two<\/a> <a href=\"http:\/\/www.pchristensen.com\/blog\/articles\/the-value-is-in-the-experience\/\">posts<\/a> as a digitizable creation that people enjoy enough to pay for.  So what is it about music that is so great?  I&#8217;ve been asking myself this question for years, and now seems like the time to try and tackle it.<\/p>\n<p>I&#8217;ve always enjoyed music &#8211; from playing the trumpet in elementary school, owning a $230 portable CD player in 1993, to being an <a href=\"http:\/\/www.amazon.com\/o\/asin\/B0012JNQYK\/pchristense03-20\" target=\"_blank\">iPod man<\/a> today.  Practically every spare dollar I earned between the ages of 13 and 17 was spent on CDs.  I love and appreciate all kinds of music &#8211; classical, rap, rock, alternative, opera, techno,  Hawai&#8217;ian (especially Hawai&#8217;ian), even country (Claire from 9th grade, if you&#8217;re reading this (which I&#8217;m pretty darn sure you&#8217;re not), it took over 15 years and I&#8217;m still not a fan, but I can say now that I appreciate country music).  But now I don&#8217;t listen to music very often.  In fact hardly at all.  I have my iPod running most of the day, but I listen to podcasts, sweet delicious podcasts of all stripes that keep me informed and help me learn new things.  What&#8217;s the difference between me now and when I was in high school (besides the notably reduced mental redardation and 70 extra pounds)?<\/p>\n<p><strong>Music and the Brain<\/strong><\/p>\n<p><a href=\"http:\/\/www.amazon.com\/exec\/obidos\/ASIN\/0805074562\/pchristense03-20\"><img loading=\"lazy\" decoding=\"async\" style=\"float:right;margin-left:4px;border:0px;\" src=\"http:\/\/ecx.images-amazon.com\/images\/I\/41QXSP190PL._SL160_.jpg\" alt=\"On Intelligence\" width=\"106\" height=\"160\" \/><\/a><\/p>\n<p>My answer has come from my interest in neuroscience and artificial intelligence.  Jeff Hawkins&#8217; book <a href=\"http:\/\/www.amazon.com\/o\/asin\/0805074562\/pchristense03-20\" target=\"_blank\">On Intelligence<\/a> (God bless him for writing it) stresses the temporal nature of the brain &#8211; how learning, memory, even sensory perceptions like vision and hearing only work on data that changes through time.  Our brain works by processing related events connected by the sequence they occur in &#8211; kind of like musical notes!  Music speaks our brain&#8217;s native language!  No compiling, no byte code, etc &#8211; it operates directly on our abstract syntax tree (that&#8217;s my analogy, don&#8217;t hold it against Jeff).  That is why it&#8217;s easier to remember song lyrics than the words of a speech &#8211; the lyrics are attached to a musical sequence that burns into your mind.<\/p>\n<p><!--more--><\/p>\n<p>[Someday I&#8217;m going to give On Intelligence a proper writeup, but I don&#8217;t have it in me right now.  It is definitely <em>the most exciting <\/em>book I&#8217;ve read in the last couple years.  Whoops, gotta stop talking about it &#8211; my pulse is starting to race.]<\/p>\n<p><a href=\"http:\/\/www.amazon.com\/exec\/obidos\/ASIN\/0525949690\/pchristense03-20\"><img loading=\"lazy\" decoding=\"async\" style=\"float:left;margin-right:4px;border:0px;\" src=\"http:\/\/ecx.images-amazon.com\/images\/I\/51RBMD235NL._SL160_.jpg\" alt=\"This Is Your Brain on Music: The Science of a Human Obsession\" width=\"106\" height=\"160\" \/><\/a><\/p>\n<p><a href=\"http:\/\/dlweinreb.wordpress.com\/\" target=\"_blank\">Dan Weinreb<\/a> recently wrote a <a href=\"http:\/\/dlweinreb.wordpress.com\/2008\/04\/30\/this-is-your-brain-on-music\/\" target=\"_blank\">review<\/a> of a book called &#8220;<a href=\"http:\/\/www.amazon.com\/o\/asin\/0525949690\/pchristense03-20\" target=\"_blank\">This is Your Brain on Music<\/a>&#8221; that I haven&#8217;t read but am dying to based on his review.  Please read his entire review (and the book too!) but check out these nuggets on how entwined music is in your brain:<\/p>\n<p>-When you hear a musical tone, there are neurons in your brain that send electrical pulses at <em>exactly the same frequency as the note<br \/>\n<\/em><\/p>\n<p>-most people can recreate the exact tempo of a song they know, to within a few percent, even if they&#8217;re not musically trained<\/p>\n<p>-your brain can distinguish between musical consonance and dissonance before your neocortex (higher, human level thinking) gets involved<\/p>\n<p>I find all of that ridiculously fantastic, and if you&#8217;re at all interested in thought and music enough to keep listening (er, reading) to me, then you should check out those two books.<\/p>\n<p>Example time!  Look at the following sentence:<\/p>\n<blockquote><p>Janet owned a baby sheep.<\/p><\/blockquote>\n<p>Just a normal sentence that&#8217;s super easy to forget.  Now look at this slightly different wording, set to music:<\/p>\n<blockquote><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-229\" title=\"marylamb\" src=\"http:\/\/www.pchristensen.com\/blog\/wp-content\/uploads\/2008\/05\/marylamb.jpg\" alt=\"\\\" width=\"167\" height=\"64\" \/><\/p><\/blockquote>\n<p>The words form a sequence (same as in the first sentence), the musical notes form a sequence, and each note links to its word, so even if you couldn&#8217;t say the sentence exactly by itself, you can fill in missing words if you sing it.  It&#8217;s a heavily connected graph.<\/p>\n<p><strong>Emotional Amplifier<\/strong><\/p>\n<p>That&#8217;s the mechanics of why music works on our brains, but most people listening to music aren&#8217;t trying to accurately remember sentences.  What&#8217;s more important is that since music talks directly to our brains, it can cause our brains to affect our emotions, hormones, and all of the other chemical goodness that our brain does without us asking it to.  So music can affect your mood, and usually, no matter what mood you&#8217;re in, you want more of it.  When I&#8217;m discouraged or wistful, <a href=\"http:\/\/www.amazon.com\/o\/asin\/B000002H2H\/pchristense03-20\" target=\"_blank\">Fade to Black<\/a> by Metallica captures my mood perfectly.  When I&#8217;m exceptionally grateful and loving, <a href=\"http:\/\/www.amazon.com\/o\/asin\/B0000041OG\/pchristense03-20\" target=\"_blank\">Con Te Partiro<\/a> by Andrea Bocelli amplifies it (I almost cried with joy and love for my family when I heard him <a href=\"http:\/\/youtube.com\/watch?v=lv38j4lPzd0\" target=\"_blank\">sing a lullaby version of it to Elmo<\/a> on Sesame Street).  When I&#8217;m frustrated and stubborn and need to unlock the power of my brain to triumph over a knotty problem, <a href=\"http:\/\/www.youtube.com\/watch?v=v2E8bhDHESk\" target=\"_blank\">Beethoven&#8217;s Egmont Overture<\/a> is the key &#8211; rarely can I get through the whole 9 minutes without figuring out how to triumph over what was impeding me, or at least get in the frame of mind to solve the problem shortly thereafter.  Regardless of what you&#8217;re feeling, if you find a song that matches that feeling, it&#8217;s like having your best friend there to pour your heart out to.  It listens to your heart, understands you, encourages you, and celebrates with you.  Because it is directly in your brain, it is also directly in your heart in a way that few people on earth can be.<\/p>\n<p>That&#8217;s the difference between the high school me and the modern me.  My teenage hormones gave my mood and feelings much more control over me than my rational, hard working life as an employee, father, and husband currently allows.  I also feel that I have much more control over my life at this point so I don&#8217;t succumb to the powerlessness that is such a big part of being a teenager.  I know my purpose now, so music isn&#8217;t as necessary as an outlet for unchecked emotions.<\/p>\n<p>Music is a emotional amplifier and an emotional determinant.  Since the human experience is largely an effort to either make ourselves feel a certain way or wallow in the fact that circumstance has made us feel a certain way, then it&#8217;s no wonder that music is so powerful that poor people will pay for it and honest people will steal it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I mentioned music in each of the last two posts as a digitizable creation that people enjoy enough to pay for. So what is it about music that is so great? I&#8217;ve been asking myself this question for years, and now seems like the time to try and tackle it. I&#8217;ve always enjoyed music &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,10],"tags":[],"class_list":{"0":"post-230","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-fun","7":"category-programming","8":"entry"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pazgP-3I","_links":{"self":[{"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/posts\/230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/comments?post=230"}],"version-history":[{"count":0,"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/posts\/230\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/categories?post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchristensen.com\/blog\/wp-json\/wp\/v2\/tags?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}