Develop a piece of music by incorporating the provided motif and following the outlined musical structure represented by alphabet characters.
X:1
L:1/8
M:6/8
K:D
['d2 d d2 a afd ecA', 'e2 f ecd']  
X:1
L:1/8
M:6/8
K:D
 d2 d d2 a | afd ecA | B2 B B2 d | cec d3 | d2 d d2 a | afd ecA | Bcd ef^g | ab^g a3 :: e2 f ecd | 
 e2 f ecd | Adc Bcd | egf e3 | fdf edc | dcd AGF | GFG Egf | edc d3 :|  