Program for converting wavs and mp3s of Apple I casettes to files

7 posts / 0 new
Last post
Offline
Last seen: 14 years 5 months ago
Joined: Nov 19 2005 - 04:23
Posts: 5
Program for converting wavs and mp3s of Apple I casettes to files

Hi,

I have created a C program for converting wav and mp3 files to hex files suitable for loading to the Replica I using the serial interface.

I have tested with the lunar.wav and basic.wav files posted in this thread: http://www.applefritter.com/node/9848.
The resulting lunar.txt is identical to the one downloaded from this site.

I have also used basic.mp3 from:
http://iceandfire1.tripod.com/apple1site/id2.html
The resulting basic.txt is identical, except two bytes to the basic.txt generated from the wav file from thread above.

I would like to do some more testing of the program. So if anyone have some more wavs or mp3s of Apple I casette software I could try out it would be great.

When I get to the point where the program works somewhat reliable I will post the source and the resulting files.

/Max

Offline
Last seen: 16 years 7 months ago
Joined: Feb 1 2006 - 21:54
Posts: 6
Very interesting. I used the

Very interesting. I used the serial interface to get those programs into the computer so it could write them out to a wave file via the tape interface.

Now a program that could do the opposite, input a text file and get out the audio would be very useful to people without serial interface.

Offline
Last seen: 14 years 5 months ago
Joined: Nov 19 2005 - 04:23
Posts: 5
I would have guessed that mor

I would have guessed that more people don't have the tape interface so the program to convert casette files in wav or mp3 format to hex files would be more usefull.

It wouldn't be that hard to write a program that does the opposite, I might give that a try next.

/Max

Offline
Last seen: 2 months 2 weeks ago
Joined: Dec 20 2003 - 10:38
Posts: 249
Interesting. The 2 byte diffe

Interesting. The 2 byte difference may be in the wav file. There is a chance that there is data corruption and the data may not be recoverable. I would run large tests with fresh recordings first, then come back to the old wav files and try those out after. Good job, can't wait to try it out. A good tool to have.

Vince

iceandfire's picture
Offline
Last seen: 8 years 8 months ago
Joined: Dec 20 2003 - 10:38
Posts: 67
BASIC wav file

I have had others tell me that the posting I made on my web-site had an error, but I had no way to check it. I'm glad you have found the mistake. The file was generated from an old tape I found from my Apple-I days. I'm interested in how you have decoded the wav files to create a hex dump. Keep us posted.
Larry

Offline
Last seen: 14 years 5 months ago
Joined: Nov 19 2005 - 04:23
Posts: 5
I finally getting somwehere w

I finally getting somwehere with the mp3 files downloaded from Larry's site.

I've converted black jack, you can download it from http://brante.dyndns.org/apple1 if you would like to try it out.

I've tested it with the Pom1 emulator with the basic from the waw in the thread linked above and it seems to work OK. I'll test with the Replica as well as soon I get the time.

I'll post the source for the conversion program soon, it's a bit ugly and I want to clean it up just a bit before releasing it into the wild.

/Max

Offline
Last seen: 14 years 5 months ago
Joined: Nov 19 2005 - 04:23
Posts: 5
I did promise I would post th

I did promise I would post the program when it was cleaned up. I haven't had much time to work on it but anyway, here it is, still a bit ugly but at least it is working with the wav and mp3 files I have. It's more like a proof of concept than a finished utility so don't expect it to work flawlessly.

Download a1t.tar.gz from:
http://brante.dyndns.org/apple1

Unpack it and compile by running make. It's tested on OS X (you need to have XCode installed) and Linux. It's a simple command line utility, no fancy GUI or anything.

Short instruction:

1. Get a wav or mp3 of a apple I tape.

2. Convert the file to a dat file using sox, get it from http://sox.sourceforge.net. To be able to convert mp3s to dat using sox you need to have libmad installed before building sox.

3. Run a1t to convert the file to hex. (run a1t without parameters for info on how to enter parameters).

4. Load the file into your replica I (or real Apple I) using the serial interface.

You might want to edit the audio files in some audio editor to make them convert better. I have used Audacity on my Mac to make the waveform more square, just amplify the hell out of the file and then normalize it. You might also want to remove some noise in the beginning of the file.

A haven't had a great number of files to test with, just the ones mentioned above, so you might have problems converting other files.

Also it would be great if anyone had some more audio file to test with.

/Max

Log in or register to post comments