The process in which a relatively unspecialized cell acquires specialized features of a muscle cell. [ GOC:go_curators http://purl.obolibrary.org/obo/CL_0000187 ]