real time /dev/audio 3-D spectrum analyser for PI

Christopher Hull hull at midnight.uvm.edu
Tue Jun 12 03:49:38 AEST 1990


I have been informed that the shar file I posted contains
lines longer than 80 columns which may be truncated.  If any one
else has had this problem I can mail a uunecoded version.

The makefile needs to have -lmpc added to the LIBS macro. 

Here the full version of the lines that may have been truncated.

--line 77 fft4.c 
*freqdist++ =
	sqrt (timedata[r] * timedata[r] + imaginary[r] * imaginary[r]);

--line 119 fft4.c
for (rp += k, ip += k, loop2 = k; loop2 < l; loop2++, rp++, ip++) /* 8 */

--line 128 freq3d.c
sprintf (virtualtimestr, "Virtual: %.2f", ((running_t - TMIN) / (TMAX - TMIN)

--line 191 freq3d.c
cmov (loop * (TMAX - TMIN) / 8 - TMAX, -80.0 * (numpoints / FFTSIZE), 0.0);

--line 484 freq3d.c 
fprintf (stderr,
  "Usage: %s [-a audiofile] [-h highfreq] [-l lowfreq] [-n noisefile]\n",
  argv[0]), exit (1);



Steve Chappelow
Christopher Hull                        EMBA-CF Univserity of Vermont
---------------------------------------------------------------------
hull at uvm.edu                            swc at uvm.edu



More information about the Comp.sys.sgi mailing list