This is the most exhaustive analysis of the origin of the blues that I have ever come across. Written by an amazing musicologist, musician, performer, psychoanalyst, and researcher, Gerhard Kubik.
He makes the case that "The Blues" is a descendant of Western African music styles. BUT... much farther east into inland Africa nd influenced by the Islamic vocalizations - early African musical "scales" as well as east african instruments. The book gets very technical - you need a phd in music theory to follow the details. But this is a testament to Kubik's thoroughness and pursuit of the truth. The most interesting research ties the Blues vocalizations and the "Blue notes" NOT to musical antecedents but to actual language/linguistics heritage.
I dont agree with the author's conclusions that the Blues developed in the late 19th century following emancipation. I believe that "proto-blues" was a clandestine musical heritage kept out of sight and hearing of the plantation overseers for many generations if not centuries. It only came out of the shadows when it was relatively safe for blacks to sing in a vocalization that was anti-white european musicality. It was the rise of the black vaudeville in the late 1800's, performed for a black audience that set blacks free to sing in a natural style. It had been there all along. It was music of resistance and rebellion during Jim Crow era until it became recorded and nationalized in the 1920s.