<?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; Python</title>
	<atom:link href="http://jlegler.com/archives/tag/python/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>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>
		<item>
		<title>We Prepare</title>
		<link>http://jlegler.com/archives/11</link>
		<comments>http://jlegler.com/archives/11#comments</comments>
		<pubDate>Fri, 07 Dec 2007 04:59:04 +0000</pubDate>
		<dc:creator>jlegler</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[machines]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[stories]]></category>
		<category><![CDATA[Adoption]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Randy Craig]]></category>
		<category><![CDATA[Recording]]></category>

		<guid isPermaLink="false">http://blog.jlegler.com/?p=11</guid>
		<description><![CDATA[Heather and I are supposed to be getting ready for our trip to Mexico next week.  Instead I am sitting on the couch trying to find ways to distract myself and she is with her sister at a potluck at &#8230; <a href="http://jlegler.com/archives/11">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Heather and I are supposed to be getting ready for our trip to Mexico next week.  Instead I am sitting on the couch trying to find ways to distract myself and she is with her sister at a potluck at the adoption agency her sister is using to give up her child.  <a href="http://www.randycraig.com" title="Randy Craig" target="_blank">Randy Craig</a> is in my basement working on vocals.  I would go assist with that but he seems to get better takes when I am not around.  Besides, it&#8217;s hard for me to sit in a room while he sings the same phrase 300 times.  I don&#8217;t know how he has the patience for it but the performance ends up sounding good so I don&#8217;t complain too much.</p>
<p>I have several solid 8 hours days of work to do on the 4 songs we want to have done before Christmas and I have to get those days in before December 15th when Heather and I leave.  Randy and I have been working on this record for over a year and we have 4 songs close to being done, 3 or so on deck, and probably 3 more in the incubator&#8230; yet to be inspired.  I would like to work on my own music, but I can&#8217;t seem to make the time.  We really need to get Randy&#8217;s new record done so I can move on to some other things.  I like working on Randy&#8217;s stuff but I am 28 and would like to get some of the ideas I have for songs down before I am 30.</p>
<p>I also have lots of work to do at my actual job.  I&#8217;ve become an asset to the company I suppose and I actually really like what I have been doing lately.  I have a sense of pride in my work, as corny as that sounds; however, it is exhausting at the end of the year when everyone wants everything done immediately and right now I just want to go on vacation.</p>
<p>I decided earlier this year that I wanted to learn a programming language.  Programming was directly responsible for the difficulty I had in college and I kind of want to kick its ass now that my mind is a little more agile.    I had originally wanted to learn Java; however, the syntax gets in the way and the whole process just seems kind of clunky.  I spent 3 weeks writing a very simple piece of code that logged into a remote Oracle database, grabbed some data and analyzed it, and then updated some tables in said database based on a csv file provided by another company.  I got it about 90% of the way done but that last 10% was a pain in the ass.  I figured I would try python because everyone rants and raves about it.  I literally did the same project, having no experience with python, in about 4 hours only it worked as a standalone app and was much more robust.  It just proved to me that my logic was good but the language was getting in my way.  I&#8217;ve always struggled with foreign languages and programming languages don&#8217;t seem to be an exception to that.  I&#8217;m not bagging on java.  It has its place in the world for sure; but it was actually fun to write python code and not have to look shit up constantly to be able to do it.  Now that I am done with it, I have all kinds of little parts I want to change; however, the project I wrote it for will be over at the end of next week and I&#8217;ll probably dump all the code.  Oh well, it was a good learning experience.  If I get bored I will finish the java version.</p>
<p>Anyway, I just started this page and I want to be able to post about the things that interest me.  It&#8217;s probably going to be strange mix of all the little things I like to do but it will be good for me to write down.  Sometime later I will put something up on why I think writing it down is important; however, for now I am going to do something a little more productive.  With that, I leave you with a picture of Scarlett Johansson because she&#8217;s hot as hell and I&#8217;m down with that.</p>
<p><a href="http://jlegler.com/wp-content/uploads/2007/12/scarlett12.jpg" title="Hot Scarlett">
<a href="http://jlegler.com//wp-content/gallery/Scarlett/scarlett1.jpg" title="" class="shutterset_singlepic17" >
	<img class="ngg-singlepic" src="http://jlegler.com/wp-content/gallery/cache/17__320x240_scarlett1.jpg" alt="scarlett1.jpg" title="scarlett1.jpg" />
</a>
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jlegler.com/archives/11/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

