Compose musical pieces adhering to the prearranged pattern, utilizing the provided motif.
X:1
L:1/8
M:2/2
K:D
['d2 (dc) dAFA', 'd2 (a^g) afdf'  
X:1
L:1/8
M:2/2
K:D
 d2 (dc) dAFA | dbab fbaf | d2 (dc) dAFA | Beed cABc | d2 (dc) dAFA | Bbab 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 ||  