3 ms·
Not sure what went wrong and I'm not sure about the exact measurements but your synth has huge input or output latency, maybe around 100ms or something like tha
by capableweb 5y ago
Not sure what went wrong and I'm not sure about the exact measurements but your synth has huge input or output latency, maybe around 100ms or something like that? Other WASM/web synths I've tried doesn't suffer from the same problem.
Otherwise it's a nifty little toy, thanks for sharing :) Lots of fun.
- apanloco 5y agoi don't have this issue! awesome synth! and i really like the tracker-style keys ;D
- errozero 5y agoThanks! :) Yeah the keyboard layout is based on the tracker style. I spent a lot of time with FastTracker 2.
- Ameo 5y agoYeah some browsers/operating systems have worse latency issues than others with Web Audio. However, it's possible to tune the `latencyHint` a bit when constructing the `AudioContext` to specify a custom value. You have to find a balance between too low where have buffer underruns and miss samples and too high where it adds noticeable delay. After a good bit of trial and error, I came up with a setup that works well on all platforms I could test: https://github.com/Ameobea/web-synth/blob/master/src/index.hbs#L18 https://github.com/Ameobea/web-synth/blob/master/src/index.h...