Tape conversion.

discussion of games, software, hardware & emulators relating to the Acorn Atom and Acorn System machines.
Post Reply
Prime
Posts: 2794
Joined: Sun May 31, 2009 11:52 pm
Contact:

Tape conversion.

Post by Prime » Mon Dec 03, 2012 7:29 pm

Hi All,

I'm trying to convert an Atom tape to be used in an emulator. At Kees' suggestion I'm trying to first convert the .wav to a .csw however the only copies of csw.exe that I can find are does protected mode executables anw wont run on 64 bit windows ?

Does anyone know where I can get a version that is compatible, or if the source is available so I can try building it myself.

I tried MakeUEFAm.exe and whilst I can get it to accept the wav the uef file it produces only has the header which is no use to anyone !

Cheers.

Phill.

User avatar
oss003
Posts: 3109
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Tape conversion.

Post by oss003 » Mon Dec 03, 2012 8:38 pm

Hi Phill,

I use CSW viewer release 38 and MakeUEF v2.3.
Fraser Ross was very helpfull with the conversion, maybe you can ask him for a Linux or 64-bit version: fraserross@f2s.com

Another possibility is to run it DOSBOX: http://www.dosbox.com/download.php?main=1

Some filters are needed for MakeUEF: Makeuef -y 1 300 -z 1 atm -i filename.csw -w 0 180

There's an older Linux version at: ftp://ftp.worldofspectrum.org/pub/sincl ... csw130.tgz

In Atomulator, sometimes the CSW files are loading and sometimes the UEF files. It's no 100% guarantee all files are working ok.

Greetings
Kees

Prime
Posts: 2794
Joined: Sun May 31, 2009 11:52 pm
Contact:

Re: Tape conversion.

Post by Prime » Mon Dec 03, 2012 9:26 pm

oss003 wrote:Hi Phill,

I use CSW viewer release 38 and MakeUEF v2.3.
Fraser Ross was very helpfull with the conversion, maybe you can ask him for a Linux or 64-bit version: fraserross@f2s.com
Right might try dropping him an email.
CSW viewer works, and I can point it at a wav file, but when it trys to convert it I get an error 126, which it seems is to do with not having the correct binary version so I guess it's trying to run csw.exe from it's exec directory.
Another possibility is to run it DOSBOX: http://www.dosbox.com/download.php?main=1
I have dosbox, but it complains about needing cwsdmpi, which IIRC is a dos extender guess I'll have to go see if I can find it....
Some filters are needed for MakeUEF: Makeuef -y 1 300 -z 1 atm -i filename.csw -w 0 180
Right I'll bear that in mind if I get to the point where I have a csw :)

Cheers.

Phill.

User avatar
oss003
Posts: 3109
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Tape conversion.

Post by oss003 » Tue Dec 04, 2012 7:36 am

Prime wrote:I have dosbox, but it complains about needing cwsdmpi, which IIRC is a dos extender guess I'll have to go see if I can find it....
http://vogons.zetafleet.com/viewtopic.php?t=3863
http://www.download-central.ws/System/CWSDPMI.EXE/

Or install the newest MS DOS!! :-D

Greetings
Kees

Prime
Posts: 2794
Joined: Sun May 31, 2009 11:52 pm
Contact:

Re: Tape conversion.

Post by Prime » Tue Dec 04, 2012 9:52 am

oss003 wrote:
Prime wrote:I have dosbox, but it complains about needing cwsdmpi, which IIRC is a dos extender guess I'll have to go see if I can find it....
http://vogons.zetafleet.com/viewtopic.php?t=3863
http://www.download-central.ws/System/CWSDPMI.EXE/
Thanks, I eventually found it on the spectrum site I got cswviewer from.
Or install the newest MS DOS!! :-D
Wellll, I have an install CD for PC-DOS 2000, which is IBM DOS 7.01 I do actually have that installed on a machine, however it's buried under several others under a table in my computer room....Arcadian can atest to this he was at my place last week :)

I did get csw.exe working under dosbox, wrote a little program that dumped the parameters that cswviewer was calling it with and fed them to it in dosbox something like :

csw -FL1000 -FH3600 file.wav

However if I feed it a 16bit wav it complains that it does not currently handle 16bit wavs and if I feed it an 8 bit wav it tells me "FATAL ERROR: Wrong file type" :(

Cheers.

Phill.

User avatar
oss003
Posts: 3109
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Tape conversion.

Post by oss003 » Tue Dec 04, 2012 10:18 am

Hi Phill,

I think the WAV has to be a mono 8-bit 44 kHz WAV file.
Please try the attached file.

Greetings
Kees
Attachments
CHYPER.zip
(207.82 KiB) Downloaded 79 times

Prime
Posts: 2794
Joined: Sun May 31, 2009 11:52 pm
Contact:

Re: Tape conversion.

Post by Prime » Tue Dec 04, 2012 12:11 pm

Yep 8KHz, mono 8 bit, and critically must not have any attached metadata ! I was exporting from Audacity with the metadata set, this was what was screwing up CSW :(

Your CHYPER.wav converted without problems.

so now time to try converting to a UEF :)

Cheers.

Phill.

User avatar
oss003
Posts: 3109
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Tape conversion.

Post by oss003 » Tue Dec 04, 2012 12:21 pm

Prime wrote:so now time to try converting to a UEF :)
Atomulator can read CSW files.

