<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jlegler.com &#187; code</title>
	<atom:link href="http://jlegler.com/archives/category/code/feed" rel="self" type="application/rss+xml" />
	<link>http://jlegler.com</link>
	<description>simple things that interest me</description>
	<lastBuildDate>Mon, 03 Oct 2011 18:49:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>More with Max/MSP, Ableton, and now Python!</title>
		<link>http://jlegler.com/archives/351</link>
		<comments>http://jlegler.com/archives/351#comments</comments>
		<pubDate>Mon, 03 Oct 2011 18:46:37 +0000</pubDate>
		<dc:creator>jlegler</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[machines]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[ableton]]></category>
		<category><![CDATA[FBV Shortboard MKII]]></category>
		<category><![CDATA[maschine]]></category>
		<category><![CDATA[max/msp]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://jlegler.com/?p=351</guid>
		<description><![CDATA[It&#8217;s pretty neat that so much of what I&#8217;ve been interested in, as far as technology and music go, are all kind of congealing into one big mess.  This weekend I started exploring the capabilities of this software call Kapture.  It basically &#8230; <a href="http://jlegler.com/archives/351">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s pretty neat that so much of what I&#8217;ve been interested in, as far as technology and music go, are all kind of congealing into one big mess.  This weekend I started exploring the capabilities of this software call <a href="http://liine.net/en/products/kapture/" target="_blank">Kapture</a>.  It basically does exactly what my MIDI mapper does, only it captures all configurable parameters of the Live set instead of just the parameters I had the foresight to write code to capture.  It also saves them to the set instead of a separate xml file.  It&#8217;s pretty badass.  It basically lets me snapshot my entire setup, save those snapshots, and then recall them whenever I want.  The only part I was missing was a way to get it working with my FBV controller in a way I liked.   Bring on the python!</p>
<p>I wrote a python script last night for the FBV Shortboard MKII that lets me control live with my FBV.  It is based very heavily on the work of <a href="http://remotescripts.blogspot.com/p/support-files.html#FCB1020" target="_blank">Hanz Petrov</a> who has done so much work documenting the LiveAPI that the code is pretty trivial to write now.  My code draws a red box around the tracks I am working with exactly like the APC40 does, and basically makes the FBV a physical extension of what is going on in Ableton Live.  This basically gives me the ability to create snapshots of all of my virtual instruments, mixer settings, etc. with Kapture, and then I can stomp on a pedal to switch between them.  My hands are free to play instruments, and my feet control Ableton.  Pro tools may be the industry standard, but this flexibility and stability makes it feel like a dinosaur.  I can do almost anything I can think of with this software.  It&#8217;s incredible.  Python is kind of a glue language, and that is exactly how I used it.  I glued some hardware to a neat Max/MSP app and have something better than what I was trying to write earlier.  I learned a lot writing my old setup though so it isn&#8217;t a total wash.</p>
<p>This functionality has obvious live music implications, but it turns out that it is so efficient that I can probably use it when recording and mixing too.  I barely have to touch my laptop which is awesome.  I am now working on getting my Maschine integrated with everything and I should have a really flexible setup with a pretty minimal effort.</p>
<p>I am cleaning up the code now and I am going to try it out over the next few weeks.  I&#8217;ll post the code if anyone wants it, but for now I am going to play with it a bit first to make sure it all works as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://jlegler.com/archives/351/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More Ableton and MAX</title>
		<link>http://jlegler.com/archives/334</link>
		<comments>http://jlegler.com/archives/334#comments</comments>
		<pubDate>Fri, 03 Jun 2011 04:57:07 +0000</pubDate>
		<dc:creator>jlegler</dc:creator>
				<category><![CDATA[art]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[machines]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[ableton]]></category>
		<category><![CDATA[FBV]]></category>
		<category><![CDATA[max/msp]]></category>

		<guid isPermaLink="false">http://jlegler.com/?p=334</guid>
		<description><![CDATA[I sat down to write this post awhile ago and life kind of happened so I am finishing it now.  A few months ago I sat down to finally write a MIDI mapper for my line6 FBV Shortboard Mk II &#8230; <a href="http://jlegler.com/archives/334">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I sat down to write this post awhile ago and life kind of happened so I am finishing it now.  A few months ago I sat down to finally write a MIDI mapper for my line6 FBV Shortboard Mk II so that I could control Ableton Live with a foot pedal and not have to worry about using my APC40 for live performance.  I wanted to do it because I&#8217;m not a DJ and rarely have my hands free when I am performing.  I&#8217;m usually playing bass or keys, and I need both hands.  Trying to work a device with my hands while I am using them to play a different instrument is a wicked pain in the ass. Ari also pointed out that my setup was kind of byzantine and simplifying it might be a good move.  I agree.  My solution was to take the FBV and write a tool in Max For Live that would take the CC messages that the FBV sends and turn them into midi note messages.  I initially wanted the bank buttons to set banks and then based on that number send different midi notes so that instead of being limited to 13 midi buttons I would have x banks of 9 buttons.</p>
<p>My initial implementation worked exactly as designed, but when I tried setting up all of my band&#8217;s songs in a single live set (so I could switch between songs seamlessly), I quickly realized that midi was not going to be the solution.  I had not way to track what state the tracks were in from the song before which meant that I had to put every song in the order that I intended to perform them beforehand.  That sucks because it doesn&#8217;t allow me to change the set list on a whim.  I also ran into a limitation of live where I can only assign one midi value to a parameter.  This meant that if button a was controlling parameter a of a plugin or whatever, button b could not control that parameter at all.  This meant that instead of being able to hit a button and have it do a few things, and then hit another button and have it do a few different things and undo one of the previous things was not going to work.  The whole thing felt very fragile.  I decided it was time to use Max For Live and it&#8217;s Ableton API to set parameters and just take as much midi out of it as I could.</p>
<p>My second implementation used a bunch of set commands to just force set parameters.  I used the param save function to save the settings for each button press into xml.  That worked really well but I later found out that the looper built into live basically requires midi to be used.  It doesn&#8217;t expose anything I need to the live API.  I also found out that if you use the set command to set a parameter, it does it as if you clicked the button yourself and there is a 10ms delay or so.  It also has the side effect of creating an undo event for every single thing the pedal does.  That probably isn&#8217;t a big deal but I found out that it isn&#8217;t really that hard to use the remote~ function to send messages to live and anything sent over a remote is realtime and and doesn&#8217;t create an undo event.  Basically the goal at the point was to use remote~ for everything I could and use regular set commands for everything else.  Below are some examples of some of the things I&#8217;ve written that are part of the entire tool that lets me basically DJ my own music with my feet while I play.</p>
<p>Here is an example of setting a return track volume with remote and with a set command.</p>
<p><a href="http://jlegler.com/wp-content/uploads/2011/06/Screen-shot-2011-06-02-at-9.47.19-PM1.png"><img class="alignleft size-full wp-image-336" title="Change Effects Send Amount" src="http://jlegler.com/wp-content/uploads/2011/06/Screen-shot-2011-06-02-at-9.47.19-PM1.png" alt="" width="240" height="296" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&lt;pre&gt;&lt;code&gt;&#8212;&#8212;&#8212;-begin_max5_patcher&#8212;&#8212;&#8212;-809.3ocwW97jZBCEG+L9WQFl83VKgeI1Y1CsS6sdpSusSGmH7TSKj3PhVa2Y6e6kj.JKhUTVrGTjGgju7488Ed9zHK647cfvF8NziHKqmFYYoCoBXUdtkcFYWbJQnGlMC9Ie92su2bIIrSpCKnK+SUvEblTP+Mnt.1crSYX1lLJKEj54AeHHeirYTZhdRKVn23EVeZYjL8zZ+9bJIs5JlYP9q0f4IQoFVwkQeqb.qIx3UT1xY4PrzLlPmBgglhCTG77Te6VDB8M0c77nQputueLIktEFmCYbIbQrwsU13zBalbd1b5Gce8iN1cxgm8x6QP1BIyJVghaYFQJyoy2HM1Dq8Hvxd1ZHWPERfEaddzw0r6RIXFHDjkvQHrP8qPJNNS.RjLmD+CA5NLJitCxmk.aow.R.rDAxo5lSoLHlugIqyxqm6s4IitBO4+zMhCz4jnI5CXiezyc.7iJh1+BUuighuy0.k6K+zA3TVqFDLD0pzEn6ntnGd.4fjq.VwYX6gv6fcd0MOl54IFJgclND7QhVfl2eeiaK9lqgGKR4Dox3LmvV1A3DgKgSz3fd.mFaS85ZLlLTap3a7GZeANZ.pavp5FrotwYbT.BREPwuFjFBvdCT8SjwhLL6uHQyQzAo94Z5ORW0TT8PUuj7rjIbpgLg8q3IlmkAEKXSz7U0a0QelyKZm.i9DiLOEd6GoB0w9SrVZaJH3pZaZh1XDZNfivG01jZ1VPp0KzEBnbRBkuLmuYckJ1Rx2KOcyOkT5KGMxKnVZcNTzwjjHobV8bcjw9WsKQ0dEGyOW+dUm45bhkntvdQwuDxpVipX6MC6IU5lp+HygYLw3hR1G+Uz1pREs1hPz0XOOQRIx6PRw276v1SJ3om1Ti9.OM4rN6xDiu+QKyQIlZXTOHcO2M9aj50QE+krUv2jGWYW12PT8bFHjT1905wC65WaPqnII.qN.ynIq4E6mUphSjp6pnTV7yqoFJenEUXGzTCgeKjD9bXZxKFzPKoFNk10j+sMyoWtNwoanlb5fl7ts4NutXw8tsbxqKaOog4sSSMrJmfS+G73mUSg8PSEm77n+huFKWB&#8212;&#8212;&#8212;&#8211;end_max5_patcher&#8212;&#8212;&#8212;&#8211;&lt;/code&gt;&lt;/pre&gt;</p>
<p>Here is an example of setting tempo that takes 3 seconds (if you&#8217;re using a 44100 sample rate ) to get from where it is to where you want it (for smoother tempo transitions if you want to link songs together and have a drummer playing to the click track&#8230; which I do).</p>
<p><a href="http://jlegler.com/wp-content/uploads/2011/06/Screen-shot-2011-06-02-at-9.50.00-PM1.png"><img class="alignleft size-full wp-image-340" title="Set your Tempo over 6 seconds!" src="http://jlegler.com/wp-content/uploads/2011/06/Screen-shot-2011-06-02-at-9.50.00-PM1.png" alt="" width="325" height="168" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&lt;pre&gt;&lt;code&gt;&#8212;&#8212;&#8212;-begin_max5_patcher&#8212;&#8212;&#8212;-548.3ocuUF0bhBCDG+Y7SQl7rmCATuZeq2Wia5vDgUM2QRXHKddWm1O6WR.rTEKZq0GHPV1jc++a2.OMJftTuCLTx8jeRBBdZTPf2jyPPy7.pjuKMma7tQUvezK+Ecb8qPXG5MijUjksVWoUnQ7Ov8FVzjvFypJoPkCneiXuZTWgsViZrJx76pMRei0cWUboeWoOTJ34suodCv+V.0JgtJWyQ5XBcIWslRdrwuBNltQnVmTBoXsqSmYSOx28ir42MY1XRT3jPxitU77nQtgweNzjK1BSJAoFgW5kPg8SnndIT3wDZ5rSiHxOz4YzgzO6NWNPlundhS+MKwv2BYI1nXWQBGwRwxJrtiIXOFBnIEPoQXPPkVqIucO+tlTzJfMD2SIF.IRtMfkIXIO82DoXm84LXqHEHFsUjHHKzs6StPAo5JE1krmSUn+9z3dpBwmYU3ntUWip+58ZTYKpqTwMsp9BVzhqaqZIWVXjZMt4EajhhCCatcI8sw8RL1wDKd9GkXFwZk83+vGraw0zNc1WObYSiK5DM6rIyrudxD5uEy9TfwqMZeZM7b0Zz7om9jwv5ndLZ+39UjpkRn97Nk1QZdG7eO3f+64Cgy9a0qQWUl1lPM+Ph7ZXx.CJTbTnUc7wU.63zFQVFn5hEoHqPKTXSNbB3eIoDafTx88oaXJ4KqCxI1MMm7HXPNM6MN8UmSGzobh1o42TNcP3dGN8QyI6jmG8ebm4y0N&#8212;&#8212;&#8212;&#8211;end_max5_patcher&#8212;&#8212;&#8212;&#8211;&lt;/code&gt;&lt;/pre&gt;</p>
<p>Here&#8217;s a little event timing manager that lets me make my pedal presses take effect on the 1 via quantization:</p>
<p><a href="http://jlegler.com/wp-content/uploads/2011/06/Screen-shot-2011-06-02-at-9.52.07-PM.png"><img class="alignleft size-full wp-image-341" title="Quantize Your Button Presses!" src="http://jlegler.com/wp-content/uploads/2011/06/Screen-shot-2011-06-02-at-9.52.07-PM.png" alt="" width="691" height="910" /></a></p>
<p>&l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pNQ7QbJvg6ndkZJ6xvINwleGO1s.EbwtVC1dw9fglZGEvwUW.k9C6vBqUcflz4vp.x3Hburp.GMLIxqjQ4AlW4UxnGX6vaUTurpvlL5gojehzQog1p7BqD7.OchTuFASBLuJwqXQze.VEwKqJfSdF6UtDhPmMAw6IOGRrJwKrJ4BywgZ+PEGGYKLHiX+30XaMJ1K1K6Eew4jE61Gmz3maMJZb86gDX0DA2K0jPu7RwPL1NJV0n6gLJQz6mWIBLV4UrSwOBqh3kUEv46RYd4CF3YffEPLBRIo6ouFmNVxqNyczGZoLlK7kaOFiIN6ULBgCR7dc8CXR.TeRX5vZRDFq5msZfbH0+TLtz.aU9HwcHhB+xY3S.c62QIAMzY5OgVk8KxFO7A4AtZsbuwpPZUdoLvD+7UznKDnHQ1PkT22AHb2dG4ksHs6HFaLJBdvgn7a+XvBbATHfrgLbfV6mwA2dv3EMF8MjgcqO0eziKDbcbj3D2WWaO25EFqtw2u4+.JDKslB&#8212;&#8212;&#8212;&#8211;end_max5_patcher&#8212;&#8212;&#8212;&#8211;&lt;/code&gt;&lt;/pre&gt;</p>
<p>With all of this working I am able to control Ableton with my feet while playing piano or bass or whatever.  I never have to touch the computer which kicks ass.  So far I&#8217;ve not found anything I can&#8217;t do with this software.  It really is a pretty brilliant piece of kit.  The sad thing is that I think I like writing software more than I like writing music.  I&#8217;m certainly better at it.  Anyway&#8230;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://jlegler.com/archives/334/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>DDRUM4 Hi-Hat Controller &#8220;Fix&#8221;</title>
		<link>http://jlegler.com/archives/254</link>
		<comments>http://jlegler.com/archives/254#comments</comments>
		<pubDate>Thu, 07 Oct 2010 18:30:16 +0000</pubDate>
		<dc:creator>jlegler</dc:creator>
				<category><![CDATA[art]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[machines]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[CC messages]]></category>
		<category><![CDATA[ddrum 4]]></category>
		<category><![CDATA[ddrum4]]></category>
		<category><![CDATA[hi-hat]]></category>
		<category><![CDATA[hi-hat controller]]></category>
		<category><![CDATA[max msp]]></category>
		<category><![CDATA[max/msp]]></category>
		<category><![CDATA[midi]]></category>

		<guid isPermaLink="false">http://jlegler.com/?p=254</guid>
		<description><![CDATA[Disclaimer: I&#8217;m not sure why anyone other than me and a handful of other dorks would care about this; however, it seems like a shame to not share it if there is someone out there that could use it. I &#8230; <a href="http://jlegler.com/archives/254">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Disclaimer: <em>I&#8217;m not sure why anyone other than me and a handful of other dorks would care about this; however, it seems like a shame to not share it if there is someone out there that could use it.</em></p>
<p>I built a MAX/MSP patch for MAX for Live that will allow you to use the ddrum4 hi-hat controller with basically any drum sample library you can find.  This may not sound like a big deal, but this controller came out in &#8217;94 and has been discontinued for years despite it kicking the shit out of every controller before or since it was created.  The patch does what it does by taking the CC:4 messages that the ddrum4 uses to determine hi-hat position to control which note actually gets sent to the drum sample library you are using.</p>
<p><a href="http://jlegler.com/wp-content/uploads/2010/10/Screen-shot-2010-10-07-at-10.47.27-AM.png"><img class="alignleft size-medium wp-image-255" title="UI for ddrum4 hi-hat controller" src="http://jlegler.com/wp-content/uploads/2010/10/Screen-shot-2010-10-07-at-10.47.27-AM-300x144.png" alt="" width="300" height="144" /></a></p>
<p>You tell it the closed note for the hi-hat, the open-hat note, set the threshold you want to use, and it does the rest.  You can see your pedal position on the Hi-Hat Current Value slider and you can see what note it is sending to your drum sampler in the Output After Processing keyboard.</p>
<p>What this means is that you can use the ddrum4 hi-hat (which is my favorite hi-hat controller ever made, suck it Roland) to control whatever sample library you use without having to do all kind of insane configuration of your drum library.  I got sick of using BFD2 and jumping through hoops to get it to work and then having it all be for nothing if I wanted to use kontakt or some other library that had standard keyboard mappings.  You use this, set up your ddrum4 brain to send regular keyboard mappings, and rock out with your cock out (as much as you can playing midi drums in your bedroom).</p>
<p>At some point I plan to had another feature so you can get the tones of playing the hat with just the pedal with no stick.  It kind of works right now, but it could be better.  I was going to program it to do a splash as well so that if you stomp it and release it real quick it will make a sound.  I&#8217;ve found though that it already does that like a real hi-hat with the existing code because it&#8217;s using a real hi-hat stand and the abrupt stop of the pedal is what causes the splash&#8230; yet another perk of the ddrum hardware.  It just works.</p>
<p>Here is a screenshot of the actual &#8220;code&#8221; and <a title="DDRUM4Hi-Hat.amxd" href="http://jlegler.com/wp-content/max/DDRUM4Hi-Hat.amxd.zip" target="_blank">here</a> is the actual code if you are one of the 10 people on the planet who still use this hardware and want to use it with Max for Live.  Good luck and let me know if you have any suggestions or questions.</p>
<p><a href="http://jlegler.com/wp-content/uploads/2010/10/DDRUM4Hi-Hat.amxd_.png"><img class="alignleft size-medium wp-image-256" title="DDRUM4Hi-Hat.amxd Screenshot" src="http://jlegler.com/wp-content/uploads/2010/10/DDRUM4Hi-Hat.amxd_-243x300.png" alt="" width="243" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jlegler.com/archives/254/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft stole my idea!</title>
		<link>http://jlegler.com/archives/62</link>
		<comments>http://jlegler.com/archives/62#comments</comments>
		<pubDate>Wed, 30 Jul 2008 03:23:32 +0000</pubDate>
		<dc:creator>jlegler</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[machines]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://jlegler.com/?p=62</guid>
		<description><![CDATA[Okay, so have any of you seen the new ad campaign for Vista? It shows a bunch of people using Vista only Microsoft tells the people using it that it is a new OS called Mojave. Sure enough, everyone likes &#8230; <a href="http://jlegler.com/archives/62">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Okay, so have any of you seen the new ad campaign for Vista?  It shows a bunch of people using Vista only Microsoft tells the people using it that it is a new OS called Mojave.  Sure enough, everyone likes it.  It&#8217;s faster, it has cool features, gadgets are cool, blah blah blah.  Then Microsoft tells them it is Vista and no one can believe it.  I was going to write a blog about that very thing but then Microsoft beat me to it.</p>
<p>I&#8217;ll come out and say that I am not a big fan of Microsoft on a lot of things; however, Vista does kick ass.  The people whining about how it is slow and doesn&#8217;t run on their ancient computer need to suck it up.  It wasn&#8217;t built for old computers.  If you have an old computer then stick with XP.  XP is solid.  Run Ubuntu if you want, it&#8217;s cool too (if you don&#8217;t need exchange and don&#8217;t mind spending time getting it set up to do what you need to do).  If you have the means though, Vista kicks ass.  It runs fast as hell on my laptop.  It&#8217;s snappy.  It looks good.  Gadgets are way cooler than I thought they would be.  It&#8217;s just good.</p>
<p>I do a lot of development in Python using PyQt for Gui design and Eclipse as an IDE and I have not had a single problem with any of it.  It all runs great, it looks good (a testament to Qt as well).  I don&#8217;t know what else to say.  I am pretty critical of software and gadgets that make big promises and then punk out on them and so far Vista hasn&#8217;t pissed me off.  People complain about it always asking permission to do things; however, that only happens when an app is doing something it probably shouldn&#8217;t be.  Well written apps behave.  If I could talk Microsoft into changing anything it would be the way the networking configuration is set up.  Opening 5 windows to change my IP is a drag; however, how often do I really need to do that?  </p>
<p>Anyway, since Microsoft is building an entire ad campaign on this idea I am not going to go into tons of detail as to why I am happy with Vista.  I suppose I have been so busy getting things done that I haven&#8217;t had time to write up anything on Vista.  That is a good sign.  Microsoft seems to be on track and lately they are coming around to the open source community (ironpython actually works, they are throwing money at apache, etc).  Microsoft out from under Bill Gates might be a company that people get can excited about without feeling dirty.</p>
]]></content:encoded>
			<wfw:commentRss>http://jlegler.com/archives/62/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excitable Boy</title>
		<link>http://jlegler.com/archives/51</link>
		<comments>http://jlegler.com/archives/51#comments</comments>
		<pubDate>Wed, 09 Apr 2008 14:12:45 +0000</pubDate>
		<dc:creator>jlegler</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Radiohead]]></category>
		<category><![CDATA[Tickets]]></category>

		<guid isPermaLink="false">http://jlegler.com/archives/51</guid>
		<description><![CDATA[Anyone that knows me knows that I am not a particularly animated person. When I feel like I am making an exaggerated movement or making a fool of myself, I often later find out that I looked foolish because I &#8230; <a href="http://jlegler.com/archives/51">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Anyone that knows me knows that I am not a particularly animated person.  When I feel like I am making an exaggerated movement or making a fool of myself, I often later find out that I looked foolish because I was moving so little in comparison to everyone else.  My life is in monotone; my humor depends on it and my social awkwardness is amplified by it.  Today is a special day though.  It may look like any other day because I lack the ability to emote effectively; however, I assure you that this day is different.  Jason Legler got himself 4 pre-sale tickets to Radiohead in Seattle and more importantly, he was one of the first people to get them so he thinks that they&#8217;ll actually be good tickets.  I am jumping out of my skin with excitement which from the outside likely looks like I might have some kind of subtle stomach issue.</p>
<p>Historically I always get hosed on this kind of stuff.  I usually don&#8217;t hear about the tickets going on sale until they are already sold out.  This time though, I watched the band site like a hawk and found out what day the tickets went on pre-sale.  I then wrote a little tool in Python that checked the pre-sale ticket site every minute.  If the program detected that anything had changed at the site it played metal as loud as my computer could be turned up.  This allowed me to sleep and monitor the site at the same time.  At around 6am today my computer began blasting metal and I was able to procure some tickets.  I&#8217;m stoked as hell that I got tickets and completely dorking out on the fact that I wrote software to allow it to happen.  That being said I have recently discovered that programs exist for doing this task already and are much cooler and MUCH more flexible than what I wrote.  I don&#8217;t care though, it was cool as hell.</p>
<p>I&#8217;ve gotten to see Radiohead twice in my life and both times were outdoor venues.  In both instances I was far enough back that the sound was washed out and I couldn&#8217;t see much.  I really hope that my determination in getting good tickets pays off and the tickets I bought will let me get close enough for this to be a really good show.  Anyway, that is it.  I got Radiohead tickets.  I&#8217;ll let everyone know where the seats are when they actually get assigned.  Here is Thom rocking a little Bangers + Mash Phil Collins style.</p>
<p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/pXi6npXlHzc&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/pXi6npXlHzc&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://jlegler.com/archives/51/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

