A minimal multiplayer piano based on DayDun Piano https://piano.owo69.me/
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lamp 840490b362 ip as default nick 2 years ago
frontend front not ignore self note 2 years ago
.gitignore init backend 2 years ago
package-lock.json reorganize files 2 years ago
package.json reorganize files 2 years ago
readme.md Update 'readme.md' 2 years ago
server.js ip as default nick 2 years ago


The frontend was stolen from DayDun and the backend re-implemented from scratch. Rooms and rate limit functionality was stripped out, each connection is a different user, and raw IP addresses are used for user ids.

The notable thing about this and DayDun's piano is that note events are simply, individually, immediately broadcasted in a minimal binary format, and clients instantly play notes they receive; unlike Brandon Lockaby's Multiplayer Piano which buffers note events with timing data into JSON that's sent every 200ms and then played exactly one second after they actually happened. (PianoRhythm does something similar.) Doing this preserves the exact note timing regardless of networking quality (unless it takes longer than a second for the data to get through), which is fine for listening to other players, but a problem when playing together. With this piano, notes go directly through as fast as possible, which is perfect for local networks, and reveals the true networking quality and latency over the internet.

It's also super simple to run if you do want to use it on your local network; just download, npm install, node server.js and connect to it (default port is 924).