Lurker News
Hi HN! I made Beatsync, an open-source browser-based audio player that syncs audio with millisecond-level accuracy across many devices.

Try it live right now: https://www.beatsync.gg/
The idea is that with no additional hardware, you can turn any group of devices into a full surround sound system. MacBook speakers are particularly good.
Inspired by Network Time Protocol (NTP), I do clock synchronization over websockets and use the Web Audio API to keep audio latency under a few ms.
You can also drag devices around a virtual grid to simulate spatial audio — it changes the volume of each device depending on its distance to a virtual listening source!
I've been working on this project for the past couple of weeks. Would love to hear your thoughts and ideas!

Comments (128) 50 threads

Earlier comments
awongh1 reply#
TIL what NTP is. Interesting to read about how the underlying algorithm works, and that they had pretty good accuracy 40 years ago.
_joel#
Wait until you hear about PTP :)
_joel1 reply#
Really cool but issues for me when uploading mixes (MP3's about 90 mins long, 150MB). They never make it to the playlists
xnickb1 reply#
if it's behind nginx, check client_max_body_size. Set it to something big
_joel1 reply#
Yea could be, this was using their .gg hosted version, I'll try locally
freemanjiang#
Thanks for bringing this up! Made an issue to look into this.
gkanai#
Interesting idea.

Have you thought about integrating support for timecode? Dante support also might bring your software to professional venues.

gitroom#
Pretty cool, just the fact it works instantly in the browser with nothing to download is actually kinda wild to me tbh.

Load more comments