Create a composition using the letter notation of the specified musical motif and the provided melodic theme.
X:1
L:1/8
M:2/2
K:D
['d2 (dc) dAFA', 'cABc d2 (dc) dAFA dbab fbaf bagf', 'd2 (a^g) afdf', 'cABc d2 (a^g) afdf abaf e^deg bgaf']  
X:1
L:1/8
M:2/2
K:D
 d2 (dc) dAFA | dbab fbaf | d2 (dc) dAFA | Beed cABc || d2 (dc) dAFA | dbab fbaf | bagf edcB | 
 Aeed cABc |] | d2 (a^g) afdf | abaf e^def | d2 (a^g) afdf | efed cABc || d2 (a^g) afdf | 
 abaf e^deg | bgaf gfed | efed cABc |]  