Craft melodious tunes in accordance with the outlined letter representation and the provided thematic element.
X:1
L:1/8
Q:1/2=80
M:2/2
K:G
['d2 B2 d2 A2 d2 G3 A', 'e2 (3(efg) f3 e']  
X:1
L:1/8
Q:1/2=80
M:2/2
K:G
 d2 | B2 d2 A2 d2 | G3 A B2 g2 | f2 (ed) (ef) g2 | B4 e4 | (de)(dB) (dB)AG | [AD]2 (B^c) e2 (ef) | 
 [gB]2 (fe) (e3 d) | [dAD]6 || (ef) | a3 b (af)(ed) | g3 a [bB]2 d2 | e2 (3(efg) f3 e | 
 e6 (3(efg) | (de)dB [dG]3 d | e2 (3(efg) f3 e | (de)(dB) AB([DA]G) | [GG,]6 |]  