A canon is a type of musical composition derived from canonic imitation, a form of musical repetition in which a leading voice plays a melodic subject accompanied by one or more additional voices that follow, imitating the subject a number of different ways.