<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Tools</title>
	<atom:link href="http://code.compartmental.net/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.compartmental.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 16:27:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ddf</title>
		<link>http://code.compartmental.net/tools/comment-page-1/#comment-4014</link>
		<dc:creator>ddf</dc:creator>
		<pubDate>Mon, 12 Dec 2011 16:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://code.compartmental.net/tools/#comment-4014</guid>
		<description>No, you cannot directly do this. In some cases, it would be meaningless, like if you are playing streaming radio from the internet. What you can do, however, is write an AudioListener that counts samples as it receives them and then do whatever you need to do for the visuals at the correct time. This will guarantee that you don&#039;t *miss* the moment you are looking for, which could potentially happen if you are just polling millis(), but it still won&#039;t guarantee that the visual always happens in the same frame every time. This is just the nature of the beast.</description>
		<content:encoded><![CDATA[<p>No, you cannot directly do this. In some cases, it would be meaningless, like if you are playing streaming radio from the internet. What you can do, however, is write an AudioListener that counts samples as it receives them and then do whatever you need to do for the visuals at the correct time. This will guarantee that you don&#8217;t *miss* the moment you are looking for, which could potentially happen if you are just polling millis(), but it still won&#8217;t guarantee that the visual always happens in the same frame every time. This is just the nature of the beast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kei</title>
		<link>http://code.compartmental.net/tools/comment-page-1/#comment-4009</link>
		<dc:creator>Kei</dc:creator>
		<pubDate>Mon, 12 Dec 2011 00:57:38 +0000</pubDate>
		<guid isPermaLink="false">http://code.compartmental.net/tools/#comment-4009</guid>
		<description>Is there any method to retrieve the index number of a sample (rather than its wavelength/value) as the song is being played? I want to sync visual effects with the audio file (.mp3), but when I set it according to millis() past, it differs each time due to the memory/speed of the application. I want to be able to say if less than this sample number but not greater than this one do this, etc. Thank you!</description>
		<content:encoded><![CDATA[<p>Is there any method to retrieve the index number of a sample (rather than its wavelength/value) as the song is being played? I want to sync visual effects with the audio file (.mp3), but when I set it according to millis() past, it differs each time due to the memory/speed of the application. I want to be able to say if less than this sample number but not greater than this one do this, etc. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ddf</title>
		<link>http://code.compartmental.net/tools/comment-page-1/#comment-3960</link>
		<dc:creator>ddf</dc:creator>
		<pubDate>Wed, 23 Nov 2011 04:39:24 +0000</pubDate>
		<guid isPermaLink="false">http://code.compartmental.net/tools/#comment-3960</guid>
		<description>Yes, the most recent code in the Github repo no longer has PApplet as a dependency, so you can use Minim in a regular old java se application. For file reading a writing, you need to define two of the methods that are present in Processing, which are the sketchPath method and the createInput method. These methods take String file names and convert them to an String absolute path and an InputStream, respectively. We find the methods through reflection, so there is no Interface to implement or anything like that.</description>
		<content:encoded><![CDATA[<p>Yes, the most recent code in the Github repo no longer has PApplet as a dependency, so you can use Minim in a regular old java se application. For file reading a writing, you need to define two of the methods that are present in Processing, which are the sketchPath method and the createInput method. These methods take String file names and convert them to an String absolute path and an InputStream, respectively. We find the methods through reflection, so there is no Interface to implement or anything like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rami</title>
		<link>http://code.compartmental.net/tools/comment-page-1/#comment-3934</link>
		<dc:creator>Rami</dc:creator>
		<pubDate>Sat, 29 Oct 2011 13:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://code.compartmental.net/tools/#comment-3934</guid>
		<description>Can I use this lib in my java se application directly, instead of using it with processing ?</description>
		<content:encoded><![CDATA[<p>Can I use this lib in my java se application directly, instead of using it with processing ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snark</title>
		<link>http://code.compartmental.net/tools/comment-page-1/#comment-3899</link>
		<dc:creator>Snark</dc:creator>
		<pubDate>Mon, 19 Sep 2011 23:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://code.compartmental.net/tools/#comment-3899</guid>
		<description>processing, arduino and your lib make my dreams reel!!!
thanx a lot

snark, Bonn</description>
		<content:encoded><![CDATA[<p>processing, arduino and your lib make my dreams reel!!!<br />
thanx a lot</p>
<p>snark, Bonn</p>
]]></content:encoded>
	</item>
</channel>
</rss>

