One of the more gifted artists of his generation, X was defined by his music and honesty, even as his demons became part of his story.