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:4/4
K:D
['d2 |{g} B(d d2){G} A4 |{ag} a4{GdG}']  
X:1
L:1/8
M:4/4
K:D
 e |{Gdc} d3 e{g} f2 d2 |{g} B(d d2){G} A4 |{ag} a4{GdG} a2 f2 |{gfg} f(e e2){A} e4 | 
{Gdc} d3 e{g} f2 d2 |{g} B(d d2){G} A4 |{ag} a4{GdG} a2 f2 |{gef} e3 d{gdG} d4 || 
{g} f2 a2{g} a2{GdG} a2 |{fg} f2 a2{g} a4 |{Gdc} d3 c{gBd} B2{G} A2 |{gf} g>f{g}ed{gef} e3{A} e | 
{g} f3{e} f{gef} e2 d2 |{g} B(d d2){G} A4 |{ag} a4{GdG} a2 f2 |{gef} e3 d{gdG} d4 ||  