Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
Q:1/2=100
M:2/4
K:D
['abag fd d2', 'fdge fdge']  
X:1
L:1/8
Q:1/2=100
M:2/4
K:D
 abag | fd d2 | Beed | cA A2 | abag | fd d2 | B2 cc | d4 :: fdge | fdge | Beed | cA A2 | fdge | 
 fdge | B2 cc | d4 :|  