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
['a4 g4 efed c2 cd ecef gaba', 'c2 A2 A2']  
X:1
L:1/8
M:4/4
K:D
 a4 g4 | efed c2 cd | ecef gaba | g2 e2 e2 ef :| abaf gagg | efed cdef | g2 d2 efed |1 
 c2 A2 A2 eg :|2 c2 A2 A2 A2 ||  