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
['F2 AF dFAF DFAF GFEG FDFA (3Bcd', 'a2 fg']  
X:1
L:1/8
M:4/4
K:D
 F2 AF dFAF | DFAF GFEG | FDFA (3Bcd eg | fdec dBAG | F2 AF dFAF | DFAF GFEG | FDFA (3Bcd eg | 
 (3fga ec dcBA || a2 fg adfg | a2 fg afbf | a2 fg afbf | gfed cdef | a2 fg adfg | a2 fg afbf | 
 abaf gage | fgfe dBAG ||  