Hacker News new | ask | show | jobs
by iamdan 437 days ago
That's sweet! I'm trying to see how far I can push the web audio api but yeah the aliasing can be harsh. I think there are also some things I can do with filter nodes to smooth things out a bit
1 comments

The aliased harmonics are folded back and mixed with the true harmonic content of the square wave. You can't filter them out without significantly affecting the square wave sounds.
You can work in a much higher sample rate and then downsample