Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:D
['F<DF>A d2 d>f e>cd>b c<aa>=c']  
X:1
L:1/8
M:4/4
K:D
 G | F<DF>A d2 d>f | e>cd>b c<aa>=c | B<Gd>B A2 F>D | E>A^G>B (3ABA (3=GFE | F<DF>A d2 d>f | 
 e>cd>b c<aa>=c | (3BGB (3dcB (3Afe (3dcB | (3ABA (3GFE F<D D ||  