HOME | DD

wonderwhy-ER — MP3 Pitcher -Update- by-nc-nd

Published: 2009-08-27 22:50:06 +0000 UTC; Views: 11820; Favourites: 123; Downloads: 490
Redirect to original
Description 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

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

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 Funny that pop starts to sound like metal sometimes at 1/2


Update:
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 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
Related content
Comments: 141

wonderwhy-ER In reply to ??? [2011-01-03 06:44:23 +0000 UTC]

Hmm what?

👍: 0 ⏩: 1

bl00dmAfiA In reply to wonderwhy-ER [2011-01-08 09:27:55 +0000 UTC]

its a song by all that remains

👍: 0 ⏩: 1

wonderwhy-ER In reply to bl00dmAfiA [2011-01-08 11:47:40 +0000 UTC]

Ouh ok

👍: 0 ⏩: 0

bl00dmAfiA [2011-01-03 05:28:58 +0000 UTC]

this calling sounds so epic on this

👍: 0 ⏩: 0

JazzyKat64 In reply to ??? [2010-12-04 21:31:57 +0000 UTC]

Why is slowing down Taylor swift so freakin hilarious?!

👍: 0 ⏩: 1

wonderwhy-ER In reply to JazzyKat64 [2010-12-05 08:47:51 +0000 UTC]

Hmm need to download to hear... I find fun that various choirs on 1.5 pitch start to sound like hamsters choirs

👍: 0 ⏩: 0

omellykim In reply to ??? [2010-11-09 21:21:38 +0000 UTC]

👍: 0 ⏩: 1

wonderwhy-ER In reply to omellykim [2010-11-09 21:27:52 +0000 UTC]

👍: 0 ⏩: 0

kichakicha [2010-09-14 13:07:25 +0000 UTC]

O.M.G really funny with -1

👍: 0 ⏩: 1

wonderwhy-ER In reply to kichakicha [2010-09-14 16:27:15 +0000 UTC]

Yeah it's quite fun

👍: 0 ⏩: 0

adamcw123 In reply to ??? [2010-09-10 14:24:20 +0000 UTC]

Awsome man turn to chipmunk

👍: 0 ⏩: 1

wonderwhy-ER In reply to adamcw123 [2010-09-10 14:38:06 +0000 UTC]

Hmm, what? Turn what to chipmunk?

👍: 0 ⏩: 0

zogdor In reply to ??? [2010-08-25 05:55:44 +0000 UTC]

play night wish last of the wilds at pitch setting 2.25 and its aweomse

👍: 0 ⏩: 1

wonderwhy-ER In reply to zogdor [2010-08-25 06:27:45 +0000 UTC]

Sadly don't have it

👍: 0 ⏩: 2

zogdor In reply to wonderwhy-ER [2010-08-25 07:42:18 +0000 UTC]

oh then try hedly's cha-ching on pitch 0.63 and it hilarious

👍: 0 ⏩: 0

zogdor In reply to wonderwhy-ER [2010-08-25 06:29:18 +0000 UTC]

[link] heres the link to the download enjoy ^^

👍: 0 ⏩: 1

wonderwhy-ER In reply to zogdor [2010-08-25 11:49:53 +0000 UTC]

Hehe it is too slow for my taste but on 2+ pitch start to sound nice

👍: 0 ⏩: 1

zogdor In reply to wonderwhy-ER [2010-08-25 12:26:12 +0000 UTC]

told ya

👍: 0 ⏩: 0

kakutogi In reply to ??? [2010-06-11 16:42:36 +0000 UTC]

the browse file feature really neat!! must be a good stuff to implement it in game or whatever

👍: 0 ⏩: 1

wonderwhy-ER In reply to kakutogi [2010-06-13 21:56:48 +0000 UTC]

Ok here [link]
I use his lib for this. He provides example too.
Though I just encounter and MP3 which it can't handle...

👍: 0 ⏩: 0

kakutogi In reply to ??? [2010-06-11 09:04:58 +0000 UTC]

this is cool!!!

👍: 0 ⏩: 1

wonderwhy-ER In reply to kakutogi [2010-06-11 09:19:32 +0000 UTC]

Yeah it kind of is

👍: 0 ⏩: 0

azan88 [2010-03-31 19:42:38 +0000 UTC]

this is very fantastick!!! try whit muse in reverse XD

👍: 0 ⏩: 1

wonderwhy-ER In reply to azan88 [2010-03-31 19:54:17 +0000 UTC]

Thanks Inspired by Andre Michel work actually.

Hmm what is "whit muse"? Link may be?

👍: 0 ⏩: 1

azan88 In reply to wonderwhy-ER [2010-03-31 20:02:29 +0000 UTC]

sorry with "muse" the group

[link]

👍: 0 ⏩: 1

wonderwhy-ER In reply to azan88 [2010-04-01 11:15:29 +0000 UTC]

Yeah different stuff looks funny Good for rediscovering stuff

👍: 0 ⏩: 0

crotafang [2010-03-11 15:40:05 +0000 UTC]

This is definitely a lot of fun.

👍: 0 ⏩: 1

wonderwhy-ER In reply to crotafang [2010-03-11 19:12:11 +0000 UTC]

Thanks

👍: 0 ⏩: 0

kirby-kaabii-poyo [2010-03-07 18:32:32 +0000 UTC]

i made Kirby sound like a chipmunk!

👍: 0 ⏩: 1

wonderwhy-ER In reply to kirby-kaabii-poyo [2010-03-07 18:54:54 +0000 UTC]

👍: 0 ⏩: 0

Whirlwind93 In reply to ??? [2009-12-21 21:13:13 +0000 UTC]

