Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['A d2 d>c |{c} B2 A(F/G/) A>B', '(d/e/) f>g fB e>c (AB/c/) d>D D(E/F/)'  
X:1
L:1/8
M:4/4
K:D
 A | d2 d>c |{c} B2 A(F/G/) | A>B AF | E3 (FG) | (Af) (f>e) | (dB) A(D/E/) | (F>G)({F} E>D) | D3 || 
 (d/e/) | f>g fB | e>c (AB/c/) | d>D D(E/F/) | E3 (A/G/) | (F>G) Ad | f>e d(D/E/) | 
 (F>G)({F} E>D) | D3 ||  