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

fix: finally repair envelopes #861

Merged
merged 2 commits into from
Dec 12, 2023
Merged

fix: finally repair envelopes #861

merged 2 commits into from
Dec 12, 2023

Conversation

felixroos
Copy link
Collaborator

finally found a reasonable fix for #522 !

Up until now, the release phase was triggered when the event was over. This led to crackles when the sustain level was not yet reached, or in other words: attack+decay > hap.duration ? crackle() : nocrackle()

to fix sudden jumps in the envelope, the release now waits for the decay phase to finish, to make sure the automation starts from a value that is actually reached (not creating a sudden jump / crackle).

This is even musically useful, because the envelope can now be used to make the sound longer, even if it exceeds the event duration.

Technically, this is a breaking change, but it will only "break" patterns with crackles, so I guess this is not too bad

@felixroos felixroos merged commit 1d3f87a into main Dec 12, 2023
2 checks passed
@felixroos felixroos deleted the envelope-fix branch December 12, 2023 20:49
@felixroos felixroos mentioned this pull request Dec 12, 2023
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

Successfully merging this pull request may close these issues.

1 participant