<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 03:35:06 +0000</lastBuildDate>
    <item>
      <title>(Java) Audio DNA Processing Sketch - stefangoodchild</title>
      <link>https://snipplr.com/view/28121/audio-dna-processing-sketch</link>
      <description>&lt;p&gt;After some prompting I though I would publish some of my Processing source code to see what people made of it. Probably not the tidiest code out there, but these are essentially sketches so figured it didnâ€™t matter too much.&#13;
&#13;
To make this work youâ€™ll need a few bits from around the internets. First up is the FFTOctaveAnalyser class from Dave Bollinger which you need to put in the root of your sketch directory, then youâ€™ll need to download the Ess library.&#13;
&#13;
Finally youâ€™ll need something like Audacity to split an audio file into itâ€™s left and right channels.  Save them as two mono wav files (for some reason AIFF seems to upset it) called &lt;audiofile&gt;.L and &lt;audiofile&gt;.R and pop them in the sketch data directory.&#13;
&#13;
Assuming all this has gone to plan all you need to do is edit the source code on line 4 so the audioFilename variable is the same as the &lt;audiofile&gt; referenced above and click the play button. Give it a second or two (depending on the length of the audio file) and you should see the Audio DNA displayed and find a TIFF version sitting in a folder called â€˜outâ€™ in your sketch folder.&#13;
&#13;
Onto the source.  The key to this is itâ€™s not real time.  It scans the audio file chunk by chunk so in this instance itâ€™s faster than real-time.  With some tweaks a similar technique can be used to render out audio reactive Processing sketches that run slower than real-time if thatâ€™s your bag.&lt;/p&gt;</description>
      <pubDate>Wed, 10 Feb 2010 12:04:07 UTC</pubDate>
      <guid>https://snipplr.com/view/28121/audio-dna-processing-sketch</guid>
    </item>
    <item>
      <title>(Java) TouchOSC and Processing Accelerometer Example Code - stefangoodchild</title>
      <link>https://snipplr.com/view/28120/touchosc-and-processing-accelerometer-example-code</link>
      <description>&lt;p&gt;Playing with my iPhone and Processing v1 on the train last night I started messing with TouchOSC and thought that this super simple (and fairly rough) example code using the oscP5 library may help someone on their way to interactive wobbly nirvana.&lt;/p&gt;</description>
      <pubDate>Wed, 10 Feb 2010 12:03:09 UTC</pubDate>
      <guid>https://snipplr.com/view/28120/touchosc-and-processing-accelerometer-example-code</guid>
    </item>
  </channel>
</rss>
