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/4
K:G
['AB G2']  
X:1
L:1/8
M:2/4
K:G
 D2 | G3 F | G2 AB | G2 GF | G2 c2 | B2 AB | G2 B2 | A4 | z2 AB | c3 B | ABcA | B3 G | A2 z2 | 
 B2 AG | FEDE | F2 G2 | FEDE | F2 |]  