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
['B2 D DED E2 F G2 e', 'B2 d dBd e2 f g2 e']  
X:1
L:1/8
M:6/8
K:D
|: A | B2 D DED | E2 F G2 e | d2 B BAG | B2 A AGA | B2 D DED | E2 F G2 e | d2 B ABA | G2 G2 :: A | 
 B2 d dBd | e2 f g2 e | d2 B BAG | B2 A AGA | B2 d dBd | e2 f g2 e | d2 B ABA | G2 G2 :|  