Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/c/h/chirp-1.2.2/chirp/common/signal.py   chirp(Download)
    def linspect(self, signal, Fs, nfft=None):
        """ Calculate the spectrogram on a linear power scale.  """
        import numpy as nx
        from libtfr import stft, tfr_spec, tgrid
        shift = int(self.options['window_shift'] * Fs)
            except Exception, e:
                raise Error("invalid window function {}: {}".format(self.options['spec_method'], e))
            S = stft(signal, w, shift, nfft)
        t = tgrid(S, Fs, shift)   # [:S.shape[1]]
        extent = (0, t[-1], 0, Fs / 2)