Difference between revisions of "Converting a tape-image into a audio file"

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search
(added credit to Kevin Thacker)
(Method: - formatting playtzx commandline)
Line 13: Line 13:
 
The command line required is:
 
The command line required is:
  
 +
<pre>
 
playtzx /voc /freq <frequency> <cdt/tzx filename> <voc filename>
 
playtzx /voc /freq <frequency> <cdt/tzx filename> <voc filename>
 +
</pre>
  
 
replacing:
 
replacing:
Line 25: Line 27:
 
e.g.
 
e.g.
  
 +
<pre>
 
playtzx /voc /freq 22050 zub.cdt zub.voc
 
playtzx /voc /freq 22050 zub.cdt zub.voc
 +
</pre>
  
 
This will convert the tape image "zub.cdt" into the VOC sample file "zub.voc".
 
This will convert the tape image "zub.cdt" into the VOC sample file "zub.voc".
  
 
(The VOC sample file can be converted into a WAV (PC) or AIFF (Mac) using a sample conversion program such as Goldwave.)
 
(The VOC sample file can be converted into a WAV (PC) or AIFF (Mac) using a sample conversion program such as Goldwave.)

Revision as of 16:30, 17 January 2009

This article originally came from Kevin Thackers' archive at http://www.cpctech.org.uk.

Introduction

A tape image is a file to be used with Amstrad CPC emulators. Most files have the file extension ".cdt", but some may also have the file extension ".tzx". The file format is defined using the "TZX" file specification. The file format describes the audio signal from a real Amstrad CPC cassette in a more compact form.

A tape image can be used on a real CPC if it is converted back into a audio signal. This document describes the method to do this.

Method

The "playtzx" command-line utility can be used to convert a tape-image back into a audio file.

The command line required is:

playtzx /voc /freq <frequency> <cdt/tzx filename> <voc filename>

replacing:

  • "<frequency>" with the frequency of the output audio sample.
  • If you are transfering the audio file to a audio CD, then it is best to use a frequency of 44010Hz.
  • If you are playing the audio file through the sound card of your computer, then you can use a frequency of 22050Hz or 44010Hz.
  • "<cdt/tzx filename>" with the filename of the CDT or TZX file.
  • "<voc filename>" with the name of the output sample file.

e.g.

playtzx /voc /freq 22050 zub.cdt zub.voc

This will convert the tape image "zub.cdt" into the VOC sample file "zub.voc".

(The VOC sample file can be converted into a WAV (PC) or AIFF (Mac) using a sample conversion program such as Goldwave.)