Craft melodious tunes in accordance with the outlined letter representation and the provided thematic element.
X:1
L:1/8
M:4/4
K:D
['A,D D2 FGAB =cdDE EDA^c dcdA', 'd2 fd']  
X:1
L:1/8
M:4/4
K:D
 DB, | A,D D2 FGAB | =cdDE EDA^c | dcdA BdAG | FADB, =C2 B,C | A,D D2 FGAB | =cdDE EDA^c | 
 dcdA BAGF | EDCE D2 :| Ac | d2 fd Adfa | g2 fg egfe | d2 fd AddB | =cAGE =CDEC | d2 fd Adfd | 
 cdef g2 ag | faec dBAG | FAEA D2 :|  