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
['f3 d edBd', 'B AF F2 EDEF D2 FD EDEF']  
X:1
L:1/8
M:4/4
K:D
 e | f3 d edBd | f3 e fg a2 | f3 d edBd | ABdf efde | f3 d edBd | f3 e fg a2 | bf f2 afdB | 
 ABdf efd |]: B | AF F2 EDEF | D2 FD EDEF | AFBF AFEF |1 defd efd :|2 defd efdB | d8 |]  