Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
Q:1/4=120
M:3/4
K:G
['G2 G>A (3GAB D2 D>E', 'd2 DEFD'  
X:1
L:1/8
Q:1/4=120
M:3/4
K:G
"^Majestic" D | G2 G>A (3GAB | D2 D>E DF |{GA} B2 B>c B>c | A2 FGAF | G2 G>A (3GAB | D2 D>E D/E/F | 
 G>A G/A/B (D>F) | [B,G]4 z :: (B/c/) | d2 BcdB | c2 AA/B/ cA | B2 GABc | d2 DEFD | 
 d2 BB/c/ d/c/d/B/ | c2 AB c/B/c/A/ | B>AGAB^c | d2 DEFD | B2 G>A (3GAB | D2 D>E (3DEF | 
 (G>A) G/A/B (D>F) | [B,G]4 z :|  