|
Hate UML?Draw sequence diagrams in seconds.http://www.websequencediagrams.com |
I have created a separate web page for this project... please go there.
I've been curious about wavelets since I did a course project on them.
The wavelet transform is similar to Fourier analysis, in that it figures out which frequencies exist in a given signal. The difference is that it adds another dimension to the data. From a 1-D waveform, you will get a 2-D picture. Each row is a frequency, and the columns are times. So you get a picture of how the frequency changes with time.
The DWT does speedup the wavelet transform greatly, and mathematically, no information is lost. However it is not a very good way to look at the data visually. From 1024 samples, you only get 10 frequency bands. There's no way to, for instance, distinguish individual notes in song. Here's an example of what you'd get from the DWT. Compare it to the result from the first image, and you see how much information is hidden!
Because of the DWT, very few people give the CWT (continuous wavelet transform) a second glance. The library is filled with books on wavelets that spend two pages on the CWT, and then talk for the rest of the book about applying the DWT. As a result, people think the DWT is all there is.
Another technique, called the the wavelet packet transform, gives you a little more detail. But at the end of it, if you have 1024 sound samples, you will have 1024 transformed points. The more times you perform the algorithm, the more detail you loose in time (and the image looks like a pixellated mess).
One problem with it is that it generates a lot of data. Analyzing that sound took 170 MB of memory, and a couple of minutes on my computer. If you tried it on a 5 minute MP3 file, that's 5 times 60 seconds times 44100 samples per second * 44100/60 frequency bands = 9.7 billion data points, or about 38 GB of floating point data, if you don't use stereo!.
But it does produce some pretty pictures for short files. Here's a closeup view of the famous tada.wav:
If I have time in the new year, I'm going to add some fun stuff:
Want more programming tech talk?
Add to Circles on Google Plus
Subscribe to posts
Very interesting and useful work indeed. I landed on your link as I am researching the application of wavlets to pitch bending of music notes.
I can be reached on upaddy [AT] yahoo [DOT] com
I'd love to get connected with you.
Regards and best wishes.
Paddy.
Post comment