Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['', 'd/c/B/A/ d>D F<A', 'f/e/d g/f/e a<f'  
X:1
L:1/8
M:4/4
K:D
 A/ |: d/c/B/A/ d>D F<A A>=c | B>G A>F G<E E>A | d/c/B/A/ d>D F<A A>g |1 f/e/d e>c d2 d>A :|2 
 f/e/d e>c d2 d>g || f/e/d g/f/e a<f d>d | c/B/A d/c/B e<c A>g | f/e/d g/f/e a<f d>g | 
 f/e/d e/d/c d2 d>g | f/e/d g/f/e a<f d>d | c/B/A d/c/B e<c A>c | d/c/B/A/ d>D F<A A>f | 
 g/a/b a>c d2 d3/2 ||  