It does resemble a Civil War era uniform looking at the collar, and it looks yellow Cavalry branch braid on the collar. The rest of the coat as pictured could go either way. I am not sure. Post war maybe, but it looks prewar. What we can't see are the buttons or several shots of the interior construction. A musician's coat? More info is needed, more pictures always helps. New York militia or another state is open to more discussion.