Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['B2 D2 B3 A G2', 'G2 (Bc)'  
X:1
L:1/8
M:4/4
K:G
 (GA) | B2 D2 B3 A | G2 (EF) D2 (Bc) | d3 e (dedB) | (cB)(AG) A2 GA | B2 D2 B3 A | G2 EF D2 (dc) | 
 (Bd)(AB) (GB)(EG) | (DG)(FA) G2 |] (Bc) | d2 B2 g3 a | (ga/b/) (GA) G2 (Bc) | (dB)(ba) (ge)(dB) | 
 (AGAB) D2 GA | B2 D2 B2 (AG) | c2 E2 c2 (BA) | (Bd)(AB) (GB)(EG) | (DG)(FA) G2 |]  