Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
Q:1/4=130
M:2/4
K:D
['d>ef>g d>BA>d', 'D B A>DA>F A>DA>F B>EB>G B>EB>G A>DA>F', 'a>ba>f a>ba>f'  
X:1
L:1/8
Q:1/4=130
M:2/4
K:D
 f | d>ef>g | d>BA>d | B>de>g | E/E/E E>g | d>ef>g | d>BA>d | B>dA>F | D/D/D D || B | A>DA>F | 
 A>DA>F | B>EB>G | B>EB>G | A>DA>F | (AB)(df) | (dB)(AF) | D/D/D D || f | a>ba>f | a>ba>f | 
 (ge)(be) | (ge)(be) | a>ba>f | a>ba>f | g>ea>f | d/d/d d |]  