specdisp

specdisp — Displays the magnitude values of the spectrum.

Description

Displays the magnitude values of the spectrum.

Syntax

specdisp wsig, iprd [, iwtflg]

Initialization

iprd -- the period, in seconds, of each new display.

iwtflg (optional, default=0) -- wait flag. If non-zero, hold each display until released by the user. The default value is 0 (no wait).

Performance

wsig -- the input spectrum.

Displays the magnitude values of spectrum wsig every iprd seconds (rounded to some integral number of wsig's originating iprd).

Examples

  ksum     specsum   wsig, 1              ; sum the spec bins, and ksmooth
           if ksum < 2000 kgoto zero      ; if sufficient amplitude
  koct     specptrk  wsig                 ;    pitch-track the signal
           kgoto     contin
zero: 
  koct     =         0                    ; else output zero
contin:

See Also

specsum