<?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: Generating and Playing Sound in Javascript</title>
	<atom:link href="http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: grafikmuzik</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-285583</link>
		<dc:creator>grafikmuzik</dc:creator>
		<pubDate>Thu, 30 Dec 2010 02:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-285583</guid>
		<description>Note that the Dynamic WAV Generator is now on this page (the link Michael gave us is broken) : http://www.sk89q.com/playground/jswav/</description>
		<content:encoded><![CDATA[<p>Note that the Dynamic WAV Generator is now on this page (the link Michael gave us is broken) : <a href="http://www.sk89q.com/playground/jswav/" rel="nofollow">http://www.sk89q.com/playground/jswav/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: transformer</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269417</link>
		<dc:creator>transformer</dc:creator>
		<pubDate>Thu, 27 Nov 2008 22:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269417</guid>
		<description>As long as you call this an &quot;experiment&quot;... Anyhow, audio/wav is an unknown plugin.</description>
		<content:encoded><![CDATA[<p>As long as you call this an &#8220;experiment&#8221;&#8230; Anyhow, audio/wav is an unknown plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: p01</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269407</link>
		<dc:creator>p01</dc:creator>
		<pubDate>Wed, 26 Nov 2008 19:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269407</guid>
		<description>&lt;strong&gt;RSarvas:&lt;/strong&gt; Due to the compression algorithm GIFs aren&#039;t practical in JS, but BMPs are doable in realtime. See &lt;a href=&quot;http://www.p01.org/releases/Demoscene/files/neja/neja.htm&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Neja&lt;/strong&gt;&lt;/a&gt;, the JS demo I did in summer 2005. Most of it is done by generating 24bits BMP images on the fly ( Canvas wasn&#039;t exactly there yet ) and includes classic 2d effects, and a couple of 3D effects like perspective correct mapping with gouraud shading.

As for sound, WAVE PCM is a straight forward format. I started a softSynth ~2 years ago. It&#039;s definitely doable. Not in realtime though.</description>
		<content:encoded><![CDATA[<p><strong>RSarvas:</strong> Due to the compression algorithm GIFs aren&#8217;t practical in JS, but BMPs are doable in realtime. See <a href="http://www.p01.org/releases/Demoscene/files/neja/neja.htm" rel="nofollow"><strong>Neja</strong></a>, the JS demo I did in summer 2005. Most of it is done by generating 24bits BMP images on the fly ( Canvas wasn&#8217;t exactly there yet ) and includes classic 2d effects, and a couple of 3D effects like perspective correct mapping with gouraud shading.</p>
<p>As for sound, WAVE PCM is a straight forward format. I started a softSynth ~2 years ago. It&#8217;s definitely doable. Not in realtime though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RSarvas</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269400</link>
		<dc:creator>RSarvas</dc:creator>
		<pubDate>Wed, 26 Nov 2008 15:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269400</guid>
		<description>It never occurred to me to try to embed data in URIs that would otherwise be in files. Wikipedia has some interesting info on the topic:

http://en.wikipedia.org/wiki/Data:_URI_scheme#Examples

Given the browser size restrictions on URIs it might not be partial for audio data but it does make me wonder what you could do with image data like GIFs that would fit into the size range. I&#039;m wondering if this might be a nifty way to do JS palette shifting of images on-the-fly or even animated GIF creation from a series of stored frames.

[withdraws to code lair to test concept]</description>
		<content:encoded><![CDATA[<p>It never occurred to me to try to embed data in URIs that would otherwise be in files. Wikipedia has some interesting info on the topic:</p>
<p><a href="http://en.wikipedia.org/wiki/Data:_URI_scheme#Examples" rel="nofollow">http://en.wikipedia.org/wiki/Data:_URI_scheme#Examples</a></p>
<p>Given the browser size restrictions on URIs it might not be partial for audio data but it does make me wonder what you could do with image data like GIFs that would fit into the size range. I&#8217;m wondering if this might be a nifty way to do JS palette shifting of images on-the-fly or even animated GIF creation from a series of stored frames.</p>
<p>[withdraws to code lair to test concept]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doublec</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269390</link>
		<dc:creator>doublec</dc:creator>
		<pubDate>Wed, 26 Nov 2008 04:45:48 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269390</guid>
		<description>It&#039;ll work fine with the  tag too. Firefox nightlies have  with WAV support if you want to test.</description>
		<content:encoded><![CDATA[<p>It&#8217;ll work fine with the  tag too. Firefox nightlies have  with WAV support if you want to test.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drewlesueur</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269389</link>
		<dc:creator>drewlesueur</dc:creator>
		<pubDate>Wed, 26 Nov 2008 02:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269389</guid>
		<description>Excellent post.
I enjoy seeing things like this.</description>
		<content:encoded><![CDATA[<p>Excellent post.<br />
I enjoy seeing things like this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schill</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269386</link>
		<dc:creator>Schill</dc:creator>
		<pubDate>Tue, 25 Nov 2008 21:48:56 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269386</guid>
		<description>Javascript should be able to provide pretty much any format via data: URIs with QuickTime, etc. MIDI is one example, see this &lt;a href=&quot;http://www.ozoneasylum.com/30609&quot; rel=&quot;nofollow&quot;&gt;related discussion&lt;/a&gt; and &lt;a href=&quot;http://vimeo.com/886342&quot; rel=&quot;nofollow&quot;&gt;demo video&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Javascript should be able to provide pretty much any format via data: URIs with QuickTime, etc. MIDI is one example, see this <a href="http://www.ozoneasylum.com/30609" rel="nofollow">related discussion</a> and <a href="http://vimeo.com/886342" rel="nofollow">demo video</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TNO</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269385</link>
		<dc:creator>TNO</dc:creator>
		<pubDate>Tue, 25 Nov 2008 19:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269385</guid>
		<description>&lt;b&gt;Yeah, you still need either Flash or Quicktime.No real breakthrough here.&lt;/b&gt;
.
Surely we haven&#039;t forgotten about the &lt;audio/&gt; tag?</description>
		<content:encoded><![CDATA[<p><b>Yeah, you still need either Flash or Quicktime.No real breakthrough here.</b><br />
.<br />
Surely we haven&#8217;t forgotten about the &lt;audio/&gt; tag?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jefposkanzer</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269384</link>
		<dc:creator>jefposkanzer</dc:creator>
		<pubDate>Tue, 25 Nov 2008 18:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269384</guid>
		<description>Yeah, you still need either Flash or Quicktime.  No real breakthrough here.</description>
		<content:encoded><![CDATA[<p>Yeah, you still need either Flash or Quicktime.  No real breakthrough here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nosredna</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269382</link>
		<dc:creator>Nosredna</dc:creator>
		<pubDate>Tue, 25 Nov 2008 18:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269382</guid>
		<description>cnizz, if he had to lower the sample rate to get a sine wave working, I doubt mp3s make any sense at all (at this point in time).
.
I&#039;ve done a few VSTi instruments, you need a lot of samples for high fidelity. Cut the number of samples and the noise floor rises dramatically.</description>
		<content:encoded><![CDATA[<p>cnizz, if he had to lower the sample rate to get a sine wave working, I doubt mp3s make any sense at all (at this point in time).<br />
.<br />
I&#8217;ve done a few VSTi instruments, you need a lot of samples for high fidelity. Cut the number of samples and the noise floor rises dramatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cnizz</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269381</link>
		<dc:creator>cnizz</dc:creator>
		<pubDate>Tue, 25 Nov 2008 16:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269381</guid>
		<description>What about mp3 files?</description>
		<content:encoded><![CDATA[<p>What about mp3 files?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TNO</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269377</link>
		<dc:creator>TNO</dc:creator>
		<pubDate>Tue, 25 Nov 2008 15:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269377</guid>
		<description>@Fyzbo. Its the mime-type
.
&lt;embed src=&quot;&lt;b&gt;data:audio/wav&lt;/b&gt;;....&quot;/&gt;</description>
		<content:encoded><![CDATA[<p>@Fyzbo. Its the mime-type<br />
.<br />
&lt;embed src=&#8221;<b>data:audio/wav</b>;&#8230;.&#8221;/&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fyzbo</title>
		<link>http://ajaxian.com/archives/generating-and-playing-sound-in-javascript/comment-page-1#comment-269375</link>
		<dc:creator>Fyzbo</dc:creator>
		<pubDate>Tue, 25 Nov 2008 14:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5227#comment-269375</guid>
		<description>It&#039;s prompting for apple&#039;s quicktime?</description>
		<content:encoded><![CDATA[<p>It&#8217;s prompting for apple&#8217;s quicktime?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

