Develop a musical piece by utilizing the alphabet-based notation of the selected musical form and the provided melodic idea.
X:1
L:1/8
M:4/4
K:D
['f2 d2', 'F4- F>G^G>A f4- f2 e2', 'd2 B2', 'B>^A (3Bcd', 'g>d (3Bcd', 'd2 B2']  
X:1
L:1/8
M:4/4
K:D
 F>G^G>A B>AG>A | f2 d2 f2 d2 | F>G^G>A B>AG>A | E4- E4 | E>FG>A B>A^G>A | f2 e2 c2 B2 | 
 A>Bc>B A>GE>=F | F4- F4 | F>G^G>A B>AG>A | f2 d2 f2- f>e | d>DF>A e>dc>d | B4- B4 | 
 B>^AB>d g2 d2 | A>^GA>d f2 d2 | A>^GA>c d2 c2 | d4- d4 || F4- F>G^G>A | f4- f2 e2 | 
 d>AF>A d2 e>d | c2 B2 G4 | E4- E>FG>A | c4- c2 B2 | A>Bc>B A>GE>=F | F2 B2 A2 G2 | F4- F>G^G>A | 
 f4- f2 e2 | d>AF>D d>Af>d | c2 (3BcB G4 | g>fe>f g2 B2 | f>ed>e f2 A2 | e>dc>d e>gf>e | 
 d2 f2 d4 ||[K:G] b2 g>f g2 d2 | b>ag>f g4 | e>^de>f g>ag>e | d4- d2 B2 | c>Bc>^c d2 =c2 | 
 B>^AB>c d2 B2 | ^c4- c2 d2 | d2 c2 B2 A2 | b>ag>f g>dB>d | b>ag>f g2- g>d | e>^de>f g2- g>e | 
 d4- d4 | e>^de>g c g2 | d>^cd>g b2 g2 | d>^cd>f g2 f2 | g4- g>dc>A ||[K:D] F>G^GA B>AG>A | 
 f2 d2 f>d (3Bcd | F2 (3G^GA B2 (3AGA | E4- E3 D | E2 (3FGA B>A^G>A | f2 e2 (3cdc B>^A | 
 A>Bc>B (3ABA (3GE=F | F4- F>A^G>A | F>G^G>A B2 (3FGA | f2 d2 A2 (3GFE | d>D (3FGA e>dc>d | 
 B4- B>^A (3Bcd | B>^A (3Bcd g>dB>A | A2 (3^GAd f2- f>d | A>^GA>c (3ded c2 | d4- d>A^G>A || 
 F4- F>G (3G^GA | f4- f>^ef3/2=e | d>AF>D d>F (3efd | c2 (3BcB G2 (3FGF | E4- E2 (3FGA | 
 c4- c>dc>B | A2 (3cec B>^A (3GE3/2=F/ | F4- F>B^A>G | F2 F>G ^G>A (3B^AB | f4 f>dA>e | 
 d>A (3FED d>A (3fed | (3cdc (3BcB G4 | g>d (3Bcd g>db>g | f>A (3cde f>da>f | e>Ac>d e>g (3gfe | 
 (3ded f2 d2 (3Ad/e/f ||[K:G] b>ag>f g>d (3Bcd | b2 (3agf g2 d2 | e2 (3^def (3gag (3ag/f/e | 
 d4- d2 B2 | c>Bc>^c d2 =c2 | B>^AB>c d2 B2 | ^c4- c>e (3Ace | (3ded (3cdc (3BcB A2 | 
 b2 (3agf g>dB>d | b>a (3agf g2- g>d | e>^de>f g2- (3gfe | d4- d>gf>g | e>^de>g c>g (3efg | 
 d>^cd>g (3bcb (3gfe | d>^c (3def g2 f2 | g4- g>d (3c/B/AG ||  