Compose melodies based on the specified pattern and provided motif.
X:1
L:1/4
M:3/4
K:G
['B/>A/ G B d g2 f f3', 'A A'  
X:1
L:1/4
M:3/4
K:G
 B/>A/ | G B d | g2 f | f3 | e2 G | F A c | e2 d | (B3 | B2) B/>A/ | G B d | g2 f | f3 | e2 G | 
 F A c | e2 d | (G3 | G2) d || d2 A | A B c | (B3 | B2) d | d A A | A d3/2 c/ | (B3 | B2) d | 
 e2 e | c B c | d2 d | B A G | F A c | e d F | (G3 | G2) ||  