Sync.io
Create a music party on the go!
Algorithm
- User Clicks Start
- Plays one beep (0.2s)
- Listens to more beeps until max energy acquired (0.8s or sooner)
- On hearing a beep, increases energy by energy/10
- Checks if number of beeps === 10
- If no, uses all energy to beep
- Else, this.player is assumed successfully synced. Proceeds to play media.