Melodies are a sequence of notes. They use different pitches and rhythms. They usually contain a balance of repetition and variety. A simple melody will use only notes from the key that a piece is in.