In music, a riff is an ostinato; a repeated set of notes, pattern, or melody, often played by rhythmic instruments. The riff is the base of the musical composition. They are most common in rock music, funk, and jazz.