Example #1
1
    def __init__(self):
        self.canvasscaledspectrogram = CanvasScaledSpectrogram()
        self.T = 0.
        self.dT = 1.

        self.jitter_s = 0.

        self.last_data_time = 0.

        self.isPlaying = True

        self.sfft_rate_frac = Fraction(1, 1)
        self.frequency_resampler = Frequency_Resampler()
        self.resampler = Online_Linear_2D_resampler()

        self.timer = QtCore.QElapsedTimer()
        self.timer.start()

        self.last_time = 0.
Example #2
0
    def __init__(self, logger, audiobackend):
        Qwt.QwtPlotItem.__init__(self)
        self.canvasscaledspectrogram = CanvasScaledSpectrogram(logger)
        self.T = 0.
        self.dT = 1.
        self.audiobackend = audiobackend
        #self.previous_time = self.audiobackend.get_stream_time()
        self.offset = 0  #self.audiobackend.get_stream_time()/self.dT

        self.sfft_rate_frac = Fraction(1, 1)
        self.frequency_resampler = Frequency_Resampler()
        self.resampler = Online_Linear_2D_resampler()
Example #3
0
 def __init__(self, logger):
     Qwt.QwtPlotItem.__init__(self)
     self.canvasscaledspectrogram = CanvasScaledSpectrogram(logger)