.\" @(#)play.6 1.2 90/02/15 SMI;
.TH TYP2YAM 1 "10 January 1990"
.SH NAME
typ2yam \- convert TX16W samples from Typhoon to Yamaha OS format
.SH SYNOPSIS
.B typ2yam 
[
.BI \-s " loopstart"
] [
.BI \-e " loopend"
] [
.BI \-r " rate"
] [
.B \-l
] [
.B \-n
] [
.B \-f
] [
.B \-v
] 
.IR ifile 
.IR ofileL 
[
.IR ofileR 
]
.SH AVAILABILITY
.LP
Available from the TX16W ftp archive at ftp://ftp.t0.or.at/pub/sound/tx16w
.SH DESCRIPTION
.LP
.B typ2yam
converts Typhoon compressed sample files (AIFF-C with DWVW compression) to the dirty old Yamaha OS format.
.SH OPTIONS
A number of options allow for overriding the information given in the
source file.
.TP 10
.BI \-s " loopstart"
Specify another loop start point for this wave.
.TP
.BI \-e " loopend"
Specify another loop end point for this wave.
.TP
.BI \-r " rate"
Specify another sampling rate for this wave.
.TP
.B \-l
Turn looping on.
.TP
.B \-n
Turn looping off.
.TP
.B \-f
Fill output wave file with zeros up til the next 256-byte block
(The TX16W code for sox claims that the unit "seems to like this").
.TP
.B \-v
Verbose.
Print information contained in the typhoon sample to the standard error.
.TP
.BI " ifile"
or, alternatively
.TP
.BI \-i "ifile"
The Typhoon format input file. Default is stdin.
.TP
.BI "ofileL ofileR"
or, alternatively
.TP
.BI \-o " ofileL " \-o " ofileR"
The Yamaha format output files, default is stdout.
.SH BUGS
Not having Typhoon in the first place is the biggest bug :-)
.LP
It seems Typhoon can save samples in any sample rate, and do the resampling
in realtime/at loadtime. To accurately convert samples the program should
do a similar resampling. It doesn't, it just picks the nearest sample rate.
Nor does it complain, but you can spot the sampling rate using the \-v option,
and consider sample rate changes when setting the Original Key value, and
fine tune it afterwards.
.LP
Verbose mode reports most of the info it can find in the AIFF-C format.
Not all this info is necessarily useful, and the format of the info
is perhaps not too user-friendly.
.LP
When enforcing other loop points, the reporting does not show this.
However, when enforcing loop/no-loop/rate change this does show up,
but no mention is made that these are enforced changes.

Otherwise, report bugs to stein.kulseth@fou.telenor.no
.SH WARNINGS
.LP
This program is definitely furnished on an 
.I as is
basis. 
