Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/16
M:2/4
K:D
['A2fe dced c2B2', 'e2e2 fede c2ee c2ee', 'dcdf A2>d2', 'cd e6 f2 g6 f2 e2g2 b2g2'  
X:1
L:1/16
M:2/4
K:D
 A2 | A2fe dced | c2B2 B4 | ABcd eABc | defg a4 | A2fe dced | c2B2 g2>f2 | edcB Agfe | d6 :| 
[K:A] cd | e2e2 fede | c2ee c2ee | B2ee B2ee | cdcB ABcd | e2e2 fede | c2ee c2ee | Bcd2 EFG2 | 
 A6 ::[K:D] a2 | f2aa efge | dcdf A2>d2 | cege c2>e2 | dfba a4 | a2ba gfge | dcdf A2>d2 | 
 cegb agec | d2f2d2 :: cd | e6 f2 | g6 f2 | e2g2 b2g2 | abag f4 | b6 c'b | a6 gf | efg2 A2ce | 
 d2f2 d2 :|  