Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:4/4
K:D
['D2) D(E F2) BF ABA(F G2)'  
X:1
L:1/8
M:4/4
K:D
"D" A,B,D(E D2) D(E | F2) BF ABA(F |"G" G2) B(G F2)"D" A(F |"A" ED)EF EDB,(G, | 
"D" A,B,)D(E D2) D(E | F2) BF ABA(F |"G" G2) B(G"D" FG)A(F |1"A" ED)E(F"D" D2) DB, :|2 
"A" EDE(F"D" D2) d(B |:"D" A2) B2 d2 cd | efe(d cB) A2 |"Em" e2 e(f e2) e(f | gf)e(d cA)B(c | 
"D" d2) f(d"A" c2) e(c |"G" BA)B(c"D" dB)A(F |"G" G2) B(G"D" F2) A(F |1"A" ED)E(F"D" D2) dB :|2 
"A" EDE(F"D" D2) z2 |]  