Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:2/2
K:D
['(3fga ec dBAd (3Bcd AF']  
X:1
L:1/8
M:2/2
K:D
 DEFG BAAA |{d} BAdB AFEF | DEFA BAAA | (3Bcd (AF) EDB,E | D2 (FA) (BA)AA | (3BdB dB ABde | 
 (3fga ec dBAd | (3Bcd AF EDEF | ABde (fe)ef | defd edBd | ABde (fe)ec | dBAF EDB,E | ABde (fe)ef | 
 dfaf edBd | (3fga ec dBAd | (3Bcd AF ED D2 |]  