Porównaj commity

...

3 Commity

Autor SHA1 Wiadomość Data
Ewald de Wit ddbeb28d79 Small optimization 2022-10-06 18:29:59 +02:00
Ewald de Wit 5b769ac1a5 Typo 2022-10-06 18:29:37 +02:00
Ewald de Wit daf066fe29 Docstring updates 2022-10-06 18:29:08 +02:00
3 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -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)

Wyświetl plik

@ -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."""