Merge branch 'master' into 1mhz-opt-osc

This commit is contained in:
KrisKennaway 2022-07-22 14:58:47 +01:00 committed by GitHub
commit 2dff0c242c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -38,6 +38,7 @@ import librosa
import numpy import numpy
import soundfile as sf import soundfile as sf
from eta import ETA from eta import ETA
from typing import Tuple
import lookahead import lookahead
import opcodes import opcodes
@ -75,7 +76,6 @@ class Speaker:
# See _Signal Processing in C_, C. Reid, T. Passin # See _Signal Processing in C_, C. Reid, T. Passin
# https://archive.org/details/signalprocessing0000reid/ # https://archive.org/details/signalprocessing0000reid/
dt = numpy.float64(1 / sample_rate) dt = numpy.float64(1 / sample_rate)
w = numpy.float64(freq * 2 * numpy.pi * dt) w = numpy.float64(freq * 2 * numpy.pi * dt)
@ -93,7 +93,6 @@ class Speaker:
self.b1 = b1 self.b1 = b1
self.b2 = b2 self.b2 = b2
def total_error(positions: numpy.ndarray, data: numpy.ndarray) -> numpy.ndarray: def total_error(positions: numpy.ndarray, data: numpy.ndarray) -> numpy.ndarray:
"""Computes the total squared error for speaker position matrix vs data.""" """Computes the total squared error for speaker position matrix vs data."""