Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
M:4/4
K:D
['D2 (3DDD DFAA defe', 'f>d (3dcd']  
X:1
L:1/8
M:4/4
K:D
 D2 (3DDD DFAA | defe d{cd}cBA | FA A2 BA A2 | GFED CEA,C | D2 (3DDD DFAA | defe dcBA | FAAA BAGE | 
 D2 (3DDD D2 :| f>d (3dcd A>d (3dcd | f>d (3dcd bgaf | gfec Acef | (3gag b>g agfg | Adcd (3Bcd AF | 
 Adcd (3Bcd A2 | Adfa gece | d2 (3ddd d2 :|  