Craft melodious tunes in accordance with the outlined letter representation and the provided thematic element.
X:1
L:1/8
Q:1/2=90
M:4/4
K:D
['d2 (FG) AFAF', 'f2 (df) dfdf']  
X:1
L:1/8
Q:1/2=90
M:4/4
K:D
 (3ABc | d2 (FG) AFAF | d2 (FG) AFAF | BAGF E2 ef | gefd dcBA | d2 (FG) AFAF | d2 (FG) AFAF | 
 BAGF E2 ef | gedc d2 :: z2 | f2 (df) dfdf | e2 cd cdcd | f2 (df) dfdf | edcB A2 Bc | 
 (dB).B.B (cA).A.A | (dB).B.B (cA).A.A | dfed cBA"^?"G | A2 A2 A2 :|  