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/2
K:Bmin
['f2 f2', 'f g2 g', 'ag fa eg f3 f gf eg']  
X:1
L:1/8
M:3/2
K:Bmin
|: B2 B2 BcdB c4 | d2 d2 defd e4 | a2 a2 a2 gf e4 |1 f2 f2 f2 ed c4 :|2 f2 f2 f2 ed c3 A |: 
[M:2/4] dcde | fgfd | edce |1 d3 A :|2 d3 e || f g2 g | g2 Be | f g2 g | g2 ag | fa eg | f3 f |: 
 gf eg | fe df | ed ce |1 d3 f :|2 d4 ||  