Formulate a musical piece by utilizing the specified motif and alphabet-based structure.
X:1
L:1/8
M:4/4
K:D
['f a>g f2 d2 d>fa>f (3gfe (3fed', 'a>^ga>b a>fb>a f>^ef>g f>=ed>f']  
X:1
L:1/8
M:4/4
K:D
|: f a>g | f2 d2 d>fa>f | (3gfe (3fed e>fe>d | c<dB>c A>AB>c | d>cd>f b>a^g>a | (3fff d>c d>fa>f | 
 g2 e2 e3 d | c>dB>c A>gf>e | d2 (3edc d :: e f>g | a>^ga>b a>fb>a | f>^ef>g f>=ed>f | 
 a2 g2 e>Ac>e | b2 a2 f>ed>f | a>^ga>b a>fb>a | f>^ef>g f>=ed>f | (3aaa g2 e>Ac>e | (3ddd c2 d :|  