py2shpss.samprate

Module Contents

Functions

SampRate2FFTSize(→ Tuple[int, int])

Find an appropriate FFT size.

py2shpss.samprate.SampRate2FFTSize(sr: int) Tuple[int, int][source]

Find an appropriate FFT size. Find numbers 2^n (0 < n), which are close to int(sr * factor) factor = 0.4 and 0.04.

Parameters:

sr (int) – sampling rate

Returns:

FFT_short and FFT_long

Return type:

(int, int)