The game you are thinking of is almost certainly SkyRoads, the shareware racer where you pilot a ship along floating tracks suspended in open space.
Its hook was momentum. You accelerated, hugged the surface, and launched off ramps to clear gaps, all while managing a heat meter that punished careless speed. Falling off the edge meant starting the section again.
And yes — the soundtrack was a huge part of why it stuck with people. Those driving synth loops are still what many players remember first, years after they have forgotten the level layouts.