Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:4/4
K:C
['', 'BAFA BEED EFGe fgec', 'd2 (fd) Adfd'  
X:1
L:1/8
M:4/4
K:C
 .abc ||[M:2/2][K:D] (3(TABc)"^segno" | d3 B BAFA | BcdB BAFA | BEED EFGe | fgec dcBc | 
 d>D (3DDD (FD)FA | Bcec BAFA | BEED EFGe | fgec d2 || (3(ABc) | d2 (fd) Adfd | Adfd cdec | 
 d2 (fd) Adfd | fgaf gfec | d2 (fd) Adfd | Adfd cdeg | Tf4 Te4 | a3 f gfec"^segno" |]  