<?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; Math</title>
	<atom:link href="http://labs.hellokeita.com/category/math/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.hellokeita.com</link>
	<description>Yet another labs blog</description>
	<lastBuildDate>Thu, 01 Dec 2011 20:14:22 +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>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>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>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>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_PitchShifting_213426438"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="/files/pitchShifting/PitchShifting.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/files/pitchShifting/PitchShifting.swf"
			name="fm_PitchShifting_213426438"
			width="400"
			height="300">
	<!--<![endif]-->
		
<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>MathUtils Class</title>
		<link>http://labs.hellokeita.com/2009/03/20/mathutils-class/</link>
		<comments>http://labs.hellokeita.com/2009/03/20/mathutils-class/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 16:50:02 +0000</pubDate>
		<dc:creator>keita</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[combination]]></category>
		<category><![CDATA[cramer]]></category>
		<category><![CDATA[determinant]]></category>
		<category><![CDATA[factorial]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[square matrix]]></category>

		<guid isPermaLink="false">http://labs.hellokeita.com/?p=48</guid>
		<description><![CDATA[Hi,
After a long time, I uploaded a class in my SVN.
http://code.hellokeita.in/public/trunk/as3/br/hellokeita/utils/MathUtils.as
It&#8217;s a small class br.hellokeita.utils.MathUtils.
Inside, there are few methods: combination, factorial, solveCramer and squareMatrixDeterminant.
I think method name tells what it does, so please check it out and comment about it.
cheers,
k
 Vote]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>After a long time, I uploaded a class in my SVN.<br />
<a href="http://code.hellokeita.in/public/trunk/as3/br/hellokeita/utils/MathUtils.as" target="_blank">http://code.hellokeita.in/public/trunk/as3/br/hellokeita/utils/MathUtils.as</a></p>
<p>It&#8217;s a small class <em>br.hellokeita.utils.MathUtils</em>.<br />
Inside, there are few methods: combination, factorial, solveCramer and squareMatrixDeterminant.<br />
I think method name tells what it does, so please check it out and comment about it.</p>
<p>cheers,<br />
k</p>
<a href='http://www.hexosearch.com/se/submit.aspx?zlvz=2&zqz=&zurlz=http://labs.hellokeita.com/2009/03/20/mathutils-class/&ztz=MathUtils Class'><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/03/20/mathutils-class/&ztz=MathUtils Class'>Vote</a></span>]]></content:encoded>
			<wfw:commentRss>http://labs.hellokeita.com/2009/03/20/mathutils-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

