17

I have an audio file in WAV format, which supposedly comes from a cassette sound file. Moreover, it contains a BASIC program, but I don't know how to decode it. I have tried to convert the wav file to a tap file, but then I don't know how to convert it to a BASIC file or a text file and I have spent hours searching on the Internet.

If someone could help me I would really appreciate it.

Josemi
  • 271
  • 2
  • 6

2 Answers2

18

You need to use OpenMSX, and get the system ROMs for the machine in question. Then run OpenMSX, set the machine to the FS-A1WSX. There's a little menu button at the top left of the OpenMSX window. In there, set your tape to the WAV file. Then:

enter image description here

10 M$ = "E4E8O3G16G32R32G2G4R4O4C8D8E8F8G2G8F8E8F4E8D8E4D8C4"
20 PLAY M$+M$

The listing above is the content of the WAV you linked to, so to be honest you'd be quicker typing it back in.

scruss
  • 21,585
  • 1
  • 45
  • 113
Alan B
  • 4,235
  • 19
  • 30
8

The good news is the next few steps are easy.

Most (all?) of the MSX emulators include a "virtual tape" that can open a WAV file. openMSX does for sure. It's right in the instructions for the emulator.

I don't know enough about MSX to know if it stored programs as text or in tokenized format, but in either case, once it is loaded you can use the "virtual printer" to LIST the program to a text file and you're off to the races.

Maury Markowitz
  • 19,803
  • 1
  • 47
  • 138
  • I've installed the emulator, but how do I load the .wav file? – Josemi Nov 05 '19 at 22:07
  • 1
    I actually think openMSX might be in the minority in handling WAV files — CocoaMSX, which is a Mac-native version of BlueMSX doesn't, and neither does my emulator (but I'm lazy, so don't count that as a major data point). Which is a shame as I have absolutely no idea offhand how to set up openMSX as a real machine. C-BIOS, which it boots by default, can't read tapes. – Tommy Nov 06 '19 at 03:17
  • @Josemi Did you read the instructions for the emulator as the answerer suggested? – the busybee Nov 06 '19 at 07:24
  • @Josemi - read this part: https://openmsx.org/manual/user.html#tapewav – Maury Markowitz Nov 06 '19 at 15:48