LOL!!! i can have fun with this for hours!!!

👍: 0 ⏩: 1

wonderwhy-ER In reply to Whirlwind93 [2009-12-21 21:39:57 +0000 UTC]

Yeah this thing is fun Now when you reminded me had fun turning some female singers to male singers and opposite too

👍: 0 ⏩: 0

Jokke91 In reply to ??? [2009-12-13 20:28:30 +0000 UTC]

Finally flash is able to interact with audio
Been waiting for this in order to create truly sound synced flashes.
Do you have the code for that EQ, or point me to a tutorial?
I had little to no success with google, perhaps because this is a new feature.
Thanks (:

👍: 0 ⏩: 1

wonderwhy-ER In reply to Jokke91 [2009-12-14 09:20:22 +0000 UTC]

Sorry takes to time to get to you
Here this guy made alike thing [link] and has a source for it. I am kind of busy now but I think I can share mine too.

👍: 0 ⏩: 0

XceNiK In reply to ??? [2009-10-03 15:33:11 +0000 UTC]

LOL soo funny )) with speed )

👍: 0 ⏩: 1

wonderwhy-ER In reply to XceNiK [2009-10-03 16:01:42 +0000 UTC]

Yeah

👍: 0 ⏩: 0

washwithcare [2009-09-09 16:35:01 +0000 UTC]

I'm working on a project where users can upload images to be manipulated. How did you get the mp3 upload to work? Or is it just running off the local machine?

👍: 0 ⏩: 1

wonderwhy-ER In reply to washwithcare [2009-09-09 17:17:57 +0000 UTC]

Hey.
Flash 10 firstly.
Then FileReference class that was available before but before it served as a channel trough which you could send/receive files from/to server.
But in flash 10 packed some new features and one I called the most important was this. Now you can load/save files from browser app to local disk trough FileReference methods. Only problems is that what you receive or save should be a ByteArray so you will need to have Decoders/Encoders that are able to parse binary data in to a usable class or in contrary encode something you want in to a binary format. Luckily flash community is large and there are many open source encoders/decoders available. Here I am trying to have list for those I know of but it is little bit outdated [link]

As for how to use check Flash 10 AS3 reference or google for tutorials. Also you will need to target Flash 10 for that to work.

👍: 0 ⏩: 1

washwithcare In reply to wonderwhy-ER [2009-09-10 00:39:22 +0000 UTC]

Awesome, thanks for your help. I'll let you know when it's finished!

👍: 0 ⏩: 1

washwithcare In reply to washwithcare [2009-09-10 19:23:57 +0000 UTC]

Finished!
[link]
[link]

👍: 0 ⏩: 0

a-freakin-rpg-gamer In reply to ??? [2009-09-05 20:16:34 +0000 UTC]

Lovin' the update
Sliding it up and down is great fun

👍: 0 ⏩: 1

wonderwhy-ER In reply to a-freakin-rpg-gamer [2009-09-05 20:32:52 +0000 UTC]

Thanks. Yeah Sounds more like DJ thing now

👍: 0 ⏩: 0

flashygoodness In reply to ??? [2009-09-05 19:14:17 +0000 UTC]

Fantastic update! This really has a lot of potential... what if it could be integrated into an entire web music player? That would be great for finding new ways to hear old songs.

👍: 0 ⏩: 1

wonderwhy-ER In reply to flashygoodness [2009-09-05 19:30:42 +0000 UTC]

Yeah exactly Only problem is that it is costly in performance... May be need to try and optimize it.
Also I find it to be a really cool thing for games. Firstly using same melody with 0.5 or 1.5 pitch makes it sound completely different in mood and with no words sometiems even hard to recognize. So one song can be used in 3 different moods or something for different levels or level parts. Then for games like races or shooters with slow motions or where things to become different and slow or fast melody kind of interferes that could be good use too. But all that needs special melodies. No words and all. Also would be interesting to research melody types that sound as good in reverse. Some do but some do not... But that's not for me but rather for a musician to experiment with.

👍: 0 ⏩: 1

flashygoodness In reply to wonderwhy-ER [2009-09-05 21:05:11 +0000 UTC]

Yeah, I realized that... But it certainly would be useful for games! This sort of thing isn't done much in mainstream games, but interesting indie games such as Yume Nikki have utilized this technique to create entirely new soundtracks out of existing data. I'd like to do that someday too.

I've already experimented with my own songs using this player, and I must say the results are very astounding! It's entirely new ways to hear the songs I've grown too familiar with, and it's giving me lots of ideas for future remixes. Thanks!

👍: 0 ⏩: 1

wonderwhy-ER In reply to flashygoodness [2009-09-06 00:04:31 +0000 UTC]

Haha yeah they do sound interesting and new often

👍: 0 ⏩: 0

ssjskipp In reply to ??? [2009-09-05 17:30:45 +0000 UTC]

Very cool. I love how it's possible to work with binary data in Flash. It really expands what you can do, especially when people create packages to work with actual filetypes like mp3, gif, etc.

👍: 0 ⏩: 1

wonderwhy-ER In reply to ssjskipp [2009-09-05 17:45:00 +0000 UTC]

Yeah. Video encoding would be nice too. I seen some flv libs so far but without possibility to add sound to them... But that will come

👍: 0 ⏩: 0

Keydan In reply to ??? [2009-09-05 17:08:37 +0000 UTC]

Load a J-pop song and run it at 0.6 pitch...

👍: 0 ⏩: 1

wonderwhy-ER In reply to Keydan [2009-09-05 17:43:25 +0000 UTC]

Yeah seems more like rock or something

👍: 0 ⏩: 1


| Next =>