tidalcycles / strudel

Web-based environment for live coding algorithmic patterns, incorporating a faithful port of TidalCycles to JavaScript
https://strudel.cc/
GNU Affero General Public License v3.0
677 stars 119 forks source link

Fix OSC clock jitter #1157

Closed daslyfe closed 3 months ago

daslyfe commented 3 months ago

clock had a bit of jitter because of how Date.now() can be inaccurate. Now when an osc message is sent, it pulls a rolling average of offset times if it has been over two seconds since it was last calculated.