repetition structure There are lots of ways to write melodies, but most of those ways use repetition as  a key ingredient “the essential secrets of songwriting”.