Lines Matching refs:rate
17 rate = 48000
23 samples = length_in_secs * rate
25 x = numpy.linspace(0.0, (samples - 1) * 1.0 / rate, samples)
28 results = audio_analysis.spectral_analysis(y, rate)
60 rate = 48000
62 samples = length_in_secs * rate
66 results = audio_analysis.spectral_analysis(noise, rate)
91 self.rate = 48000
94 self.samples = length_in_secs * self.rate
96 0.0, (self.samples - 1) * 1.0 / self.rate, self.samples)
115 self.y = numpy.insert(self.y, int(self.anomaly_start_secs * self.rate),
124 anomaly_start_index = self.anomaly_start_secs * self.rate
125 anomaly_append_index = anomaly_append_secs * self.rate
137 [amplitude] * int(self.anomaly_duration_secs * self.rate))
143 self.y, self.rate, self.freq, self.block_size)
166 self.anomaly_start_secs - float(self.block_size) / self.rate,