PDA

View Full Version : Emulation of Kansas City tape format in Python



retrohimpi
August 22nd, 2010, 11:16 PM
Anyone else see this blog post (http://dabeaz.blogspot.com/2010/08/using-python-to-encode-cassette.html)?

Python's not a language I've had much to do with, but there's probably enough info in the post to enable a port to Java for my OSI Challenger emulator (see my blog (http://www.vintage-computer.com/vcforum/blog.php?11579-retrohimpi)). At the moment, my emulation's cassette ports read/write directly to text files on the host computer's hard disk, but it would be fun to go all the way and produce/read audio.

Anyone know how to do the opposite (decode a WAV file into a stream of bits)? I know it needs a Fourier analysis to pick out the frequencies but don't know the gory details, nor the format of WAV files.

retrohimpi
September 1st, 2010, 12:44 AM
Anyone know how to do the opposite (decode a WAV file into a stream of bits)? I know it needs a Fourier analysis to pick out the frequencies but don't know the gory details, nor the format of WAV files.

In case anyone's interested, the follow-up post (http://dabeaz.blogspot.com/2010/08/decoding-superboard-ii-cassette-audio.html) answers my question. I didn't realise the original post was going to be the start of a mini-series.

Apparently, the Kansas City format was designed to be easily decoded and so Fourier transforms aren't required.