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
['ABA AFD', '[AA,]3 ABA ecA GFG F3 fed dcB']  
X:1
L:1/8
M:6/8
K:D
|: ABA AFD | Bcd d3 | ABA AFD | EFE E3 | ABA AFD | def e2 d | cBA EF^G | A3 [AA,]3 :: ABA ecA | 
 GFG F3 | fed dcB | cB^A B3 | dcB AGF | BAG FED | GAB Agf | edc d3 :|  