View Full Version : How do I make a REAL equalizer!?!?
Vivavida
March 25th, 2010, 06:24 PM
OK I have seen many looped fake ones, but how can I make a real equalizer??
IQAndreas
March 25th, 2010, 06:43 PM
Do you mean a Visualizer? Like the one with all the neat colors in Windows Media Player?
If so, you might want to look into "SoundMixer.computeSpectrum". A Google search should be able to get you started.
http://www.google.com/search?hl=en&q=as3+music+visualizer+computespectrum
I found several great links scanning through the first few results, but I know there was one tutorial recently, but I for the life of me cannot find it. I will reply back here if I stumble onto it some time in the future.
lordofduct
March 25th, 2010, 09:46 PM
IqAndreas makes an important point...
what do you mean by equalizer? I too have noticed much confusion on what they are on the interbutts.
Visualizer - graphical feed back representing the current sound wave form
Equalizer - an audio processing algorithm that 'filters' the sound to alter the resulting sound. Meant to normalize or balance the sound to clean it up, it is very commonly used today as a way to make it sound "trippy".
IqAndreas points out exactly what information you need if you meant a Visualizer.
But if you really did mean an Equalizer... well, that's a bit hard.
The SoundTransform gives you access to some stuff... but I wouldn't call that an equalizer really. It's mostly just stereo shifts (pan, channel peak, etc).
In FP10 you can sample the sound data from a Sound object and manually alter it. But I wouldn't even know where to start when it came to explaining that. You best be having some engineering education to even bother dealing with equalizing an audio stream like that.
Vivavida
March 26th, 2010, 01:23 PM
something like this. . . http://on-machine.com/images/giant_equalizer.jpg
which is a visual which reacts to the volume of the music, so bars would be smaller in quieter parts, and larger in louder parts :)
Vivavida
March 26th, 2010, 01:25 PM
Do you mean a Visualizer? Like the one with all the neat colors in Windows Media Player?
If so, you might want to look into "SoundMixer.computeSpectrum". A Google search should be able to get you started.
http://www.google.com/search?hl=en&q=as3+music+visualizer+computespectrum
I found several great links scanning through the first few results, but I know there was one tutorial recently, but I for the life of me cannot find it. I will reply back here if I stumble onto it some time in the future.
thank you very much for your help! :) I did not mean a Visualizer but I wanted to look into them as well! :)
I meant the equalizers, a few grouped rectangular bars, that change their height according to the volume of the music being played! :)
IQAndreas
March 26th, 2010, 02:02 PM
thank you very much for your help! :) I did not mean a Visualizer but I wanted to look into them as well! :)
I meant the equalizers, a few grouped rectangular bars, that change their height according to the volume of the music being played! :)
Actually, that is a Visualizer, but instead of using a squiggly line to show the volume at various tones, they use bars, like the difference between using a line chart or a bar chart in excel to show the exact same data. Read up on the visualizer tutorials, and instead of drawing squiggly lines, draw bars instead. :)
Equalizers are similar, but are knobs or sliders you use to SET the volume of music at various frequencies. They do not move or light up, though the idea behind both is VERY similar.
Vivavida
March 26th, 2010, 02:26 PM
Actually, that is a Visualizer, but instead of using a squiggly line to show the volume at various tones, they use bars, like the difference between using a line chart or a bar chart in excel to show the exact same data. Read up on the visualizer tutorials, and instead of drawing squiggly lines, draw bars instead. :)
Equalizers are similar, but are knobs or sliders you use to SET the volume of music at various frequencies. They do not move or light up, though the idea behind both is VERY similar.
Thank you very much!! :D I will look into this! :D
TheCanadian
March 26th, 2010, 02:37 PM
Actually, that is a Visualizer, but instead of using a squiggly line to show the volume at various tones, they use bars, like the difference between using a line chart or a bar chart in excel to show the exact same data. Read up on the visualizer tutorials, and instead of drawing squiggly lines, draw bars instead. :)
Equalizers are similar, but are knobs or sliders you use to SET the volume of music at various frequencies. They do not move or light up, though the idea behind both is VERY similar.Fyi bar graphs cannot represent the same trends that line graphs do :P
just showing off my uni knowledge
Vivavida
March 26th, 2010, 05:11 PM
wow this looks very good!!
http://www.gskinner.com/blog/assets/spectrum_ring/
it seems I need to play with
SoundMixer.computeSpectrum
does anybody have any effective ways in which one may browse through the AS3 classes and use them? At the moment when I look at them they are all Flex examples and I get a bit confused! :(
IQAndreas
March 26th, 2010, 05:25 PM
does anybody have any effective ways in which one may browse through the AS3 classes and use them? At the moment when I look at them they are all Flex examples and I get a bit confused! :(
I'm do glad you asked! :D
Have you heard about the Language Reference? Basically, it's a documentation of ALL classes in Flash that were made by Adobe and available by default in Flash. Sadly, it's a bit dry at times, but still REALLY helpful, and if you want to become a good ActionScript programmer, you need to learn how to use it properly.
It can be found at http://help.adobe.com/en_US/AS3LCR/Flash_10.0/index.html
There is also a separate version for Flex which includes all the "mx" components etc.
I even wrote a small guide on adding the Language Reference as a bookmarks menu in FireFox
http://iqandreas.blogspot.com/2010/02/language-reference-at-tip-of-your.html
nook
March 26th, 2010, 06:34 PM
Beware of computeSpectrum though since it picks audio from every swf running. So if you for instance have a youtube site open at the same time it won't work.
Vivavida
March 26th, 2010, 06:46 PM
Beware of computeSpectrum though since it picks audio from every swf running. So if you for instance have a youtube site open at the same time it won't work.
oh!! Thanks for that info!! :P is there any way I can focus on one audio output??
Vivavida
March 26th, 2010, 06:48 PM
I'm do glad you asked! :D
Have you heard about the Language Reference? Basically, it's a documentation of ALL classes in Flash that were made by Adobe and available by default in Flash. Sadly, it's a bit dry at times, but still REALLY helpful, and if you want to become a good ActionScript programmer, you need to learn how to use it properly.
It can be found at http://help.adobe.com/en_US/AS3LCR/Flash_10.0/index.html
There is also a separate version for Flex which includes all the "mx" components etc.
I even wrote a small guide on adding the Language Reference as a bookmarks menu in FireFox
http://iqandreas.blogspot.com/2010/02/language-reference-at-tip-of-your.html
Thank you!! I was using the AS3 Language Reference, which included FLEX and other stuff. I didn`t know there was a Flash AS3 Language Reference!!! THANKS! :D This should help me out hehe I was annoyed with seeing useless examples
nook
March 26th, 2010, 07:13 PM
oh!! Thanks for that info!! :P is there any way I can focus on one audio output??
Sorry, not that I know of.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.