Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:2/2
K:D
['de fefg afge fded dcAG FEFD', 'D2 DE =F3 G AGAB =cAdB cAGB'  
X:1
L:1/8
M:2/2
K:D
 de | fefg afge | fded dcAG | FEFD (3EFG AB | cAdc A2 de | fefg afge | fded dcAG | FEFD GBAG | 
 F2 D2 D2 :| DE | =F3 G AGAB | =cAdB cAGB | Adde fded | ^cAdc A2 de | fefg afge | fded dcAG | 
 F3 D GBAG | F2 D2 D2 :|  