Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:6/8
K:D
['AFE F3', 'AFA B2 A', 'fdB ABd fed edA BAF A2 d', 'DFA d2', 'AFA e3 ede']  
X:1
L:1/8
M:6/8
K:D
 AFE F3 | DED D2 B | AFE F3 | DFA BdB | AFE F3 | DED D2 f | gfe fdB |1 AFA Bd :: d2 e fed | 
 AFA DFA | d2 e fed | AFA B2 A | def edB | BAF ABd | faf edB |1 AFA B2 A :: ABd fdd | ede fdB | 
 ABd fed | edA BAF | A2 d fdd | ede fed | faf g2 e | edA BdB :: DFA dAF | DFA BGE | DFA d2 F | 
 GEF GFE | DFA d2 e | edc def | gfe fdB | AFA B2 B :: d2 d def | A3 AFA | e3 ede | fed BAB | 
 d2 d def | A3 AFA | e3 ede |1 fdc d2 A :|  