Caveat: its usually video game soundtrack items but can almost any track be basically looped in this way?

Probably helps that most music begins and ends on the tonic or maybe they slice the track in half and cross-fade or something?

How can it be (easily) replicated