Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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

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

Successfully merging this pull request may close these issues.

1 participant