-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug when calculating pre-emphasis filter for plotting #16
Comments
@ivanpondal Thanks for catching that, I will check it out, and I'll also check that in the GuitarLSTM repo because I might be making the same mistake there. |
@ivanpondal Sorry for the delay in responding to this, but if you compare the two implementations, aren't they doing the same thing? The one in plot code is using numpy arrays and the one in the model is using pytorch tensors. |
Hey! The problem is it's not using the previous element for the substraction. The pytorch implementation does: |
Got it now, good catch! |
Hello!
When plotting, the following function is not calculating correctly the pre-emphasis filter:
PedalNetRT/plot_wav.py
Line 24 in 238aca1
The correct implementation is being used in the model:
PedalNetRT/model.py
Line 106 in 238aca1
At high level this is given a signal
x
, in order to calculatex[t]
you do:x[t] = x[t] - 0.95*x[t - 1]
btw, great project! 👍
The text was updated successfully, but these errors were encountered: