https://blog.tdevin.com/posts/interpolating-a-variable-sampled-signal/