Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:2/2
K:D
['A>B d>A F2', 'B>c d2 f>e e<d d>B A>B d>A'  
X:1
L:1/8
M:2/2
K:D
"D" D2 D>F{F} A2 A>B | A>B d>A F2 D2 |"Em" E2 E>G{G} B2 B>f | g>f e>d"A7" B>A B/c/d | 
"D" D2 D>F{F} A2 A>B | A>B d>A F2 D>F |"G" G<B G<B"D" F<A F<A |"Em" E>F G>A"A7" B>A B>c || | 
"D" d2 f>e e<d d>B | A>B d>A F2 D2 |"Em" e2 g>f e<e e>f |"G" g>f e>d"A7" B>A B>c | 
"D" d2 f>e e<d d>B | A>B d>A F2 D2 |"G" G<B G<B"D" F<A F<A |"Em" E>F G>A"A7" B>A B/c/d |]  