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

ADSR produces small step and audible click in decay or release phase #154

Closed
sdiedrichsen opened this issue May 3, 2021 · 4 comments
Closed

Comments

@sdiedrichsen
Copy link
Contributor

https://es-daisy.slack.com/archives/CU7QB1K5Y/p1620032978070300

There's a rather unfortunate comparison, which forces the output to zero once the envelope falls below 0.01.

I'd suggest using a negative target value for the the filter and clip the output at zero. Also, for the attack a target value > 1.0 produces a more pleasant attack phase.

@jasonmayo
Copy link

There are situations where it would be useful to set ADSR_SEG_IDLE at a given level, such as prioritising voices for polyphonic voice assignment. Could the current 0.01 be a default that can be overridden?
if(out <= idle_threshold)

@sdiedrichsen
Copy link
Contributor Author

I'd tend to disagree a bit, the ADSR should produce a clean envelope primarily. But for voice allocation or stealing a accessor method for the segment might be useful.

@sdiedrichsen
Copy link
Contributor Author

OK, here's my remake:
#160

@sdiedrichsen
Copy link
Contributor Author

This has been merged, so this issue can be closed now.

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

No branches or pull requests

2 participants