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
['D<D A>D B>D', '(3fed (3edc']  
X:1
L:1/8
M:4/4
K:D
 z | D<D A>D B>D Ac | d>c B<d A>D C<E | D<D A>D B>D A>F | G/F/E A>G F<D D :| g | 
 (3fed (3edc (3dcB A>F | (3GAB (3AFD G>E C>g | (3fed (3edc (3dDE (3FGA | B<d A>G F<D Dg | 
 (3fed (3edc (3dcB A>F | (3GAB (3AFD G>E C>E | D<D A>D B>D A>g | (3fga (3gfe d<D D |]  