Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/4
M:4/4
K:D
['A A']  
X:1
L:1/4
M:4/4
K:D
 A A | F3/2 E/ F E | F B G A | B2 d d | d3/2 d/ e B | A A G F | E2 A A | F3/2 E/ F E | 
 F d3/2 d/ B | A A G E | D2 D D | B3/2 A/ B A | B F A A | B F3/2 E/F/ E/ | F B G A | B2 d d | 
 d3/2 d/ e B | A A G F | D2 ||  