Sequence is a pattern with a characteristic melodic shape and rhythm that moves through the chord changes…