-
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Hello!
When plotting, the following function is not calculating correctly the pre-emphasis filter:
Line 24 in 238aca1
| return np.concatenate([x, np.subtract(x, np.multiply(x, coeff))]) |
The correct implementation is being used in the model:
Line 106 in 238aca1
| return torch.cat((x[:, :, 0:1], x[:, :, 1:] - coeff * x[:, :, :-1]), dim=2) |
At high level this is given a signal x, in order to calculate x[t] you do:
x[t] = x[t] - 0.95*x[t - 1]
btw, great project! 👍
GuitarML and mishushakov
Metadata
Metadata
Assignees
Labels
No labels