Skip to content
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

LB302 filter doesn't adjust to sample rate correctly #5615

Closed
zynskeywolf opened this issue Aug 8, 2020 · 6 comments · Fixed by #5618
Closed

LB302 filter doesn't adjust to sample rate correctly #5615

zynskeywolf opened this issue Aug 8, 2020 · 6 comments · Fixed by #5618
Labels

Comments

@zynskeywolf
Copy link
Contributor

zynskeywolf commented Aug 8, 2020

When exporting with a sample rate other than 44.1 kHz, LB302's filter frequency goes higher than the set value.

Steps to reproduce:

  • Drag LB302 to the song editor and make some pattern.
  • Set the filter so that its effect is hearable
  • Export the project with oversampling or higher sample rate

Expected behavior:
The sound sounds the same as in the editor.

Actual behavior:
The filter frequency is higher than expected.

Tested on current master and 1.2.2 AppImage.

@zynskeywolf zynskeywolf added the bug label Aug 8, 2020
@thmueller64
Copy link
Contributor

thmueller64 commented Aug 8, 2020

There was a similar issue with exports and oversampling that is now fixed on master. Could you try to reproduce this on a master build?
Edit: It was issue #5548

@zynskeywolf
Copy link
Contributor Author

zynskeywolf commented Aug 9, 2020

Oh yes, master also has the issue. Investigating further, it is not a problem with oversampling, but with rendering at higher sample rates in general.
The real problem appears to be that LB302 filter does not adjust itself to the sampling freq.

@zynskeywolf zynskeywolf changed the title LB302 filter goes off when exporting with oversampling LB302 filter doesn't adjust to sample rate correctly Aug 9, 2020
@thmueller64
Copy link
Contributor

I followed your steps to reproduce and compared the 44.1kHz export to a 96kHz and 192kHz export. The filter frequency appears to be the same for the exports, at least there is no noticeable difference. Could you please share a project file where the problem appears? Maybe it is related to more specific settings.

@zynskeywolf
Copy link
Contributor Author

Sure.
lb302-bug.zip

@thmueller64
Copy link
Contributor

Could you please check out the PR above and see if this fixes the problem? For me the export now sounds the same for different sampling rates. The problem turned out to be related to the 24dB filter.

@zynskeywolf
Copy link
Contributor Author

I tested the PR and yes, the problem went away. LB302 works well now, but turns out there might be more similar bugs with other instruments. For example .ds presets behave strangely too, but I believe that's a different issue.
Anyway, the PR is right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants