Skip to content

ADSR envelopes #1469

Answered by cme
cme asked this question in Q&A
Jan 29, 2022 · 4 comments · 7 replies
Discussion options

You must be logged in to vote

After some investigation, the approximation method necessary for the attack phase is still very expensive. But also, having looked at the envelope, I don't think the current profile's attack is particularly close to what most people would expect or want, as it peaks sharply and instantaneously before decaying, so I've come to the conclusion that a more classical exponential function isn't just quicker to calculate, it's also more desirable.

With some curve fitting to find parameters that give something close to the current envelope shape, I have an implementation that gives this envelope shape ("new.data") in comparison with the old one ("old.data"):

Benchmarking just the ADSR time for n…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@cme
Comment options

cme Jan 29, 2022
Maintainer Author

@theGreatWhiteShark
Comment options

@cme
Comment options

cme Jan 29, 2022
Maintainer Author

@theGreatWhiteShark
Comment options

@theGreatWhiteShark
Comment options

Comment options

cme
Feb 3, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

cme
Feb 15, 2022
Maintainer Author

You must be logged in to vote
1 reply
@theGreatWhiteShark
Comment options

Answer selected by theGreatWhiteShark
Comment options

You must be logged in to vote
1 reply
@cme
Comment options

cme Mar 20, 2022
Maintainer Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants