This quote means that it is best to take life as it comes and not to plan too much in advance as it will be more enjoyable if you don’t. Just like jazz music, where musicians can add random moments or variations to their melodies, similarly life should also be open to improvisation and spontaneity. There will always be surprises and unexpected moments along the way, so it’s best to accept them and just go with the flow.