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

LFPar explodes when freq > nyquist*2 #5857

Open
mtmccrea opened this issue Aug 31, 2022 · 0 comments
Open

LFPar explodes when freq > nyquist*2 #5857

mtmccrea opened this issue Aug 31, 2022 · 0 comments
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs.

Comments

@mtmccrea
Copy link
Member

mtmccrea commented Aug 31, 2022

LFPar explodes when freq > nyquist*2.

Environment

  • SuperCollider version: 3.13.0-dev
  • Operating system: Mac

Steps to reproduce

(
// control rate nyquist
var nyq = s.sampleRate / s.options.blockSize / 2;

{ LFPar.kr(nyq) }.plot(0.2);    // nyquist, ok
// { LFPar.kr(nyq+1) }.plot(0.2);   // a bit over, ok
// { LFPar.kr(nyq*2) }.plot(0.2);   // double, ok
// { LFPar.kr(nyq*2.001) }.plot(2); // beyond double, bye bye...
// { LFPar.kr(nyq*3) }.plot(0.2);   // extreme ...
// { SinOsc.kr(nyq*3) }.plot(2);  // SinOsc, e.g., behaves
)

Expected vs. actual behavior

I would expect LFPar handles aliased frequencies without exploding.

To be tested

[ ] Negative frequencies
[ ] Related UGens that may share the underlying synthesis algorithm with LFPar

@mtmccrea mtmccrea added the bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. label Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs.
Projects
None yet
Development

No branches or pull requests

1 participant