Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/4
K:D
['D>D d>c']  
X:1
L:1/8
M:2/4
K:D
 D>D d>c | (B>A) (3GFE | (3FGSA (B>A) | (3FGA B>A | D>D d>c | (3Bcd (3FGB | A>d A>F | (3EFG (3FED | 
 (3DFA d>c | (3Bcd (3GAB | A>d (3AGF | (3EFG (3FED :|  