- This topic has 3 replies, 3 voices, and was last updated 27 August 2024 at 9:25 am by .
-
Topic
-
Hello, I thought I could as well make a post here. I have restored a NewBrain to working order and made a cable for the cassette tape connector. I uses the two plugs from a broken headphone with microphone) and made the connector with a 6 pin DuPont socket. I use a digital voice recorder (from Amazon) that can record (using line-input) and play WAV files.
This worked for small type-in BASIC programs, only problem was dat the recorder WAV sound was not loud enough so I had to amplify it (a lot) using Audicity on my laptop. But the NewBrain was able to load the file when played back on the voice recorder (played with maximum volume).
But I did not want to type in lots of BASIC, so I wanted to use the programs available in the emulator. These seemed to have a special binary format that maybe could be converted to WAV files.
I found a Python program on github (gylles38 / newbrain-bin-wav / beepgenerator.py) that enabled me to convert the emulator BASIC tape files to WAV files. With some small changes in that code I was able to load even the larger BASIC files succesfully on the physical NewBrain using a digital voice-recorder that can play WAV files. It seems to work for most of the files, it failed on just a few (with err 132 checksum error).
I also found that in the emulator I can save typed-in BASIC files from the emulator to the tape folder, and then convert these to WAV and load on the physical NewBrain.
Because it is possible in the emulator to save BASIC listings to the PrintDevice (a file) it is also possible to then read that listing back in using “Import From TextFile”. This is very slow and not very robust (and the keyboard must not be set to “English Keyboard”). But it does work when the text file is prepared well (no special characters and no wrapped lines).
So all in all I now have a nice collection of usable WAV files of BASIC programs that work on my physical (unexpanded) NewBrain.
- You must be logged in to reply to this topic.