Craft melodious tunes in accordance with the outlined letter representation and the provided thematic element.
X:1
L:1/8
Q:1/8=160
M:12/8
K:D
['A2 B d2 e f2 f fed', 'fga agf']  
X:1
L:1/8
Q:1/8=160
M:12/8
K:D
 A2 B d2 e f2 f fed | a2 a agf ede fed | ABc def g2 g gab | afd e2 d B3 d3 :| fga agf gab bag | 
 fga agf gee ede | fga agf gab bag | afd e2 d B3 d3 :|  