This is a version of Praat which has an extra function added: Spectrogram2, which produces
a file: spectrum.dat  which can be loaded by espeakedit.

Pratt compile:

Praat source is available from  http://www.praat.org/

Need package: lesstif2 to run praat and package: lesstif2-dev to compile praat.
(or alternatively libmotif3 and libmotif-dev).


fon/PraatStrings.h
	PraatString_ManualQueryIntro()  gives error when called from fon/manual-Fon.c


Modifications to add  "Sound_to_Spectrogram2" function and button.
This analyses speech WAV file and produces a file: "spectrum.dat"
which can be loaded in  espeakedit  to show a sequence of time-slice
spectra.



add file:   fon/Sound_JSD.c

and
add to fon/makefile:  Sound_JSD.o

add Sound_JSD.o to fon/makefile


In file:   fon/praat_Sound_Init.c,


after
	FORM (Sound_to_Spectrogram....
	...
	END
add

	FORM (Sound_to_Spectrogram2, "From Sound to Spectrogram", "Sound: To Spectrogram2...")
		POSITIVE ("Minimum pitch (Hz)", "75")
		POSITIVE ("Maximum pitch (Hz)", "300")
		POSITIVE ("Maximum frequency (Hz)", "9500")
		POSITIVE ("Frequency step (Hz)", "40")
		POSITIVE ("Maximum formant (Hz)", "5000")
		REAL ("Adjust (min freq)", "2500")
		OK
	DO
		EVERY_TO (Sound_to_Spectrogram2 (OBJECT, GET_REAL ("Minimum pitch"), GET_REAL ("Maximum pitch"),
			GET_REAL ("Maximum frequency"),
			GET_REAL ("Frequency step"),
			GET_REAL ("Maximum formant"),
			GET_REAL ("Adjust")))
	END


after
	praat_addAction1 (classSound, 0, "To Spectrogram...", 0, 1, DO_Sound_to_Spectrogram);
add
	praat_addAction1 (classSound, 0, "To Spectrogram2...", 0, 1, DO_Sound_to_Spectrogram2);

