Shop Mobile More Submit  Join Login


Submitted on
August 27, 2009
Image Size
39.2 KB


6,929 (2 today)
122 (who?)
410 (1 today)


Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License.
So this is continuation to my experiments with music. One of important new features of Flash 10 is possibility to extract raw music data + feed raw music data to sound card as stream of bytes. All that together allows to do manual sound filters that alter sound as it is passed to SoundCard. Here is one I really wanted to do :D

So click Load and pick some mp3 file. Then try changing Pitch slider position. To the right it starts to play faster. To the left it starts to slow down until stopping completely and then playing in reverse :D

For those who are curious I used linear interpolation when stretching it and average when squeezing. Tough it is little bit glitch and my technique is limited as I can only use whole steps. That's why I use only steps like 1/2 or 4 for speed... Will need to experiment/work on it more.

Also having a lot of fun listening a lot of music with 1/2 or 2 speed. Or with -1 speed :D Funny that pop starts to sound like metal sometimes at 1/2 :rofl:

Ok spent some time thinking and made number of changes to my interpolation algorithm. Now it allows any type of step. Not only powers of 2 :) So you can very smoothly change speed of play which sounds really cool :D Should be cool to use this effect in some say racing game where with higher speeds music plays faster :) Or with games where slowmo is used :)
Add a Comment:
g0thg1rl Featured By Owner Oct 17, 2014  Hobbyist General Artist
This actually helped me, I'm trying to change the pitch of a song so it's easier for me to sing, and I changed it from a really deep male's voice, to a slightly deep female voice~! Thanks a bunch. ^-^
BrownieRaider Featured By Owner Nov 9, 2013  Student General Artist
:< I have music but they aren't mp3 folders.. D:
wonderwhy-ER Featured By Owner Nov 9, 2013
Not sure what you mean -_-
BrownieRaider Featured By Owner Nov 9, 2013  Student General Artist
Files*  -_-.... I don't have any music that's a mp3 file- Accept for my few Sims  music
wonderwhy-ER Featured By Owner Nov 10, 2013
I see. Well sadly Flash has libraries only for wav and mp3 formats(at least at the time) so -_-
traukha Featured By Owner Sep 7, 2013
Funny :D
Evilpagemistress Featured By Owner Mar 16, 2013  Hobbyist Writer
Oh my GOD :D This is GREAT!
wonderwhy-ER Featured By Owner Mar 16, 2013
PRUSSlA Featured By Owner Sep 7, 2013  Hobbyist General Artist
wat xD
wigio Featured By Owner Sep 6, 2012
I love this.

Well... what kind of interpolation algorithm did you use?
Add a Comment: