<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - flash - 9.0 - ActionScriptLangRefV3 - flash/media/SoundMixer.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-26T02:52:03</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#76193" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#76126" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#75890" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#73381" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#71596" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#70760" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#70582" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#70431" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#69214" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#68826" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#66279" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#76193">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#76193</link>
		<description>yes, but stretchFactor in my case is set to 0, and still i get 256 float values for each channel that respond only to frequencies 0-11050 Hz.&lt;br /&gt;&lt;br /&gt;i posted this on the adobe forum&lt;br /&gt;http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&amp;catid=288&amp;threadid=1311004&amp;enterthread=y</description>
		<dc:creator>podlium</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-11-06T03:59:30</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#76126">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#76126</link>
		<description>Hi,&lt;br /&gt;&lt;br /&gt;it seems that computeSpectrum only gets frequencies from 0 to 11025?&lt;br /&gt;i wasn't able to get &gt;11025 frequencies with readFloat().&lt;br /&gt;Am i right or is there another way?&lt;br /&gt;&lt;br /&gt;That's because of the sampling frequency of 22050 Hz (depending on stretchFactor in computeSpectrum(), in your case = 1). &lt;br /&gt;&lt;br /&gt;Read this:&lt;br /&gt;http://en.wikipedia.org/wiki/Nyquist_frequency&lt;br /&gt;&lt;br /&gt;In particular: &lt;br /&gt;&quot;For example, audio CDs have a sampling frequency of 44100 Hz. The Nyquist frequency is therefore 22050 Hz, which is an upper bound on the highest frequency the data can unambiguously represent.&quot;</description>
		<dc:creator>FreDeVos</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-11-05T01:38:27</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#75890">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#75890</link>
		<description>Hi,&lt;br /&gt;&lt;br /&gt;it seems that computeSpectrum only gets frequencies from 0 to 11025?&lt;br /&gt;i wasn't able to get &gt;11025 frequencies with readFloat().&lt;br /&gt;Am i right or is there another way?</description>
		<dc:creator>podlium</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-10-30T17:14:40</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#73381">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#73381</link>
		<description>Hey  pisikopatikalistor, &lt;br /&gt;the Error #2121 happens when you try to call the computeSpectrum function when another flash file with sound is loaded from a different domain.  &lt;br /&gt;For example, if you have youtube open when trying to view a flash file that uses computeSpectrum, it will fail because youtube did not grant your domain access to get its sound info.  So instead of just returning the byteArray for the sounds that it can access, Adobe (for some silly reason) decided to have computeSpectrum leave the byte array untouched!  I know...STUPID!  Why not just return the byte array for the sounds that it CAN access?!&lt;br /&gt;&lt;br /&gt;It appears the only &quot;solution&quot; is to put your computeSpectrum in a try/catch block (or use areSoundsInaccessable method before calling computeSpectrum ) and simply notify the user that a flash file in a different window is interfering with your sound visualizations!&lt;br /&gt;&lt;br /&gt;Hopefully adobe will update the implementation of computeSpectrum.  :(</description>
		<dc:creator>ZoD-</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-09-07T09:55:21</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#71596">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#71596</link>
		<description>The general description for this class states that SoundMixer &quot;controls embedded streaming sounds in a SWF; it does not control dynamically created Sound objects&quot; -- but in my experience, SoundMixer does indeed act like a truly global sound control.  Volume, panning, the stopAll() method ... each one affects all sounds, dynamic or not, in my tests.  In timeline audio, this affects both Stream and Event sounds.</description>
		<dc:creator>David Stiller</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-08-08T05:44:24</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#70760">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#70760</link>
		<description>I updated my player to 9.0.47 from 9.0.45&lt;br /&gt;and everthing is ok</description>
		<dc:creator>pisikopatikalistor</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-07-26T01:50:50</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#70582">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#70582</link>
		<description>I have a problem with computing spectrum&lt;br /&gt;if there is another swf in other IE windows or firefox tabs an error occuring about security like that:&lt;br /&gt;----------------------------------------------------------------------------------------------&lt;br /&gt;SecurityError: Error #2121: Security sandbox violation: SoundMixer.computeSpectrum: http://www.mydomain.com/spectrumEx.swf cannot access http://www.anotherdomain.com/aswfwhichcontainssound.swf. This may be worked around by calling Security.allowDomain.&lt;br /&gt;	at flash.media::SoundMixer$/computeSpectrum()&lt;br /&gt;	at spectrumEx_fla::MainTimeline/spectrum()&lt;br /&gt;--------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;how can I solve this problem? do U have any idea?</description>
		<dc:creator>pisikopatikalistor</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-07-23T10:31:28</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#70431">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#70431</link>
		<description>thanks a lot, minigunbang</description>
		<dc:creator>pisikopatikalistor</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-07-20T08:07:31</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#69214">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#69214</link>
		<description>pisikopatikalistor, this code is working exactly,&lt;br /&gt;but the _y property is smaller than 0,&lt;br /&gt;so you couldn't see the spectrum&lt;br /&gt;&lt;br /&gt;change the code &lt;br /&gt;&lt;br /&gt;graphics.drawRect(k*8,0,7,-10*(amp));&lt;br /&gt;&lt;br /&gt;====&gt; graphics.drawRect(k*8 + 50 ,50,7,-10*(amp));</description>
		<dc:creator>minigunbang</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-06-29T00:51:42</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#68826">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#68826</link>
		<description>ohad1, is this code working? I want to use compute spectrum, but I don't know how is it working exactly?</description>
		<dc:creator>pisikopatikalistor</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-06-22T00:52:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#66279">
		<title>flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/SoundMixer.html#66279</link>
		<description>The Compute spectrum function is  inncorect.&lt;br /&gt;A signal's spectrum is needed to be shown in the frequncy domain.&lt;br /&gt;The compute spectrum function displays the signal on the time domain(similar to osciloscope).&lt;br /&gt;In order to show the signal in the frequncy domain, a DFT transformation is needed to be applied.&lt;br /&gt;I've genereted such code:&lt;br /&gt;&lt;br /&gt;//Init&lt;br /&gt;var s:Sound = new Sound();&lt;br /&gt;var sound_channel:SoundChannel;&lt;br /&gt;var ba:ByteArray = new ByteArray();&lt;br /&gt;var array:Array;&lt;br /&gt;s.load(new URLRequest(&quot;song.mp3&quot;));&lt;br /&gt;sound_channel = s.play(0,1000);&lt;br /&gt;this.addEventListener(Event.ENTER_FRAME, spectrum);&lt;br /&gt;var a:Number = 0;&lt;br /&gt;var N:Number = 32; //Signal's length in time&lt;br /&gt;var K:Number = 16; //Signal's length in frequency&lt;br /&gt;var X_r:Array = new Array(); //real part&lt;br /&gt;var X_i:Array = new Array(); // imaginary part&lt;br /&gt;function spectrum(event:Event)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;        // Clear the array&lt;br /&gt;		for(var k=0; k &lt; 16; k++)&lt;br /&gt;		        X_r[k]=X_i[k]=0;&lt;br /&gt;		a = 0;&lt;br /&gt;        graphics.clear();&lt;br /&gt;        SoundMixer.computeSpectrum(ba,true,0);&lt;br /&gt;		// DFT&lt;br /&gt;		for(var n=0; n &lt; N; n++)&lt;br /&gt;        {&lt;br /&gt;				a=ba.readFloat();&lt;br /&gt;	&lt;br /&gt;				for(k=0; k &lt; 16; k++)&lt;br /&gt;		        {&lt;br /&gt;					var ang:Number=2*Math.PI*n*k/N;&lt;br /&gt;					X_r[k]+=a*Math.cos(2*Math.PI*n*k/N);&lt;br /&gt;					X_i[k]+=a*Math.sin(2*Math.PI*n*k/N);&lt;br /&gt;					&lt;br /&gt;					}&lt;br /&gt;						&lt;br /&gt;	  }&lt;br /&gt;	  // show DFT&lt;br /&gt;  	  for(k=0; k &lt; 16; k++)&lt;br /&gt;  	    {graphics.lineStyle(0,0);&lt;br /&gt;		var amp=Math.log(1+Math.sqrt(Math.pow(X_r[k],2)+Math.pow(X_i[k],2)));&lt;br /&gt;        graphics.beginFill(0x0000FF|(amp*100&lt;&lt;9));&lt;br /&gt;		graphics.drawRect(k*8,0,7,-10*(amp));&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;}</description>
		<dc:creator>ohad1</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-05-03T04:34:27</dc:date>
	</item>
	</rdf:RDF>

