Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:3/4
K:A
['e4 cA d2 B2 z2', 'z2 e2 ed e2 f2 fe f2']  
X:1
L:1/8
M:3/4
K:A
 e4 cA | d2 B2 z2 | .c2 .d2 .e2 | .f2 .g2 .a2 | e4 cA | d2 B2 z2 | (ce)(ed)(dc) | c2 B2 z2 :: 
 e2 ed e2 | f2 fe f2 | g2 gfge | agab a2 | e4 cA | d2 B2 z2 | (3agf edcB | B4 A2 :|  