Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/16
Q:1/8=120
M:3/8
K:D
['d4 f2 a2afd2', "cd e2>c'2ba", 'A2 d4 e2 d2c2c2 e4 f2 e2d2d2', 'ag e2e2 e2>g2ce'  
X:1
L:1/16
Q:1/8=120
M:3/8
K:D
 A2 | d4 f2 | a2afd2 | c2cea2 | bagfge | d4 f2 | a2afd2 | ceagec | d4 :: cd | e2>c'2ba | 
 a^g d'2b2 | a^gaecA | cBB2 cd | e2>c'2ba | ^gbd'bge | aefdcB | A4 ::"^Bugle Solo" A2 | d4 e2 | 
 d2c2c2 | e4 f2 | e2d2d2 | dcdefg | a2f2d2 | A2>B2c2 | d4 :: a2 | ag e2e2 | e2>g2ce | df a2a2 | 
 ad'fadf | ag e2e2 | e2>g2ce | dfafge | d4 :|  