Click here to Skip to main content
11,580,000 members (75,923 online)

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralSpooky Google Pin
_Maxxx_13-Nov-12 13:26
member_Maxxx_13-Nov-12 13:26 
GeneralRe: Spooky Google Pin
GeekforChrist13-Nov-12 14:30
memberGeekforChrist13-Nov-12 14:30 
JokeRe: Spooky Google Pin
Vivic13-Nov-12 15:56
memberVivic13-Nov-12 15:56 
GeneralRe: Spooky Google Pin
_Maxxx_13-Nov-12 17:28
member_Maxxx_13-Nov-12 17:28 
GeneralRe: Spooky Google Pin
Dalek Dave13-Nov-12 21:07
memberDalek Dave13-Nov-12 21:07 
GeneralRe: Spooky Google Pin
_Maxxx_13-Nov-12 21:38
member_Maxxx_13-Nov-12 21:38 
GeneralI wonder if KY Jelly was involved in the rescue... Pin
Alan Burkhart13-Nov-12 12:49
memberAlan Burkhart13-Nov-12 12:49 
GeneralRe: I wonder if KY Jelly was involved in the rescue... Pin
JimmyRopes13-Nov-12 13:02
memberJimmyRopes13-Nov-12 13:02 
GeneralRe: I wonder if KY Jelly was involved in the rescue... Pin
Mike Hankey13-Nov-12 15:03
memberMike Hankey13-Nov-12 15:03 
GeneralRe: I wonder if KY Jelly was involved in the rescue... Pin
lewax0013-Nov-12 15:07
memberlewax0013-Nov-12 15:07 
GeneralRe: I wonder if KY Jelly was involved in the rescue... Pin
wizardzz13-Nov-12 15:39
memberwizardzz13-Nov-12 15:39 
GeneralRe: I wonder if KY Jelly was involved in the rescue... Pin
Michael Martin 13-Nov-12 20:14
member Michael Martin 13-Nov-12 20:14 
GeneralRe: I wonder if KY Jelly was involved in the rescue... Pin
wizardzz14-Nov-12 3:53
memberwizardzz14-Nov-12 3:53 
GeneralSuccess! Pin
CDP180213-Nov-12 12:15
memberCDP180213-Nov-12 12:15 
10 years ago I wrote a C++ program to convert programs from my old computer to binary files on the PC. There were several old computers of that kind, so it came down to supporting three different kinds of formats. Unfortunately I had only information on two of them at the time. It did its job, but finding the correct settings turned out to be very hard for users who did not know all details of the tape format. Now it has been high time to keep my promise to write a better and more intelligent program.

Getting the data off the tapes is the easiest part: Hook up the tape recorder to the PC's sound card and sample them as WAV files. The raw samples usually don't look very good. They come from more than 30 year old tapes and analog tape recorders. This is why some filtering was in order. Even the old program did a good job at reconstructing the original digital signal with the help of some mathmatical magic.

Now the buffer should contain a sequence of longer or shorter high/low sequences, representing bits. Plus static at the beginning and the end and possible errors in the data. Simply counting the samples would not have worked.

In the old program the user had to figure out the minimum and maximum sampling settings for both ones and zeros. That involved a lot of trial and error until reliable settings were found, but then it usually worked for all tapes from that computer.

It was not easy and involved something resembling fuzzy logic, but the new program has just successfully converted a WAV recording from my old computer correctly at just the second try. It figured out the correct timing, automatically corrected the inverted signal and then correctly generated a 4096 byte binary file of the program. The second try was only needed to (still manually) set the filtering to a stronger setting. There was a small glitch in the middle of the data.

Now I must wait fot WAVs from other computers to test the other formats, but I think the concept works. Getting the binary files onto the old computers actually is very easy. The program can generate a new WAV file from the binaries, in any of the three formats of course. Save them to tape or play them directly to the computer and they will load.

