The stereotypical saloon scene in most movies about the Wild West often features ragtime being played on a piano. However, ragtime only appeared at the very end of the century (the first known composition was published in 1896). What was played before that?
I'm mostly interested in the heyday of the "cowboy era", approximately late 1840's to the early 1880's, and piano music typically played in saloons, not songs sung around campfires (which one can find plenty of, if searching for "civil war era songs").