Newsgroups: comp.speech
Path: pavo.csi.cam.ac.uk!pipex!uunet!stanford.edu!agate!boulder!spot.Colorado.EDU!gordon
From: gordon@spot.Colorado.EDU (GORDON ALLEN R)
Subject: Re: Klatt SYnthesizer (How to work)
Message-ID: <gordon.726940295@spot.Colorado.EDU>
Sender: news@colorado.edu (The Daily Planet)
Nntp-Posting-Host: spot.colorado.edu
Organization: University of Colorado, Boulder
References: <1993Jan8.024840.12894@cucs5.cs.cuhk.hk> <gordon.726507433@spot.Colorado.EDU> <1993Jan11.013217.8139@cucs5.cs.cuhk.hk> <gordon.726766695@spot.Colorado.EDU> <1993Jan12.084959.7515@cucs5.cs.cuhk.hk>
Date: 13 Jan 93 15:51:35 GMT
Lines: 43

yu030@cs.cuhk.hk (Yu Wai Leung) writes:

>Hello:

>     Looking from "klatt.c", I've discovered that the marco "audio_s2u"
>is defined as:

>     #define audio_s2u(x) ((x >> 8) ^ (0x80))

>     Obviously, this definition is WRONG! You can try to eliminate this
>definition and use the "original" macro definition in the include file
><multimedia/ulaw2linear.h> instead.

>Cheers!

>Yu Wai-Leung
>Dept of CS,
>Chinese University of Hong Kong
>e-mail: yu030@cs.cuhk.hk


I don't find this macro anywhere in any of the .c files.  in the ulaw2linear.h
file is the macro:

	#define audio_s2u(X)    (_linear2ulaw[((short)(X)) >> 3])


Perhaps we have difference versions?   The version I have starts with 

/*      K L A T T  . C                                 */
/*      program to drive Klatt's PARWAVE routine       */
/*      adapted to SPARCSTATION.                       */
/*      10 April 1991                                  */
/*                                                     */
/*      Aaron Smith                                    */
/*      Brown University                               */
/*      Adapted from a version by                      */
/*      L. Goldstein, S. Levy                          */
-- 
Allen Gordon 		         *If the folly of but one of us was changed to*
Research Associate         	 *intelligence, and divided amongst a thousand*
gordon@spot.colorado.edu   	 *toads, each would be more intelligent than  *
				 *Aristotle				      *
