Help - Search - Members - Calendar
Full Version: WavPack decoder in Python
Hydrogenaudio Forums > Lossless Audio Compression > WavPack
soiaf
I recently decided to learn some Python, and to make it interesting for myself I decided to write a 'fun' program. The result is this WavPack decoder! The decoder is very slow (as Python is not really designed with heavy number crunching in mind) but it might be interesting for some people. I was also able to run this code on my phone - however as it took about 4 hours to decode one file I wouldn't suggest this as a solution for playing WavPack files on your phone biggrin.gif

Link to code
kanak
Cool biggrin.gif. I love python myself, but i seriously couldn't understand what was going on (this stuff is way too complicated for me.

QUOTE

however as it took about 4 hours to decode one file


haha. Maybe using numpy arrays would help?

How about building an encoder? that might be more fun.
gaekwad2
QUOTE(kanak @ Feb 25 2008, 04:21) *

How about building an encoder? that might be more fun.

I wonder how fast that one would be. laugh.gif
soiaf
QUOTE(kanak @ Feb 25 2008, 03:21) *

Maybe using numpy arrays would help?

How about building an encoder? that might be more fun.


Thanks, I'll check out numpy.
The code works fine with Psyco and gets a good speed-up using it, still too slow to be very useful though (on a machine that can decode a WavPack file in a few seconds with the C version it takes a couple of minutes with the Python decoder).
I'm actually current writing a WavPack encoder in Java biggrin.gif But I probably won't convert it to Python, I really only wrote the decoder to teach myself how Python is put together.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.