Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/16
Q:1/4=90
M:3/8
K:D
['fg a2f2d2', 'e2 e2f2g2', 'fg afafaf a2a2fg']  
X:1
L:1/16
Q:1/4=90
M:3/8
K:D
S fg | a2f2d2 | g2fefd | e4 fg | a2f2d2 | f2gfge | d4 :: e2 | e2f2g2 | f2edef | e4 e2 | e2f2g2 | 
 f2edef | d4 :: fg | afafaf | a2a2fg | afafaf | a4 fg | afafaf | a2a2fg | afafaf | a4"^NB"!D.C.! :|  