Develop melodies utilizing the stated letter notation and the provided theme.
X:1
L:1/8
M:3/4
K:D
['(3ABA d2 f2 ag ba B2 (3gag', '', 'D2 (3FGA df a2 ge (3Acd g2', 'FEDFAd f2']  
X:1
L:1/8
M:3/4
K:D
|: (3ABA | d2 f2 ag | ba B2 (3gag | fe Ac eg | fd F2 (3ABA | d2 f2 ag | ba B2 (3gag | fe Ac ec | 
 d2 d2 :: AF || D2 (3FGA df | a2 ge (3Acd | g2 fd (3ABd | f2 dAFE | D2 (3FGA df | a2 ge (3Acd | 
 g2 fdAd | FA d2 :: AG | FEDFAd | f2 afge | B2 gefd | ecAGFE | FEDFAd | f2 afga | b2 Acec | d6 :|  