Compose melodious passages using the designated musical pattern and specified motif.
X:1
L:1/8
M:2/4
K:D
['g f d2 f e c2 e', 'd2 A F A2 =c B G2'  
X:1
L:1/8
M:2/4
K:D
 g | f d2 f | e c2 e | dB AG | F A2 f | g b2 g | afed | c e2 g | f d2 :: A | F A2 =c | B G2 f | 
 gfed | c e2 g | afec | dBAF | GEAG | F D2 :|  