Jazz music, as is also the case with the old down-home spirituals, gospel and jubilee songs, jumps, shouts and moans, is essentially an American vernacular or idiomatic modification of musical conventions imported from Europe, beginning back during the time of the early settlers of the original colonies.
Now, one can often get away with playing music by ear when it is not being recorded, but writing is another matter; its mistakes are not forgotten because they are still there to confuse us.
As any competent student of literary composition knows, the more natural and casual a voice sounds in print, the more likely it is to have been edited time and again.
Effective stream-of-consciousness narration is the product of verbal precision, not just of literal documentation. It is decidedly not a matter of unedited free-association.
A jazz tune, melody, or composition is usually based on either a traditional twelve-bar, eight-bar, or four-bar blues chorus or on the thirty-two-bar chorus of the American popular song.