Skip to content

Commit

Permalink
Fix Python code in the comment of UpSamplerFir8Fold
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukau committed Nov 2, 2023
1 parent 3125975 commit 1e70f1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BasicLimiter/source/dsp/polyphase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,9 @@ FIR polyphase lowpass coefficients for 8 fold upsampling.
nTaps = 64
nPhase = 8
fir = signal.firwin(nTaps * nPhase - 1, 20000, window=("dpss", 4), fs=8 * 48000)
fir *= nPhase
fir = np.hstack((fir, [0]))[::1]
poly = fir.reshape((nTaps, nPhase)).T
poly = fir.reshape((nTaps, nPhase)).T[::-1]
for i, p in enumerate(poly):
poly[i] = p[::-1]
```
Expand Down

0 comments on commit 1e70f1f

Please sign in to comment.