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
['dcdA BAFB AFEA (3FED DE F2 AF', 'afdf g2 fg']  
X:1
L:1/8
M:4/4
K:D
|: dcdA BAFB | AFEA (3FED DE | F2 AF G2 BG | ABde fedc | dcdA BAFB | AFEA (3FED DE | F2 AF G2 BG | 
 ABde fd d2 :: fa a2 afdf | g2 fg eBBA | fa a2 afdB | ABde fd d2 | a3 b afdf | g2 fg edBA | 
 F2 AF G2 BG | ABde fd d2 :|  