Create musical composition by adhering to the given musical structure represented by letters and integrating the given motif.
X:1
L:1/8
M:6/8
K:D
['fdd BdB AAA', 'AAA Aff AfA def', 'ade faa def', 'dAA eAf Aag fed']  
X:1
L:1/8
M:6/8
K:D
|: a | f2 a fdd | BdB AAA | GBB Bcd | Acc cde | fda fdd | BdB AAA | Bdd cde | fdd d2 :: B | 
 AAA Aff | AfA def | BBB Bgf | ecc cde | AAA Aff | AfA def | Bdd cde | fdd d2 :: a2 f ade | 
 faa def | eAA fAA | gAA efg | afa ade | faa def | Bdd cde | fdd def :: dAA eAf | Aag fed | 
 eAA fAA | Ggd edc | dAA eAf | Aag fed | Bdd cde | fdd d3 :|  