Open ManuLintz opened 11 months ago
It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.
Thanks for reporting this (along with the other one). Would you like to open a PR to improve it?
Yes I'll do it, thanks for your answer !
What information was incorrect, unhelpful, or incomplete?
The two sliders to set the envelope of the "Sweep" sound are not working as expected.
What did you expect to see?
There are actually 2 issues:
Since their value are between 0 and 1 with a step of 0.1, the usage of "parseInt" is inadecuate.
When you set it like this you hear a longer release:
It should be the other way around
The problem comes from the implementation of the envelope:
I'm currently going through the Web API guide where this step sequencer is used: https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Advanced_techniques
Since I identified the what causes the issue in the code I'd be happy to work on a fix + updating the doc.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response