With regard to the origin of jazz, some people bring in Mexico:
https://www.trinity.edu/krtu/news/how-porfirio-díaz-changed-course-music-and-influenced-origins-jazz
By the way, I would like to hear Ritchie Blackmore's reaction to your statement that "heavy metal...crystallises in reaction to punk in the late 70s."