SIGCLEAR Program reference

sgstft

short time Fourier transform

Package: sigclear-dsp · Version: 1.2.0-2 Download JSON

Description

Convert sampled vectors to overlapping windowed spectra, or reconstruct
vectors from short-time spectra. Window length and step determine time and
frequency resolution; preserve the transform metadata when processing spectra
for later inversion.

Synopsis

sgstft <stdin >stdout out.mode=realimag inv=false type=rect rect.win=10 gabor.sigma=1.0

Parameters

sgstft parameters
ParameterTypeDefaultDescription
in ifile stdin input data, only act on the first vector
out ofile stdout output data
out.mode enum realimag forward output as real and imaginary, amplitude and phase, or magnitude
Allowed: realimag ampphase magnitude
inv bool false perform an inverse or forward transform
type enum rect use a rectangular-window or Gabor transform
Allowed: rect gabor
rect.win int 10 rectangular window size in samples
gabor.sigma float 1 Gaussian scale for the Gabor transform

Input and output

Input

input data, only act on the first vector

Output

output data