<?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>Die Welt ist gar nicht so. &#187; c</title>
	<atom:link href="http://blog.dieweltistgarnichtso.net/tag/c/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.dieweltistgarnichtso.net</link>
	<description>Sie ist ganz anders.</description>
	<lastBuildDate>Mon, 23 Sep 2013 15:41:20 +0000</lastBuildDate>
	<language>de-DE</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.35</generator>
	<item>
		<title>The IT Crowd Theme in C</title>
		<link>http://blog.dieweltistgarnichtso.net/the-it-crowd-theme-in-c</link>
		<comments>http://blog.dieweltistgarnichtso.net/the-it-crowd-theme-in-c#comments</comments>
		<pubDate>Fri, 14 Oct 2011 08:29:54 +0000</pubDate>
		<dc:creator><![CDATA[erlehmann]]></dc:creator>
				<category><![CDATA[Bastelei]]></category>
		<category><![CDATA[Netzkultur]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[8bit]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[itcrowd]]></category>

		<guid isPermaLink="false">http://blog.dieweltistgarnichtso.net/?p=3923</guid>
		<description><![CDATA[Inspired by VIznut, in the last few days I have experimented with music creation using a C compiler. This morning, I chose to write small program playing a melody not entirely unlike the theme of The IT Crowd when piped &#8230; <a href="http://blog.dieweltistgarnichtso.net/the-it-crowd-theme-in-c">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>
<a href="http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html">Inspired by <i>VIznut</i></a>, in the last few days I have experimented with <a href="https://github.com/erlehmann/algorithmic-symphonies">music creation using a <i>C</i> compiler</a>. This morning, I chose to write small program playing a melody not entirely unlike the <a href="http://www.youtube.com/watch?v=w5-_B-tKnZw">theme of <i>The IT Crowd</i></a> when piped to <i>/dev/dsp</i>. True to the spirit of the intro, it ends with a <a href="http://cache.ohinternet.com/images/a/a4/Chrono_Vortex.jpg">division by zero</a>.
</p>
<code>
#include &lt;stdio.h&gt;
main() {long int t;for(t=0;;t++) {fputc((int)(
(0/(128000-t))|(((t&lt;92000)*0xff)&#038;
(t%2000*("  $&#038;  %'  '%  %$"[t%32000/2000]-32)
|t%2000*("$$  %%  ''  %%  "[t%32000/2000]-32)/2)|
(t%2000*("'&#038;"[t%92000/2000]-32)&#038;(t&gt;92000&#038;&#038;t&lt;96000)*0xff)|
(t%4000*("'&#038;(&#038;*$,*   "[t%96000/4000]-32)&#038;(t&gt;96000)*0xff))
), stdout);}}
</code>
<audio controls>
<source src="//daten.dieweltistgarnichtso.net/audio/music/c/it-crowd.oga">
<source src="//daten.dieweltistgarnichtso.net/audio/music/c/it-crowd.mp3">
</audio>
<ins datetime="2011-10-14T08:30:23+00:00"><p>
Much smaller version that sounds even better:
</p>
<code>
#include &lt;stdio.h&gt;
main() {long int t;for(t=0;;t++) {fputc((int)((1/(128000-t))|(t>96e3)?t%4000*("'&#038;(&#038;*$,*"[t%96000/4000]-32):(t%2000*
("$$$&#038;%%%''''%%%'&#038;"[t%32000/2000]-32-(2*((t>28e3)&#038;(t<32e3)))))/(1+(t%8000<4e3))), stdout);}}
</code>
<audio controls>
<source src="//daten.dieweltistgarnichtso.net/audio/music/c/it-crowd-2.oga">
<source src="//daten.dieweltistgarnichtso.net/audio/music/c/it-crowd-2.mp3">
</audio>
</ins>]]></content:encoded>
			<wfw:commentRss>http://blog.dieweltistgarnichtso.net/the-it-crowd-theme-in-c/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
