Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:4/4
K:D
['A,D D2 A,DFA BFAF E2 FA', 'fd d2 fdge fdgf edBc dBBA', 'D2 fd d2 fdge fdgf edBc dBBA']  
X:1
L:1/8
M:4/4
K:D
 A,D D2 A,DFA | BFAF E2 FA | dBcA BdAF | GEFD EDB,D | A,D D2 A,DFA | BFAF E2 FA | d2 cA BdAF | 
 GFEG FD D2 :| fd d2 fdge | fdgf edBc | dBBA Bcde | fdgf e2 de | fd d2 fdge | fdgf edBc | 
 dBBA BdAF | GFEG FD D2 || fd d2 fdge | fdgf edBc | dBBA Bcde | fagf e2 de | fgaf edBc | 
 defd BAFD | A,D D2 A,DFA | BFAF D3 z |]  