Makes this less loud and increases/decreases gain smoothly when update arrives or when there are no more updates.
Add gain node for audio #9
link2xt/audio-envelope into main
Oscillator and gain nodes should be made persistent and when a new update arrives if the sound is already playing we should not decrease the value to 0 but keep playing the sound.
What is annoying about the current beeping sound is that it starts and stops all the time.
E.g. try https://tonejs.github.io/examples/envelope and hold the button. It is much less annoying than when you click it repeatedly.
2480d38ab8
to f3f74736b4
for feedback, i am wondering, if it isn't better to also play a sound when the mouse button is pressed (so when drawing starts, first pixel is sent). currently, it is only played when drawing ends, which make things appear a bit slower and laggy.
maybe one could also play a sound that lasts, say 2 seconds, and fades out (this is probably sustain parameter)
for feedback, i am wondering, if it isn't better to also play a sound when the mouse button is pressed (so when drawing starts, first pixel is sent). currently, it is only played when drawing ends, which make things appear a bit slower and laggy.
Sound is played when update is received. We only send update when mouse is released with all the pixels added/removed since mouse was pressed.
looks good as far as i can tell.
f3f74736b4
to e7a7f34277
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?