Create melodies using the given musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['GABG ABcA defd dcBA', 'f2 ed'  
X:1
L:1/8
M:4/4
K:D
 D2 | GABG ABcA | defd dcBA | BcBG ABAG | FGAB cAFD | GABG ABcA | defd dcBA | B3 d cAGF | 
 DGGF G2 :| (3def | g2 eg f2 ed | gage f2 ed | defg abag | f2 d2 dedc | B3 G AF D2 | BdBG ABcA | 
 defd cAGF | DGGF G2 :|  