wav2prg(1)

NAME
wav2prg - convert Commodore 64 tapes to PC emulator files

SYNOPSIS
wav2prg -h|-v

wav2prg [-i] [-p|-d|-t file[.t64] [-n name]] [input .WAV file]

DESCRIPTION
wav2prg converts Commodore 64 tape files (in Turbo Tape 64 format), either directly from the sound card (by default) or sampled into a .WAV or a .TAP file (if a The defaultformat is .PRG. When converting to .PRG or .P00 files, wav2prg creates one .PRG or .P00 file for each Turbo Tape file it detects. When converting to a .T64 file, wav2prg will convert all the files into a single .T64 file.

If you want to convert to a .T64 file, you will need to specify the name of the .T64 file on the command line. Optionally, you can also specify the tape image's name with the -n option: if you don't, the default "GENERATED BY WAV2PRG" will be used. Note that wav2prg cannot append files to an existing .T64 file: if the filename you specify already exists, it will be overwritten.

OPTIONS

-a  Enters adjust mode. In this mode, wav2prg will read the data from the sound card, and will check if there are valid Turbo Tape 64 bits. This option is useful for finding the right output volume from the tape player. You can use the -i option along with -a

-d  Obsolete, maintained for backwards compatibility only

-h  Show a help message and exit successfully.

-i  Tell wav2prg that the .WAV file or the sound coming from the sound card has an inverted waveform. Some soundcards invert the signal when sampling, i.e. they turn positive impulses into negative ones and vice versa. If the .WAV file or the sound was generated with a such soundcard, wav2prg must be run with the -i option in order to detect the files. If you get no results without the -i option, try enabling it. This option is ignored when converting from .TAP.

-n name
    If used along with -t , this sets the internal T64 name to name

-p  Convert to .P00 files. This option is obviously incompatible with -t

-t file[.t64]
    Convert to a .T64 file called file.t64. This option is obviously incompatible with -p

-v  Show version and copyright info and exit successfully

RULES FOR CHOOSING FILE NAMES
When converting to .P00, the C64 name will be shrunk to 8 characters according to the PC64 rules. The extension .p00 will be added. If the file does not exist, it will be created. It if exists, the extension will be replaced with .p01 etc. If even the file with extension .p99 exists, the file will be skipped.

When converting to .PRG, the C64 name with .prg appended at the end will be tried first. If it does not exist, it will be created. If it does, the C64 name with _1.prg will be tried etc. If even the file with _99.prg exists, the file will be skipped.

AUTHORS
Fabrizio Gennari (fabrizio.ge@tiscalinet.it)

Janne Veli Kujala (jvkujala@cc.jyu.fi)

REFERENCES
http://www.fairlight.to/docs/text/formats.zip

    Peter Schepers' guide to Commodore 64 file formats

ftp://ftp.funet.fi/pub/cbm/crossplatform/emulators/pc64/pc64e121.zip

    The file T64TOP00.CPP contains the code for reducing a file name, according to the PC64 rules.

SEE ALSO
prg2wav (1)