Hacker News new | ask | show | jobs
by grncdr 3738 days ago
Very cool. You might consider adding a short (a few ms is enough) fade in/out when toggling notes to avoid clickiness.
1 comments

A few samples is enough, actually. Just enough to prevent the sudden change from high to low, which is what causes the click.

You don't even need to compute new samples. Merely repeat the last sample while lowering its volume until you reach zero.