FOF routine by Perry R. Cook Stanford CCRMA 1991. Note: These are not FOF's. They are only cosine-windowed sinusoids, which are used for the development in class. Real FOF's are more refined and have a better spectral shape. The function used here still can provide quite a strong vowel percept. To use the program, just type fof numSamples f0 f1 f2 f3 gain1 gain2 gain3 soundfile.snd where numSamples is the total number of samples generated f0 is the fundamental frequency in Hz. f1 is the first formant frequency in Hz. f2 is the second formant frequency in Hz. f3 is the third formant frequency in Hz. gain1 is the peak amplitude of the first formant function (5000 is good) gain2 is the peak amplitude of the second formant function gain3 is the peak amplitude of the third formant function the total of gain1+gain2+gain3 should not exceed 32000 Example script files which generate interesting sounds are: makeFormants which makes a series of single resonances makeEeeAhh which builds the individual formants of the sounds eee and ahh makeVowels which makes a series of vowels