This way we can even program conveniently on the PC. I Use Visual Studio, a special little C compiler and an emulator for testing. When I'm finished, I just create a WAV from the binary file and then can import and run it on the real thing.
GeneralRe: Success! Pin
GeekforChrist13-Nov-12 14:53
memberGeekforChrist13-Nov-12 14:53 
GeneralRe: Success! Pin
CDP180213-Nov-12 21:32
memberCDP180213-Nov-12 21:32 
GeneralRe: Success! Pin
Mike Hankey13-Nov-12 15:04
memberMike Hankey13-Nov-12 15:04 
GeneralRe: Success! Pin
CDP180213-Nov-12 21:21
memberCDP180213-Nov-12 21:21 
GeneralI work with nerds - Pin
bryce13-Nov-12 12:03
memberbryce13-Nov-12 12:03 
GeneralRe: I work with nerds - Pin
Kevin Marois13-Nov-12 12:19
memberKevin Marois13-Nov-12 12:19 
GeneralRe: I work with nerds - Pin
bryce13-Nov-12 12:44
memberbryce13-Nov-12 12:44 
GeneralRe: I work with nerds - Pin
devvvy13-Nov-12 13:57
memberdevvvy13-Nov-12 13:57 
GeneralRe: I work with nerds - Pin
_Damian S_13-Nov-12 12:42
member_Damian S_13-Nov-12 12:42 
GeneralRe: I work with nerds - Pin
bryce13-Nov-12 12:44
memberbryce13-Nov-12 12:44 
GeneralRe: I work with nerds - Pin
_Maxxx_13-Nov-12 13:16
member_Maxxx_13-Nov-12 13:16 
GeneralRe: I work with nerds - Pin
bryce13-Nov-12 14:30
memberbryce13-Nov-12 14:30 
GeneralRe: I work with nerds - Pin
_Maxxx_13-Nov-12 14:43
member_Maxxx_13-Nov-12 14:43 
GeneralRe: I work with nerds - Pin
wizardzz13-Nov-12 15:28
memberwizardzz13-Nov-12 15:28 
GeneralAMD looking for a buyer Pin
ed welch13-Nov-12 11:34
membered welch13-Nov-12 11:34 
GeneralRe: AMD looking for a buyer Pin
Clifford Nelson13-Nov-12 11:52
memberClifford Nelson13-Nov-12 11:52 
GeneralRe: AMD looking for a buyer Pin
John Simmons / outlaw programmer13-Nov-12 12:03
mvpJohn Simmons / outlaw programmer13-Nov-12 12:03 
GeneralRe: AMD looking for a buyer Pin
ledtech313-Nov-12 15:53
memberledtech313-Nov-12 15:53 
GeneralRe: AMD looking for a buyer Pin
Mike Marynowski15-Nov-12 20:14
memberMike Marynowski15-Nov-12 20:14 
GeneralRe: AMD looking for a buyer Pin
GeekforChrist13-Nov-12 14:41
memberGeekforChrist13-Nov-12 14:41 
GeneralRe: AMD looking for a buyer Pin
devvvy13-Nov-12 16:52
memberdevvvy13-Nov-12 16:52 
GeneralRe: AMD looking for a buyer Pin
_Maxxx_13-Nov-12 17:29
member_Maxxx_13-Nov-12 17:29 
GeneralRe: AMD looking for a buyer Pin
Michael Bergman13-Nov-12 17:57
memberMichael Bergman13-Nov-12 17:57 
GeneralRe: AMD looking for a buyer Pin
Dexterus13-Nov-12 22:46
memberDexterus13-Nov-12 22:46 
GeneralDifficult Projects Pin
David Knechtges13-Nov-12 10:58
memberDavid Knechtges13-Nov-12 10:58 
GeneralRe: Difficult Projects Pin
John Simmons / outlaw programmer13-Nov-12 11:41
mvpJohn Simmons / outlaw programmer13-Nov-12 11:41 
GeneralRe: Difficult Projects Pin
mark merrens13-Nov-12 11:59
membermark merrens13-Nov-12 11:59 
GeneralRe: Difficult Projects Pin
John Simmons / outlaw programmer13-Nov-12 12:01
mvpJohn Simmons / outlaw programmer13-Nov-12 12:01 
GeneralRe: Difficult Projects Pin
KP Lee15-Nov-12 17:09
memberKP Lee15-Nov-12 17:09 
GeneralRe: Difficult Projects Pin
BrainiacV15-Nov-12 5:09
memberBrainiacV15-Nov-12 5:09 
GeneralRe: Difficult Projects Pin
KP Lee15-Nov-12 17:18
memberKP Lee15-Nov-12 17:18 
GeneralRe: Difficult Projects Pin
BrainiacV16-Nov-12 3:00
memberBrainiacV16-Nov-12 3:00 
GeneralRe: Difficult Projects Pin
KP Lee16-Nov-12 9:10
memberKP Lee16-Nov-12 9:10 
GeneralRe: Difficult Projects Pin
BrainiacV16-Nov-12 9:38
memberBrainiacV16-Nov-12 9:38 
GeneralRe: Difficult Projects Pin
KP Lee16-Nov-12 10:45
memberKP Lee16-Nov-12 10:45 
GeneralRe: Difficult Projects Pin
BrainiacV16-Nov-12 11:10
memberBrainiacV16-Nov-12 11:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 6 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid