correct way to draw adjacent notes on a grid? (in: DSP and Plugin Devel…)

By: mystran
8 Oct 17:39

There’s really two problems here.

The first is floating point accumulation, which is never going to give exact results. If you want exact results, use rational (or “ppq”) arithemetics and just round the final result. I don’t think there’s really any shortcut to this.

The second is the nature of coverage rendering (which just about everyone uses) where you basically cannot expect shapes to join together perfectly, unless they are a single path.. though at least in Chrome canvas draws every fill…

Go to this post

Go to first unread post in this topic

Read more here: Source link