<?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>labs.hellokeita.com &#187; Flash 10</title>
	<atom:link href="http://labs.hellokeita.com/category/flash-10/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.hellokeita.com</link>
	<description>Yet another labs blog</description>
	<lastBuildDate>Mon, 02 Aug 2010 11:20:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fast Metaball Effect in AS3</title>
		<link>http://labs.hellokeita.com/2010/08/02/fast-metaball-effect-in-as3/</link>
		<comments>http://labs.hellokeita.com/2010/08/02/fast-metaball-effect-in-as3/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 11:20:27 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Benchmark]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[fast]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[metaball]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=121</guid>
		<description><![CDATA[
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_metaball_1474322718"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="/files/metaball/metaball.swf" />
	<param name="bgcolor" value="#000000" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/files/metaball/metaball.swf"
			name="fm_metaball_1474322718"
			width="400"
			height="300">
		<param name="bgcolor" value="#000000" />
	<!--<![endif]-->
		

var container:Sprite = new Sprite();
var balls:Vector. = new Vector.();
var m:Matrix;
var s:Shape;
var r:Number;
var c:uint;
for(var i:int = 0; i < 10; i++){
	r = Math.random() * 100 + 100;
	m = new Matrix();
	m.createGradientBox(r, r, 0, -r * 0.5, -r * 0.5);
	s = container.addChild(new Shape()) as Shape;
	c = Math.random() * 0xFFFFFF;
	s.graphics.beginGradientFill(GradientType.RADIAL, [c, c], [...]]]></description>
			<content:encoded><![CDATA[<p>[kml_flashembed movie="/files/metaball/metaball.swf" height="300" width="400" fversion="10" useexpressinstall="true" bgcolor="#000000" /]</p>
<p><code><br />
var container:Sprite = new Sprite();<br />
var balls:Vector.<Shape> = new Vector.<Shape>();<br />
var m:Matrix;<br />
var s:Shape;<br />
var r:Number;<br />
var c:uint;<br />
for(var i:int = 0; i < 10; i++){<br />
	r = Math.random() * 100 + 100;<br />
	m = new Matrix();<br />
	m.createGradientBox(r, r, 0, -r * 0.5, -r * 0.5);<br />
	s = container.addChild(new Shape()) as Shape;<br />
	c = Math.random() * 0xFFFFFF;<br />
	s.graphics.beginGradientFill(GradientType.RADIAL, [c, c], [1, 0], [0x00, 0xFF], m);<br />
	s.graphics.drawRect(-r * 0.5, -r * 0.5, r, r);<br />
	s.x = Math.random() * 400;<br />
	s.y = Math.random() * 300;<br />
	moveBall(s);<br />
	balls.push(s);<br />
}<br />
function moveBall(s:Shape):void<br />
{<br />
//whatever easing to move the spheres<br />
}<br />
var s2:Shape = container.addChild(new Shape()) as Shape;<br />
m = new Matrix();<br />
m.createGradientBox(200, 200, 0, -100, -100);<br />
c = Math.random() * 0xFFFFFF;<br />
s2.graphics.beginGradientFill(GradientType.RADIAL, [c, c], [1, 0], [0x00, 0xFF], m);<br />
s2.graphics.drawRect(-100, -100, 200, 200);<br />
var bmpData:BitmapData = new BitmapData(400, 300, true, 0x00000000);<br />
var bmp:Bitmap = addChild(new Bitmap(bmpData)) as Bitmap;<br />
addEventListener(Event.ENTER_FRAME, render);<br />
function render(e:Event):void<br />
{<br />
	s2.x = mouseX;<br />
	s2.y = mouseY;<br />
	bmpData.applyFilter(bmpData, bmpData.rect, new Point(0, 0), new BlurFilter(2, 2, 2));<br />
	bmpData.draw(container);<br />
	var i:int, l:int;<br />
	var aArr:Array = [];<br />
	var c:int;<br />
	for(i = 0; i <= 0xFF; i++)<br />
	{<br />
		c = (i - 0x80) << 1;<br />
		if(c < 0) c = 0;<br />
		aArr[i] = c << 24;<br />
	}<br />
	bmpData.paletteMap(bmpData, bmpData.rect, new Point(0, 0), null, null, null, aArr);<br />
}<br />
</code></p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2010/08/02/fast-metaball-effect-in-as3/&ztz=Fast Metaball Effect in AS3'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2010/08/02/fast-metaball-effect-in-as3/&ztz=Fast Metaball Effect in AS3'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2010/08/02/fast-metaball-effect-in-as3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gesture Source</title>
		<link>http://labs.hellokeita.com/2009/09/25/gesture-source/</link>
		<comments>http://labs.hellokeita.com/2009/09/25/gesture-source/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 00:33:23 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[gesture]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=96</guid>
		<description><![CDATA[So, here is the source for the Gesture Test I posted before.
http://labs.hellokeita.com/files/gesture/gesture.zip
As I said, it&#8217;s really simple, it&#8217;s not the best code but it gives you some ideas of how it&#8217;s made.
Inside the &#8220;tags&#8221; folder, I have three pngs for each shape (triangle, square and circle).
You draw the shape you want, I trim it, and [...]]]></description>
			<content:encoded><![CDATA[<p>So, here is the source for the Gesture Test I posted before.<br />
<a href="http://labs.hellokeita.com/files/gesture/gesture.zip">http://labs.hellokeita.com/files/gesture/gesture.zip</a></p>
<p>As I said, it&#8217;s really simple, it&#8217;s not the best code but it gives you some ideas of how it&#8217;s made.</p>
<p>Inside the &#8220;tags&#8221; folder, I have three pngs for each shape (triangle, square and circle).<br />
You draw the shape you want, I trim it, and compare to each png.<br />
The comparisson is, get the drawn image, stretch it to the size of each png, and apply threshold. The BitmapData.threshold returns you an uint, the number of pixels that has been changed. With this number, divide it to the area of the png, and than, you choose the one that returns you tha smallest number.</p>
<p>and&#8230; that&#8217;s it. simple simple&#8230;</p>
<p>actually, it&#8217;s a technique used for some facial/object recognition softwares, but in a simplified way.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/25/gesture-source/&ztz=Gesture Source'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/25/gesture-source/&ztz=Gesture Source'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/09/25/gesture-source/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gesture Test</title>
		<link>http://labs.hellokeita.com/2009/09/24/gesture-test/</link>
		<comments>http://labs.hellokeita.com/2009/09/24/gesture-test/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 00:31:13 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[BitmapData]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[flash10]]></category>
		<category><![CDATA[gesture]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=93</guid>
		<description><![CDATA[Well, I went to the Flash On The Beach for the first time this year. Was really cool and inspiring.
The first night, I had some inspiration, nothing to deal to any of the presentations I saw, but just something that I wanted to test. I couldn&#8217;t upload it because I didn&#8217;t have internet at the [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I went to the Flash On The Beach for the first time this year. Was really cool and inspiring.</p>
<p>The first night, I had some inspiration, nothing to deal to any of the presentations I saw, but just something that I wanted to test. I couldn&#8217;t upload it because I didn&#8217;t have internet at the hotel, and at the venue the firewall was blocking me to connect to my FTP.</p>
<p>So, what was my experiment this time?<br />
Gesture!<br />
I think it&#8217;s working quite nice for a code I took less than an hour to write. It was much easier than I thought.</p>
<p>Just click and try to draw a Triangle, Circle or Square.<br />
[kml_flashembed fversion="10.0.0" movie="/files/gesture/gesture1.swf" targetclass="flashmovie" publishmethod="static" width="401" height="431"]</p>
<p>Enjoy!<br />
I&#8217;ll post the source code later&#8230; let me take a nap now.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/24/gesture-test/&ztz=Gesture Test'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/24/gesture-test/&ztz=Gesture Test'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/09/24/gesture-test/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>LFPUG Presentation and Sources</title>
		<link>http://labs.hellokeita.com/2009/09/07/lfpug-presentation-and-sources/</link>
		<comments>http://labs.hellokeita.com/2009/09/07/lfpug-presentation-and-sources/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 10:01:56 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Komposer]]></category>
		<category><![CDATA[LFPUG]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[Sandy3d]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[dynamic sound]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=85</guid>
		<description><![CDATA[As promissed, here is the presentation I made at LFPUG in PDF format.
http://www.hellokeita.in/presentations/LFPUG/20090827/MakingMusicFP10.pdf
And the source files zipped with the demos I showed.
http://www.hellokeita.in/presentations/LFPUG/20090827/examples.zip
The contents are:
Example01-SineWaveExample: Simple example generating a sine wave
Example02-KeyboardExample: Example of a piano keyboard
Example03-WaveformExample: Changing the waveform of a sound
Example04-TimePitchExample: Changing pitch and tempo of a mp3
Example05-HeliumBalloon: Real time pitch shifting using Java
Enjoy!
UPDATE
LFPUG website [...]]]></description>
			<content:encoded><![CDATA[<p>As promissed, here is the presentation I made at LFPUG in PDF format.</p>
<p><a href="http://www.hellokeita.in/presentations/LFPUG/20090827/MakingMusicFP10.pdf" target="_blank">http://www.hellokeita.in/presentations/LFPUG/20090827/MakingMusicFP10.pdf</a></p>
<p>And the source files zipped with the demos I showed.</p>
<p><a href="http://www.hellokeita.in/presentations/LFPUG/20090827/examples.zip" target="_blank">http://www.hellokeita.in/presentations/LFPUG/20090827/examples.zip</a><br />
The contents are:<br />
Example01-SineWaveExample: Simple example generating a sine wave<br />
Example02-KeyboardExample: Example of a piano keyboard<br />
Example03-WaveformExample: Changing the waveform of a sound<br />
Example04-TimePitchExample: Changing pitch and tempo of a mp3<br />
Example05-HeliumBalloon: Real time pitch shifting using Java</p>
<p>Enjoy!</p>
<p><font color="#FF0000">UPDATE</font><br />
LFPUG website uploaded the video of my presentation<br />
<a href="http://www.lfpug.com/flash-10-making-music/" target="_blank">http://www.lfpug.com/flash-10-making-music/</a></p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/07/lfpug-presentation-and-sources/&ztz=LFPUG Presentation and Sources'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/09/07/lfpug-presentation-and-sources/&ztz=LFPUG Presentation and Sources'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/09/07/lfpug-presentation-and-sources/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LFPUG Presentation Summary</title>
		<link>http://labs.hellokeita.com/2009/08/28/lfpug-presentation-summary/</link>
		<comments>http://labs.hellokeita.com/2009/08/28/lfpug-presentation-summary/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 09:12:33 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[LFPUG]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[dynamic sound]]></category>
		<category><![CDATA[generative sound]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=83</guid>
		<description><![CDATA[Yesterday was my very first time presenting in English at LFPUG.
I was quite nervous but everything went really well.
Thanks Tink to letting me speak there.
Thank you for everyone that went there. The applause in the middle of the presentation cheered me up.
I really enjoyed speaking, and I hope there&#8217;s a next time.
I&#8217;ll prepare a PDF [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday was my very first time presenting in English at LFPUG.<br />
I was quite nervous but everything went really well.</p>
<p>Thanks Tink to letting me speak there.</p>
<p>Thank you for everyone that went there. The applause in the middle of the presentation cheered me up.</p>
<p>I really enjoyed speaking, and I hope there&#8217;s a next time.</p>
<p>I&#8217;ll prepare a PDF of the presentation I did together with the source code of the demos I showed and post it here.<br />
Also, Tink should upload the recorded video of the presentation in few days on LFPUG website <a href="http://www.lfpug.com" target="_blank">http://www.lfpug.com</a></p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/08/28/lfpug-presentation-summary/&ztz=LFPUG Presentation Summary'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/08/28/lfpug-presentation-summary/&ztz=LFPUG Presentation Summary'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/08/28/lfpug-presentation-summary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LFPUG Presentation</title>
		<link>http://labs.hellokeita.com/2009/08/26/lfpug-presentation/</link>
		<comments>http://labs.hellokeita.com/2009/08/26/lfpug-presentation/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 13:22:27 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Komposer]]></category>
		<category><![CDATA[LFPUG]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[dynamic sound]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=79</guid>
		<description><![CDATA[Tomorrow Aug 27th, I&#8217;ll be presenting at LFPUG (London Flash Platform User Group) about dynamic sound in Flash 10.
Feel free to pop-up there, it&#8217;s for free.
Here is the link:
http://www.lfpug.com/27th-august-2009-27082009/
Signing up, you&#8217;ll have a chance to get a Flash On The Beach ticket!
Time: 19:00 &#8211; 23:00 (doors open at 18:30)
Venue: CosmoBar, 50-54 Clerkenwell Road, EC1M 5PS [...]]]></description>
			<content:encoded><![CDATA[<p>Tomorrow Aug 27th, I&#8217;ll be presenting at LFPUG (London Flash Platform User Group) about dynamic sound in Flash 10.</p>
<p>Feel free to pop-up there, it&#8217;s for free.</p>
<p>Here is the link:<br />
<a href="http://www.lfpug.com/27th-august-2009-27082009/" target="_blank">http://www.lfpug.com/27th-august-2009-27082009/</a></p>
<p>Signing up, you&#8217;ll have a chance to get a Flash On The Beach ticket!</p>
<p>Time: 19:00 &#8211; 23:00 (doors open at 18:30)<br />
Venue: CosmoBar, 50-54 Clerkenwell Road, EC1M 5PS (click for map)<br />
Tube: Barbican/Farringdon</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/08/26/lfpug-presentation/&ztz=LFPUG Presentation'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/08/26/lfpug-presentation/&ztz=LFPUG Presentation'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/08/26/lfpug-presentation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fake Pitch Shifting</title>
		<link>http://labs.hellokeita.com/2009/08/19/fake-pitch-shifting/</link>
		<comments>http://labs.hellokeita.com/2009/08/19/fake-pitch-shifting/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 16:24:52 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Komposer]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[Daft Punk]]></category>
		<category><![CDATA[dynamic sound]]></category>
		<category><![CDATA[LFPUG]]></category>
		<category><![CDATA[Pitch]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=70</guid>
		<description><![CDATA[Pitch shifting is the method to change the frequency or the height of a sound.
And why it&#8217;s fake? Because, I&#8217;m really not using the correct algorithm, actually I just made one for demo purpose. If you listen carefully, you can hear some clippings when you change the slider position.
There is a difference between my previous [...]]]></description>
			<content:encoded><![CDATA[<p>Pitch shifting is the method to change the frequency or the height of a sound.<br />
And why it&#8217;s fake? Because, I&#8217;m really not using the correct algorithm, actually I just made one for demo purpose. If you listen carefully, you can hear some clippings when you change the slider position.</p>
<p>There is a difference between my previous post about pitch <a href="http://labs.hellokeita.com/2009/05/20/controlling-pitch-and-tempo/" target="_blank">Controlling Pitch and Tempo</a>.<br />
The previous one I was using a dynamically generated sine wave and changing the pitch. It&#8217;s much easier because I already have the samples for each sound.<br />
<br/><br />
On this example I&#8217;m using an MP3 file (Daft Punk, please don&#8217;t sue me&#8230;If you want, I can change it) and changing the pitch on runtime.<br />
<br />
Well it&#8217;s working, and as you can see no FPS loss.</p>
<p>[kml_flashembed fversion="10.0.0" movie="/files/pitchShifting/PitchShifting.swf" targetclass="flashmovie" publishmethod="static" width="400" height="300"]</p>
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>The source&#8230; well, I&#8217;m preparing for my <a href="http://www.lfpug.com/27th-august-2009-27082009/" target="_blank">LFPUG presentation</a> so, I&#8217;ll try to explain about it there, and than release some kind of source.</p>
<p>There is a post from my friend Li <a href="http://www.lidev.com.ar/?p=237" target="_blank">http://www.lidev.com.ar/?p=237</a> where he is using more accurate algorithm to change the pitch. There&#8217;s not much loss on quality and no clips.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/08/19/fake-pitch-shifting/&ztz=Fake Pitch Shifting'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/08/19/fake-pitch-shifting/&ztz=Fake Pitch Shifting'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/08/19/fake-pitch-shifting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Komposer alpha test release</title>
		<link>http://labs.hellokeita.com/2009/06/01/komposer-alpha-test-release/</link>
		<comments>http://labs.hellokeita.com/2009/06/01/komposer-alpha-test-release/#comments</comments>
		<pubDate>Sun, 31 May 2009 22:24:29 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Komposer]]></category>
		<category><![CDATA[dynamic sound]]></category>
		<category><![CDATA[generative sound]]></category>
		<category><![CDATA[Sound]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=66</guid>
		<description><![CDATA[I&#8217;m releasing this little interface for music composing.
http://www.hellokeita.in/komposer/
I tried to make as similar to a MIDI editing software.
Ok&#8230;, it&#8217;s really far to be similar&#8230; but I&#8217;m trying&#8230;
There&#8217;s somethings that I didn&#8217;t like in Flex so maybe I&#8217;ll start recreate all just with AS3.
Well, about the functionalities&#8230;
Click &#8216;Add track&#8217; to add a new Track.
You can change [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m releasing this little interface for music composing.</p>
<p><a href="http://www.hellokeita.in/komposer/" target="_blank">http://www.hellokeita.in/komposer/</a></p>
<p>I tried to make as similar to a MIDI editing software.<br />
Ok&#8230;, it&#8217;s really far to be similar&#8230; but I&#8217;m trying&#8230;<br />
There&#8217;s somethings that I didn&#8217;t like in Flex so maybe I&#8217;ll start recreate all just with AS3.</p>
<p>Well, about the functionalities&#8230;</p>
<p>Click &#8216;Add track&#8217; to add a new Track.<br />
You can change the Edit, Remove or change the Volume.<br />
The Mute and Solo functions are not working yet.<br />
Clicking on Edit, will take you to a sequencer interface.<br />
Double clicking on the Sequencer, you can add a new Note.<br />
You can playback it, change the positions and durations.<br />
Clicking on Close from the Sequencer, you get back to the main screen.<br />
Here you can playback all the tracks together.</p>
<p>After all, you can save/load the composition to/from you local hard drive.</p>
<p>Enjoy, and <b>give me some feedback</b> please.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/06/01/komposer-alpha-test-release/&ztz=Komposer alpha test release'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/06/01/komposer-alpha-test-release/&ztz=Komposer alpha test release'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/06/01/komposer-alpha-test-release/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Controlling Pitch and Tempo</title>
		<link>http://labs.hellokeita.com/2009/05/20/controlling-pitch-and-tempo/</link>
		<comments>http://labs.hellokeita.com/2009/05/20/controlling-pitch-and-tempo/#comments</comments>
		<pubDate>Tue, 19 May 2009 17:44:10 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Komposer]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[dynamic sound]]></category>
		<category><![CDATA[generate]]></category>
		<category><![CDATA[generative sound]]></category>
		<category><![CDATA[Mario]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=58</guid>
		<description><![CDATA[UPDATE: fixed the clicking noise correcting the zero-crossing, thanks to Caco Teixeira
Just another test now controlling the pitch and the tempo of the playback.
Source&#8230; soon, I&#8217;m re-writing the classes trying new approaches.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_MarioPitchTempo_0.2_1718455159"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="/files/komposer/MarioPitchTempo_0.2.swf" />
	<param name="bgcolor" value="#FFFFFF" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/files/komposer/MarioPitchTempo_0.2.swf"
			name="fm_MarioPitchTempo_0.2_1718455159"
			width="400"
			height="300">
		<param name="bgcolor" value="#FFFFFF" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
 Vote]]></description>
			<content:encoded><![CDATA[<p><font color="#0000FF">UPDATE: fixed the clicking noise correcting the zero-crossing, thanks to <a href="http://www.sonoplastico.com/" target="_blank">Caco Teixeira</a></font></p>
<p>Just another test now controlling the pitch and the tempo of the playback.<br />
Source&#8230; soon, I&#8217;m re-writing the classes trying new approaches.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_MarioPitchTempo_0.2_2014507194"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="/files/komposer/MarioPitchTempo_0.2.swf" />
	<param name="bgcolor" value="#FFFFFF" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/files/komposer/MarioPitchTempo_0.2.swf"
			name="fm_MarioPitchTempo_0.2_2014507194"
			width="400"
			height="300">
		<param name="bgcolor" value="#FFFFFF" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/05/20/controlling-pitch-and-tempo/&ztz=Controlling Pitch and Tempo'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/05/20/controlling-pitch-and-tempo/&ztz=Controlling Pitch and Tempo'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/05/20/controlling-pitch-and-tempo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating music in AS3 Flash 10</title>
		<link>http://labs.hellokeita.com/2009/05/16/creating-music-in-as3-flash-10/</link>
		<comments>http://labs.hellokeita.com/2009/05/16/creating-music-in-as3-flash-10/#comments</comments>
		<pubDate>Fri, 15 May 2009 17:18:28 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Komposer]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[dynamic sound]]></category>
		<category><![CDATA[generate]]></category>
		<category><![CDATA[generative sound]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=55</guid>
		<description><![CDATA[Has been a while Flash 10 has been released and I never got really into the new sound capabilities.
So, here is a demo I made with the best game sound track ever.
Dragging the points in the graph will change the tone of the sound.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_MusicComposer_865807260"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="/files/komposer/MusicComposer.swf" />
	<param name="bgcolor" value="#FFFFFF" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/files/komposer/MusicComposer.swf"
			name="fm_MusicComposer_865807260"
			width="400"
			height="300">
		<param name="bgcolor" value="#FFFFFF" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
And of course, here is [...]]]></description>
			<content:encoded><![CDATA[<p>Has been a while Flash 10 has been released and I never got really into the new sound capabilities.</p>
<p>So, here is a demo I made with the best game sound track ever.</p>
<p>Dragging the points in the graph will change the tone of the sound.<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_MusicComposer_44768609"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="/files/komposer/MusicComposer.swf" />
	<param name="bgcolor" value="#FFFFFF" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/files/komposer/MusicComposer.swf"
			name="fm_MusicComposer_44768609"
			width="400"
			height="300">
		<param name="bgcolor" value="#FFFFFF" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>And of course, here is the source.</p>
<p><a href="http://labs.hellokeita.com/files/komposer/Komposer_0.0.1.zip">Komposer_0.0.1.zip</a>.</p>
<p>And a quick explanation about the code.</p>
<p>Komposer is the main class, who will playback the music.<br />
Timbre is the class that defines the tone of the sound.<br />
Track is a groups of notes that will play with the defined timbre. Currently it will only play one track.<br />
Note is the class that defines the pitch(frequency) and the in/out of the sound.<br />
<code><br />
var komposer:Komposer = new Komposer();</p>
<p>var timbre:Timbre = new Timbre();<br />
timbre.addValue(0);<br />
timbre.addValue(1);<br />
timbre.addValue(-1);<br />
timbre.addValue(0);</p>
<p>var track:Track = new Track(timbre);</p>
<p>track.addNote(new Note(Notes.toFrequency(Notes.C, Notes.OCTAVE_4), 0, 500));<br />
track.addNote(new Note(Notes.toFrequency(Notes.D, Notes.OCTAVE_4), 500, 1000));<br />
track.addNote(new Note(Notes.toFrequency(Notes.E, Notes.OCTAVE_4), 1000, 1500));<br />
track.addNote(new Note(Notes.toFrequency(Notes.F, Notes.OCTAVE_4), 1500, 2000));<br />
track.addNote(new Note(Notes.toFrequency(Notes.G, Notes.OCTAVE_4), 2000, 2500));<br />
track.addNote(new Note(Notes.toFrequency(Notes.A, Notes.OCTAVE_5), 2500, 3000));<br />
track.addNote(new Note(Notes.toFrequency(Notes.B, Notes.OCTAVE_5), 3000, 3500));<br />
track.addNote(new Note(Notes.toFrequency(Notes.C, Notes.OCTAVE_5), 3500, 4000));</p>
<p>komposer.addTrack(track);</p>
<p>komposer.volume = 0.1;</p>
<p>komposer.play();<br />
</code></p>
<p><a href="http://labs.hellokeita.com/files/komposer/Komposer_0.0.1.zip">Komposer_0.0.1.zip</a>.</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/05/16/creating-music-in-as3-flash-10/&ztz=Creating music in AS3 Flash 10'><img src='http://labs.hellokeita.com/wp-content/plugins/hexosearch-button/logo16x16.png' width='16' height='16' border='0' style='padding:0px 5px 0px 0px;vertical-align:middle' alt='Vote in HexoSearch' title='Vote in HexoSearch' /></a> <span style='vertical-align:middle'><a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/05/16/creating-music-in-as3-flash-10/&ztz=Creating music in AS3 Flash 10'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/05/16/creating-music-in-as3-flash-10/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
