Replays
Every play is recorded to phigros++/replays/<song id>.<difficulty>/<unix time>.pigeon, with its pauses and the game's other clocks (see phigrospp/lua/replayfile.lua). A play with Modifiers is a version 6 file, whose header ends with their bits and Random's seed and whose signature starts with phigros++ replay v6. Any other play stays a version 5 file, so older versions of Phigros++ keep reading it. A clock next to the play button slides in the chart's replays, laid out like the song list: the replays where the songs are, the chosen one's result over its cover and in the record panel, a bin to delete it and the play button to watch it. Every recorded frame is fed back with its touches, song time and delta time, so the game judges exactly what it judged the first time, and a play that jumped in its song (phigrospp.jump, the SKIP button) makes the same jumps with its music. The replay ends on the game's result screen with every step that saves or unlocks something skipped, and its retry button watches it again.
A tap during a replay shows the player: a seek bar, restart, 5 seconds back and forward, pause and a speed from 0.25× to 16×. Fast speeds and seeking play the recorded frames several at a time inside one screen frame (as many as fit in 8 ms while seeking), slow ones and the pause hold the game between frames, and going back puts every note back (phigrospp.jump(0)), clears the score and plays fast from the start up to there, so every speed judges exactly like the recording. Another tap hides the player. The game's pause button is a cross that goes back to the song list.
The seek bar marks every good (blue), bad and miss (red) where it happened. Mods read them with phigrospp.replay.marks() and add buttons to the player with phigrospp.replay.button: the Practice mod's one starts the song again (phigrospp.replay.takeover()) as a practice of the mistakes nearest to where the replay was.