For Astronaut & Isidore (also see this post) I wanted to control not only the volume of a sound, but also the pitch. Since this is not supported (yet) in Actionscript, I searched and found this great class made by Andre Michelle: MP3Pitch.as. But because I wanted to use short sound effects I also wanted the sound to loop, which was not supported. So I changed it a little (now you can also start and stop the sound more easily). You can download the version with my additions here.
Be careful not to start too many sounds at the same time (three sounds already slowed down my computer), since every sound has its own SampleData stream. (If you want to do this I think it is best to rewrite the class and mix the different sounds into one SampleData stream.)
Another interesting software library to manipulate sound with is Antti Kupila’s SoundFX library, which makes it possible to add different kinds of filters to an MP3.
thanks for the share and post… I’m wondering if you have some ideas or could help me to find some infos on how to develop a BPM routine for this class…
Ivan, what do you mean with a BPM routine?
Sorry, I wasn’t clear…I mean something to calculate the BPM (beat per minute) of the mp3 played…
Sorry, no… I have no experience with trying to work with BPM…
Good luck!
Thanks a lot for this one, i was working on andre michelle’s work to do the same thing before i found yours. Nice work
Hello Val,
Thanks!
I’ve been working with this class again, transforming it into another class and cleaned it up (there’s a lot of stuff that’s not needed)… I haven’t put time in changing MP3Pitch.as yet… But maybe I should…
greeting, Stefan