Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/16
M:6/8
K:G
['Writ, see GB d4 d2 d4 d2e2d2c2', 'GB d4 d4', 'D4 G4 GAGF E4 A4 ABAG F4']  
X:1
L:1/16
M:6/8
K:G
"^As Writ, see notes" GB d4 d2 d4 | d2e2d2c2 B2B2 | G2A2B2 G2A2B2 | B4 A4 A4 | AB c4 c2 c4 | 
 c2d2c2B2 A2A2 | F2G2A2 F2G2A2 | B4 G4 G4 :: GB d4 d4 cB | B4 A2 A2G2A2 | Ac e4 e4 dc | 
 c2B2 B2A2 B4 | GB d4 d4 ce"B" | Ac e4 e4 df | g6 e2 dcBA | B4 G4 G4 :: D4 G4 GAGF | E4 A4 ABAG | 
 F4 D2 E4 F2 | GFGB e4 d4 | D4 G4 GAGF | E4 A4 ABAG | F4 D2 E4 F2 | G4 G4 G4 :|  