Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/8
M:6/8
K:D
['d ABc dcd B2 e e2 d', 'd2 e f2 f def g3 g2']  
X:1
L:1/8
M:6/8
K:D
 d | ABc dcd | B2 e e2 d | c2 a ag^a | f2 d d2 d | ABc dcd | B2 e e2 d | c2 a gfe | d3- d2 :: e | 
 f2 f def | g3 g2 f | e2 e cde | f3 f2 e | ddd def | g2 B e2 d | c2 a gfe | d3- d2 :|  