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
['[fA] z2 (3f/g/f/ e2 d2 z B2']  
X:1
L:1/8
M:4/4
K:D
"D" [fA] z2 (3f/g/f/ e2 d2 | z AFA"D#dim" B2 A2 |"Em" [gB]2 z g f2 eA |"A" BABc (3BdB A2 | 
"Em" e2 f2"A/C#" gf e2 |"D" f2 g2"Bm" a3 |1 f |"Em" e2 ff gf eA |"A" B2 c2"D" d2"D#dim" (3faf :|2 
 a |"Em" b2 (3aba gfeA |"A" B2 c2"D" d4 ||  