Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:4/4
K:D
['(3Bcd eg', 'b2 a2 ^ga f2 f2 |1 gfeg'  
X:1
L:1/8
M:4/4
K:D
 (3Bcd eg f2 f2 | g2 gf gfed | (3Bcd eg fa a2 |1 gfeg fedA :|2 gfeg fedf |: a2 ^ga f2 f2 | 
 agfa gb b2 | a2 ^ga f2 f2 |1 gfeg fedf :|2 gfeg fede |: fedf edce | dBcd cA A2 | BAGB AF F2 |1 
 EFGE FEDe :|2 EFGE FEDA ||  