kopia lustrzana https://github.com/erdewit/HiFiScan
Porównaj commity
3 Commity
423cbbddd2
...
ddbeb28d79
Autor | SHA1 | Data |
---|---|---|
Ewald de Wit | ddbeb28d79 | |
Ewald de Wit | 5b769ac1a5 | |
Ewald de Wit | daf066fe29 |
|
@ -26,6 +26,15 @@ class Analyzer:
|
|||
"""
|
||||
Analyze the system response to a chirp stimulus.
|
||||
|
||||
Args:
|
||||
f0: Start frequency of chirp [Hz].
|
||||
f1: End frequency of chirp [Hz].
|
||||
secs: Duration of chirp.
|
||||
rate: Audio sample rate [Hz].
|
||||
ampl: Amplitude of chirp.
|
||||
calibration: Microphone calibration.
|
||||
target: Target curve.
|
||||
|
||||
Symbols that are used:
|
||||
|
||||
x: stimulus
|
||||
|
@ -191,7 +200,7 @@ class Analyzer:
|
|||
|
||||
def H(self) -> XY:
|
||||
"""
|
||||
Transfer function H averaged over all measurements.
|
||||
Transfer function H averaged over all measurements.
|
||||
"""
|
||||
freq = self.frequency()
|
||||
H = self.sumH / (self.numMeasurements or 1)
|
||||
|
|
|
@ -284,7 +284,7 @@ class App(qt.QWidget):
|
|||
self.irSmoothing.sigValueChanging.connect(self.plot)
|
||||
|
||||
causalityLabel = qt.QLabel('Causality: ')
|
||||
causalityLabel.setToolTip('0% = Zero phase, 100% = Zero lateny')
|
||||
causalityLabel.setToolTip('0% = Zero phase, 100% = Zero latency')
|
||||
self.causality = pg.SpinBox(
|
||||
value=0, step=5, bounds=[0, 100], suffix='%')
|
||||
self.causality.sigValueChanging.connect(self.plot)
|
||||
|
|
|
@ -49,7 +49,7 @@ class Audio:
|
|||
idx = idx2
|
||||
if not playItem.remaining():
|
||||
self.playQ.popleft()
|
||||
self.recorded.emit_threadsafe(in_data.copy().T)
|
||||
self.recorded.emit_threadsafe(in_data.T.copy())
|
||||
|
||||
def play(self, sound: npt.ArrayLike):
|
||||
"""Add a sound to the play queue."""
|
||||
|
|
Ładowanie…
Reference in New Issue