Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
M:2/4
K:D
['ddef ddec', 'd2 d2 BG BG B2 =c2 AG', 'dfeg fdec', 'd2 d2 BG Bd=cB ABAG FGAB =cdcA', 'd>g fdec dBAg fdef B2 Ag fdec', 'dg FAAd BAAG FAAd B2 AG FAAd', 'a2 af', '(B/A/B/c/) Bd']  
X:1
L:1/8
M:2/4
K:D
 ddef | ddec | ddef | d2 c2 | ddef | ddec | AABc | d2 d2 :: d2 BG | BG B2 | =c2 AG | FG A2 | 
 BG =c2 | AB^cA | d2 d2 :: dfeg | fdec | dfeg | f2 ed | dfeg | fdec | AABc | d2 d2 :: d2 BG | 
 Bd=cB | ABAG | FGAB | =cdcA | Bd=cA | AB^cA | d2 d>g :: fdec | dBAg | fdef | B2 Ag | fdec | dBAF | 
 A2 Bc | d2 dg :: FAAd | BAAG | FAAd | B2 AG | FAAd | BAAF | A2 Bc | d2 d2 :: a2 af | a2 ag | 
 f2 e2 | a2 af | gfef | A2 Bc | d2 d2 :: (B/A/B/c/) Bd | (A/G/A/B/) Ad | (B/A/B/c/) Bd | BAGF | 
 (B/A/B/c/) Bd | (A/G/A/B/) Ad | A2 Bc | d2 d2 :|  