Skip to content

Commit

Permalink
Minor fixes to CPC1 code and documentation. (built from: c876eb0)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarker68 committed Nov 25, 2021
1 parent 7420d6d commit 1261f6a
Show file tree
Hide file tree
Showing 206 changed files with 113,859 additions and 27,896 deletions.
8 changes: 2 additions & 6 deletions clarity_CEC1/projects/MSBG/MSBG/smearing.py
@@ -1,8 +1,6 @@
import numpy as np
import math

from matlab_matrix_divide import matrix_divide

FFT_SIZE = 512
FRAME_SIZE = 256
SHIFT = 64
Expand Down Expand Up @@ -75,7 +73,7 @@ def make_smear_mat3(rl, ru, fs):

# This is equivalent to multiplying (convolving) the inverse of the
# normal filters with the wide filters.
f_smear = np.real(matrix_divide.mldivide(f_next, f_wide))
f_smear = np.real(np.linalg.lstsq(f_next, f_wide, rcond=-1)[0])

# Pruning to remove the extra bit
f_smear = f_smear[0:nyquist, :]
Expand Down Expand Up @@ -104,9 +102,7 @@ def smear3(f_smear, inbuffer):
buffer = np.arange(0, overlaps)
nyquist = int(FFT_SIZE / 2)

window = 0.5 - 0.5 * np.cos(
2 * np.pi * (np.arange(1, FRAME_SIZE + 1) - 0.5) / FRAME_SIZE
)
window = 0.5 - 0.5 * np.cos(2 * np.pi * (np.arange(1, FRAME_SIZE + 1) - 0.5) / FRAME_SIZE)
window = window / math.sqrt(1.5)

samplecount = min(FRAME_SIZE, inlength - inpointer)
Expand Down
3 changes: 0 additions & 3 deletions clarity_CEC1/projects/MSBG/README.md
Expand Up @@ -14,9 +14,6 @@ python -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements-dev.txt
# Build matlab_mldivide submodule
cd packages/matlab_mldivide
python setup.py install
```

## Documentation
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 1261f6a

Please sign in to comment.