Greetings
Kees

Prime
Posts: 2794
Joined: Sun May 31, 2009 11:52 pm
Contact:

Re: Tape conversion.

Post by Prime » Tue Dec 04, 2012 1:30 pm

oss003 wrote:
Prime wrote:so now time to try converting to a UEF :)
Atomulator can read CSW files.
Yep tried that, however if you try and *CAT the tape it never finds anything, either from the emulated atom, or from tape->show tape catalog.

Actually that's true with chyper.csw as well.

Tape speed is set to normal.

Anyway this is what I'm doing to attempt the conversion :

loading sampled wav into audacity and saving it as 8Ks/s 8 bit wav, and stripping metadata.

going into dosbox and running :

CSW -FL1000 -FH3600 CES8.WAV

This produces CES8.CSW

Running MakeUEF on this :

Makeuef -y 1 300 -z 1 atm -i CES8.CSW -w 0 180

Neither the .CSW or the .UEF seem to want to work with Atomulator, hopefully I have not broken tape support :(

I've uploaded the raw sampled WAV here :

http://penguin.stats.warwick.ac.uk/~sts ... preter.wav

I can't see what I'm doing wrong :(

Cheers.

Phill.

Prime
Posts: 2794
Joined: Sun May 31, 2009 11:52 pm
Contact:

Re: Tape conversion.

Post by Prime » Tue Dec 04, 2012 3:57 pm

Oddly MESS can read wav files directly and displayed a list of blocks when I did a *CAT which agreed with what I expected which indicates to me that the WAV file is at least a good copy of the tape.

I'll try when I get home to load the tape into MESS, if i can load it from tape and then save it to a disk image that would be good.

Downloaded the latest messui and was able to load the wav directly into mess, that seemed to work, will see if I can now save it to disk.

Cheers.

Phill.

User avatar
oss003
Posts: 3109
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Tape conversion.

Post by oss003 » Tue Dec 04, 2012 5:33 pm

Hi Phill,

Yes, MESS can read WAV's directly.

The problem with your WAV file was that it was 16-bit instead of 8-bit.

Your file:
cesil1.PNG
cesil1.PNG (11.22 KiB) Viewed 1118 times
After conversion:
cesil2.PNG
cesil2.PNG (11.01 KiB) Viewed 1118 times
Both files (CSW and UEF) are loadable in Atomulator now.

Another option is to use Charlie's MESS version 1.34 IIRC with AtoMMC support.

PS Type ?#2917=32 to switch listing on.

Greetings
Kees
Attachments
Cesil.zip
(131.13 KiB) Downloaded 73 times

Prime
Posts: 2794
Joined: Sun May 31, 2009 11:52 pm
Contact:

Re: Tape conversion.

Post by Prime » Tue Dec 04, 2012 9:54 pm

oss003 wrote:Hi Phill,

Yes, MESS can read WAV's directly.

The problem with your WAV file was that it was 16-bit instead of 8-bit.
Humm I re-saved it as 8 bit and was having problems with that also. The converted wav file is at work I'll upload it tomorrow, perhaps you could have a look and see what the difference is :)
PS Type ?#2917=32 to switch listing on.
:) I noticed that, and did the equivilent in the MESS debugger :)

Cheers.

Phill.

Prime
Posts: 2794
Joined: Sun May 31, 2009 11:52 pm
Contact:

Re: Tape conversion.

Post by Prime » Wed Dec 05, 2012 10:32 am

Ok this is the 8 bit wav that I was using.....

http://penguin.stats.warwick.ac.uk/~sts ... CESIL8.WAV

Hummm, it seems that Atomulator's "show tape catalogue" is not working, so maybe the conversion was working after all.....

Cheers.

Phill.

User avatar
oss003
Posts: 3109
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Tape conversion.

Post by oss003 » Wed Dec 05, 2012 11:59 am

Hi Phill,

your file was 8 kHz 8-bit mono instead of 44 kHz 8-bit mono!

Greetings
Kees

User avatar
oss003
Posts: 3109
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Tape conversion.

Post by oss003 » Wed Dec 05, 2012 1:09 pm

Hi Phill,

you can check the bytes in the WAV file:

00-21 -> Not interesting
22-23 -> Mono=1 Stereo=2
24-27 -> Samplerate
34-35 -> Bits per sample

I use Nero Wave editor for converting.

Greetings
Kees

Prime
Posts: 2794
Joined: Sun May 31, 2009 11:52 pm
Contact:

Re: Tape conversion.

Post by Prime » Wed Dec 05, 2012 2:57 pm

oss003 wrote:Hi Phill,

your file was 8 kHz 8-bit mono instead of 44 kHz 8-bit mono!
Yep that's it, got it converted now just to make sure that I was now doing it right and the UEF loads into Atomulator.

The odd thing is I had tried converting an 8bit 44K sample, but that was not until after I sussed the thing with the metadata.

Anyway it's working now, thanks for being patient with me :)

Cheers.

Phill.

User avatar
oss003
Posts: 3109
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Tape conversion.

Post by oss003 » Wed Dec 05, 2012 3:07 pm

Prime wrote:Anyway it's working now, thanks for being patient with me :)
No problemo .... :)

Kees

Post Reply