Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/8
M:4/4
K:C
['BEA |[M:2/2][K:A]SOSOO .!fermata!PMTuCO Ma2 a2 (AB) cBAB', 'AB ceef edcA ceef e2 dc Bdde']  
X:1
L:1/8
M:4/4
K:C
 BEA |[M:2/2][K:A]SOSOO .!fermata!PMTuCO Ma2 | a2 (AB) cBAB | cdec A2 (ef) | g2 GA BAGA | 
 BcdB GBdg | a2 AB cBcd | edef gedB | cdeg aefd | cABG A2 :: AB | ceef edcA | ceef e2 dc | 
 Bdde dBGA | Bcde dcBd | ceec BeeB | cABG ABcB | Aceg aefd | cABG A2 :|  