Syncopation has been an important element of musical composition since at least the Middle Ages. For some musical styles, such as jazz and ragtime, syncopation is an essential part of their character.