Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
Q:1/8=300
M:2/2
K:G
['D GABG cAFA', 'edBA dBAG BAGE DEGB A2 GA', 'E2 B3 d edBd edgd edgd gedB'  
X:1
L:1/8
Q:1/8=300
M:2/2
K:G
"^Hornpipe" D | GABG cAFA | GFGA BDEF | GFGB AGAB | dAFA G3 D | GABG cAFA | G3 A BDEF | GABc defd | 
 cdAB G3 :| A | BABd edBA | dBAG BAGE | DEGB A2 GA | BGAG EG D2 | B3 d edBA | dBAG BAGE | 
 DEGB A2 GA | B2 G/A/B FG E2 || B3 d edBd | edgd edgd | gedB A/B/A GA | BGAG EG D2 | GABG cAFA | 
 GFGA BDEF | GABc defd | cdAB G3 |]  