<?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>Jozef Chúťka&#039;s blog &#187; Sound</title>
	<atom:link href="http://blog.yoz.sk/tag/sound/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk</link>
	<description>My life, my work</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:40:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A Sound In Image Experiment</title>
		<link>http://blog.yoz.sk/2011/10/a-sound-in-image-experiment/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-sound-in-image-experiment</link>
		<comments>http://blog.yoz.sk/2011/10/a-sound-in-image-experiment/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 09:58:45 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[SampleDataEvent]]></category>
		<category><![CDATA[Sound]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=3075</guid>
		<description><![CDATA[There are some usefull apis since Flash Player 10, I have never been playing with. Yesterday, I realized one experiment with Sound + SampleDataEvent and created quick demo for converting music into a bitmap and vice versa. There is a Sound.extract() method in ActionScript allowing you to grab raw sound data from a sound object. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.yoz.sk/wp-content/uploads/violin.jpg" alt="" title="violin" width="200" height="100" class="alignleft size-full wp-image-3076" /></p>
<p>There are some usefull apis since Flash Player 10, I have never been playing with. Yesterday, I realized one experiment with <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Sound.html">Sound</a> + <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/SampleDataEvent.html">SampleDataEvent</a> and created quick demo for converting music into a bitmap and vice versa.</p>
<p>There is a <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Sound.html#extract()">Sound.extract()</a> method in ActionScript allowing you to grab raw sound data from a sound object. It provides you ByteArray of 32-bit floating-point values, which can be converted to a Number using ByteArray.readFloat(). The resulting values are -1 < value < 1...</p>
<p><span id="more-3075"></span></p>
<p>I tried to add and multiply the Number to get unsigned integer and it appeared that only first 16 bytes are changing while the rest 16 remains unused (0xffff). I did not get any further to investigate if it is related to the type conversion or its a limitation of Sound api. While for BitmapData you provide 32 values (unsigned integers) and the converted sound value use only 16, next 16 bites can store additional sound value. That perfectly fits for left + right channel. BitmapData handles 32-bit ARGB values. In my case, left channel will occupy first AR, right channel GB values, so please do not expect the result to be Mona Lisa portrait, but rather it is a chaotic (noise like) color and alpha result. Following image contains 5 seconds of Vivaldi:</p>
<p><img src="http://blog.yoz.sk/examples/soundInImage/soundInImage.png" alt=""/></p>
<p>If you are able match image width with music rythm, some more interesting result may appear. And here is the demo player:</p>
<p><script type="text/javascript" src="http://wonderfl.net/blogparts/2rEF/js"></script>
<p class="ttlBpWonderfl" style="width: 465px; margin: 0; text-align: right; font-size: 11px;"><a href="http://wonderfl.net/c/2rEF" title="Sound In Image">Sound In Image &#8211; wonderfl build flash online</a></p>
<p>There is a lot of commented code in the demo, feel free to uncomment for generating images from your mp3s.</p>
<p>Some quick math about image size vs. music length:</p>
<ul>
<li>in sound, the audio data is always exposed as 44100 Hz stereo</li>
<li>so there is 88200 32-bit floating-point values per second (left + right channel)</li>
<li>two values can be stored in a pixel, that results in 44100 pixels per second</li>
<li>that means you can store almost <strong>18 seconds in 1024&#215;768 ARGB image</strong></li>
</ul>
<p>It would be nice to see how can image compression, watermark etc. affect the resulting sound/size. Or how would some image filters affect the resulting sound&#8230; A lot of experiments ahead <img src='http://blog.yoz.sk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2011/10/a-sound-in-image-experiment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Processing Audio in ActionScript 3 and Pixel Bender</title>
		<link>http://blog.yoz.sk/2010/02/processing-audio-in-actionscript-3-and-pixel-bender/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=processing-audio-in-actionscript-3-and-pixel-bender</link>
		<comments>http://blog.yoz.sk/2010/02/processing-audio-in-actionscript-3-and-pixel-bender/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 11:52:48 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[equalizer]]></category>
		<category><![CDATA[pixel bender]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[spectrum]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=1090</guid>
		<description><![CDATA[Recently I was trying to make some noise with flash, and soon I realized that audio processing is not that easy thing as it may look like. Anyway here is a list of some interesting articles and examples with gain, equalizer, pitch, effects, pixel bender, I have came across while gathering information. Volume, Equalizer, Effects, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.yoz.sk/wp-content/uploads/spectrumAnalyzer1.png" alt="" title="spectrumAnalyzer" width="200" height="100" class="alignleft size-full wp-image-1100" /></p>
<p>Recently I was trying to <a href="http://www.google.cz/search?hl=cs&#038;rlz=1C1GGLS_csCZ334CZ334&#038;q=make+some+noise+adobe&#038;btnG=Hledat&#038;lr=&#038;aq=f&#038;oq=">make some noise</a> with flash, and soon I realized that audio processing is not that easy thing as it may look like. Anyway here is a list of some interesting articles and examples with gain, equalizer, pitch, effects, pixel bender, I have came across while gathering information.</p>
<p><span id="more-1090"></span></p>
<h3 style="clear:both;">Volume, Equalizer, Effects, Pitch</h3>
<ul>
<li><a href="http://blogs.adobe.com/kevin.goldsmith/2009/08/pixel_bender_au.html">Volume change using Pixel Bender + source</a></li>
<li><a href="http://www.kaourantin.net/2008/10/audio-mixing-with-pixel-bender.html">Multiple audio mixing with Pixel Bender + source</a></li>
<li><a href="http://ciboloweb.com/website-resources/website-design-articles/2009/08/flex-soundgraphic-equalizer-5-band/">5 band equalizer by Cibolo Media Services + source</a></li>
<li><a href="http://lab.andre-michelle.com/eq-filter">3 band equalizer by Andre Michelle</a></li>
<li><a href="http://www.blixtsystems.com/2008/05/simple-3-band-eq-with-flash-player-10/">3 band equalizer BlixtSystems + source</a></li>
<li><a href="http://www.anttikupila.com/flash/soundfx-out-of-the-box-audio-filters-with-actionscript-3/">echo, phase, feedback, cutoff, resonance by Antti Kupila + source</a></li>
<li><a href="http://www.akaneko.com/yanetzel/?p=221">Distorsion using Pixel Bender by Akaneko + source</a></li>
<li><a href="http://theflashblog.com/?p=1129">Audio pitch by Lee Brimelow + source</a></li>
<li><a href="http://code.google.com/p/duobiduo/">A powerful as3 library for audio processing</a></li>
<li><a href="http://wonderfl.net/c/9Xx7">SiON SoundObject Quartet</a></li>
<li><a href="http://wonderfl.net/c/fbIa">SiON FM Synthesizer WF-1</a></li>
<li><a href="http://www.kevingoldsmith.com/labs/PBSynth-v1/">Pixel Bender Synthesizer</a></li>
<li><a href="http://8bitboy.popforge.de/">8Bitboy &#8211; A Flash based Amiga Modplayer</a></li>
<li><a href="http://unitzeroone.com/labs/flashModPlug/">FlashModPlug</a> is a flash module player</li>
</ul>
<h3>Spectrum Analyzer</h3>
<ul>
<li><a href="http://www.everydayflash.com/blog/index.php/2008/03/26/classic-sound-equalizer-in-flashas3/">Classic spectrum analyer</a></li>
<li><a href="http://theflashblog.com/?p=197">ActionScript 3 Sound Spectrum Contest Results</a></li>
</ul>
<h3>Theory and Hints</h3>
<ul>
<li><a href="http://stackoverflow.com/questions/1099103/create-a-flash-equalizer-modify-output-sound">Equalizer</a></li>
<li><a href="http://www.sasarudan.com/en/technologyblog/flashadobe/4-flash10audio.html">Fast Fourier Transform</a></li>
<li><a href="http://www.harmony-central.com/Effects/effects-explained.html">Effects Explained</a></li>
<li><a href="http://www.harmony-central.com/Computer/Programming/">Audio Programming</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2010/02/processing-audio-in-actionscript-3-and-pixel-bender/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

