Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:D
['[DD]E FD', 'b/a/ ^gEbE a(A,A,) a/=g/ fDaD b(G,G,)B, A,/B,/C/D/'  
X:1
L:1/8
M:4/4
K:D
 A, |{C} [DD]E FD EA, D2 |{D} d>c .B/.A/.G/.F/{D} FEEF | [DD]E FD G>A B>B | 
 .A/.B/.c/.d/ .e/.f/.g/.e/ [Af][Fd][Fd] :| .a/.g/ | fDad b(G,G,) b/a/ | ^gEbE a(A,A,) a/=g/ | 
 fDaD b(G,G,)B, | A,/B,/C/D/ E/F/G/A/ FDDa | d'dDd' b(G,G,)b | e'b E^g a(A,A,>)B, | 
 [DD]E FD EA, D2 | .A,/.B,/.C/.D/ .E/.F/.G/.A/ FDD ||  