nativeformat / NFPlayerJS

A JavaScript/TypeScript audio engine for the Web and Server capable of multitrack time stretching, pitch shifting, declarative effects, faster than realtime processing, and more!
https://nativeformat.github.io/NFPlayerJS
Apache License 2.0
129 stars 9 forks source link

All time math should be based on samples, not TimeInstants #7

Open kirbysayshi opened 5 years ago

kirbysayshi commented 5 years ago

There are several places where rounding errors make for tricky code and bugs. Ideally:

TimeInstants are really useful for reading values from Scores, but should not be used as the base unit for sample math.