BINK
This commit is contained in:
parent
6eedbc2c8b
commit
cab56a835f
@ -95,16 +95,16 @@ class FFTAnalyser(QtCore.QThread):
|
|||||||
if not data.size:
|
if not data.size:
|
||||||
return
|
return
|
||||||
|
|
||||||
for i, freq in enumerate(np.arange(0, 1, point_range), start=1):
|
# for i, freq in enumerate(np.arange(0, 1, point_range), start=1):
|
||||||
# for i, log_freq in enumerate(log_freqs):
|
for i, log_freq in enumerate(log_freqs):
|
||||||
# get the amps which are in between the frequency range
|
# get the amps which are in between the frequency range
|
||||||
amps = data[(freq - point_range < data[:, 0]) & (data[:, 0] < freq)]
|
# amps = data[(freq - point_range < data[:, 0]) & (data[:, 0] < freq)]
|
||||||
# amps = data[(log_freq - point_range < data[:, 0]) & (data[:, 0] < log_freq)]
|
amps = data[(log_freq - point_range < data[:, 0]) & (data[:, 0] < log_freq)]
|
||||||
if not amps.size:
|
if not amps.size:
|
||||||
point_samples.append(0)
|
point_samples.append(0)
|
||||||
else:
|
else:
|
||||||
point_samples.append(
|
point_samples.append(
|
||||||
amps.max()
|
amps[0][1].max() # BINK!!!!!!!!!!!!!
|
||||||
* (
|
* (
|
||||||
((1 + self.sensitivity) / 10 + (self.sensitivity - 1) / 10)
|
((1 + self.sensitivity) / 10 + (self.sensitivity - 1) / 10)
|
||||||
** (i / 50)
|
** (i / 50)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user