Re: [Flashcoders] Why 512?
Thanks Glen, I will go ahead an hurt my thinking muscle trying to get my head around it to. Sean Flashcoder.net > Ha, found it... > > http://www.dspguide.com/ch12.htm > > It is a while since I read this, but it hurt trying understand it a > few times, then I got it, then I promptly forgot about it because I was > using public domain code... > > Glen > > [EMAIL PROTECTED] wrote: >> Someone asked me the other day, why the Sound class function >> computeSpectrum() returns specifically 512 floating point values. >> >> I know it returns 256 values for the left and right channels and that >> each >> value is a 32-bit floating point value of 4 bytes, but despite alot of >> Googling, I could find no explanation as to why it's 512 values (rather >> than 30 or 200,000). Maybe it's a audio specification, maybe it's a >> number >> the Adobe Flash team decided arbitrarily was sufficient to represend the >> sound frequencied. >> >> Does any one posses this knowledge? >> >> Flashcoder.net >> >> ___ >> Flashcoders@chattyfig.figleaf.com >> To change your subscription options or search the archive: >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> Brought to you by Fig Leaf Software >> Premier Authorized Adobe Consulting and Training >> http://www.figleaf.com >> http://training.figleaf.com >> >> >> > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Why 512?
Ha, found it... http://www.dspguide.com/ch12.htm It is a while since I read this, but it hurt trying understand it a few times, then I got it, then I promptly forgot about it because I was using public domain code... Glen [EMAIL PROTECTED] wrote: Someone asked me the other day, why the Sound class function computeSpectrum() returns specifically 512 floating point values. I know it returns 256 values for the left and right channels and that each value is a 32-bit floating point value of 4 bytes, but despite alot of Googling, I could find no explanation as to why it's 512 values (rather than 30 or 200,000). Maybe it's a audio specification, maybe it's a number the Adobe Flash team decided arbitrarily was sufficient to represend the sound frequencied. Does any one posses this knowledge? Flashcoder.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Why 512?
It's quicker to do an FFT with a length that is a power of 2 Can't remember exactly why, but I think the algorithm keeps splitting the array into 2 for each iteration of the calculation... Have a look on Google. [EMAIL PROTECTED] wrote: Someone asked me the other day, why the Sound class function computeSpectrum() returns specifically 512 floating point values. I know it returns 256 values for the left and right channels and that each value is a 32-bit floating point value of 4 bytes, but despite alot of Googling, I could find no explanation as to why it's 512 values (rather than 30 or 200,000). Maybe it's a audio specification, maybe it's a number the Adobe Flash team decided arbitrarily was sufficient to represend the sound frequencied. Does any one posses this knowledge? Flashcoder.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Why 512?
Someone asked me the other day, why the Sound class function computeSpectrum() returns specifically 512 floating point values. I know it returns 256 values for the left and right channels and that each value is a 32-bit floating point value of 4 bytes, but despite alot of Googling, I could find no explanation as to why it's 512 values (rather than 30 or 200,000). Maybe it's a audio specification, maybe it's a number the Adobe Flash team decided arbitrarily was sufficient to represend the sound frequencied. Does any one posses this knowledge? Flashcoder.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com