Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:D
['ADFA dBBA G3 B A F3 ABdf', 'f2 fd'  
X:1
L:1/8
M:4/4
K:D
|: A3 B ADFA | dBBA G3 B | A F3 ABdf | edBA BedB | AF F2 ADFA | dBBA G3 B | A F3 ABdf |1 
 edBA BcdB :|2 edBA Bcde :| f2 fd g2 ge | f2 fd Bcde | fAdf g2 fg | afed Bcde | f2 fd g2 ge | 
 f2 fd BcdB | BAFB ABdf | edBA Bcde | f2 fd g2 ge | f2 fd Bcde | fAdf g2 fg | afed Bdfa | 
 b f3 affe | defd efdB | BAFB ABdf | edBA BcdB ||  