Construct a melodic piece using the alphabet-based musical sequence and the given motif.
X:1
L:1/8
M:4/4
K:C
['', 'd3 a f d2', 'd2 eAcA eAgA fAdA fAaA bg eb', 'F>AGB A>D F/E/D', 'a (fe/d/) A>d fdaf f/e/d a>d g']  
X:1
L:1/8
M:4/4
K:C
[K:D] |: d3 a f d2 a | b e2 d c A2 c | d3 a f d2 f | (ed)(ef) d2 d2 :: eAcA eAgA | fAdA fAaA | 
 bg eb af da | bagf (f2 e2) :|[M:2/2][K:D] A | F>AGB A>D F/E/D | B,DA,G F/E/D EG | 
 F>AGB A>D F/E/D | FdGB ADD :| a | (fe/d/) A>d fdaf | f/e/d a>d g e2 g | f/e/d A>d fdad | 
 B<d Gg f d2 g | (f/e/d) A>d g>baf | gefd c>deg | f>d cB/A/ B>d AG/F/ | GBAc d D2 |]  