In Britain, merchant ships had shantymen and navy ships had fiddlers to accompany all the heaving and hauling etc, which I think carried over into the days of steam. I presume the Confederate (and the US) navy would have a similar practice, but I don't know what tunes they played.