Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
M:4/4
K:G
['BGAF DG G2 AF F2 d2 cA', 'G3 B dggf g2 ag fddc ABcA', 'Bd d2 BGdB AGFG', 'B2 GB', '(3Bcd gd']  
X:1
L:1/8
M:4/4
K:G
 A | BGAF DG G2 | AF F2 d2 cA | BGAF GBeg | fdcA dBcA | BGAF DG G2 | AF F2 d2 cA | BGAF GBeg | 
 fdcA G3 :: B | dggf g2 ag | fddc ABcA | dgga bgag | fdcA G2 (3Bcd | gagf d3 c | BG G2 ADFA | 
 GBAc (3Bcd ge | fdcA G3 :: A | Bd d2 BGdB | AGFG ABcA | Bd^cd BGdB | =cAFG AGGA | Bd d2 BGdB | 
 AGFG AB (3cBA | GBAc (3Bcd ge | fdcA G3 :: A | B2 GB B2 GB | A2 FA DAFA | B2 GB B2 GB | 
 (3cBA FG AGGA | B2 GB GBGB | A2 FA FAFA | GBAc (3Bcd ge | fdcA G3 :: A | (3Bcd gd (3Bcd gd | 
 Adfd Adfd | (3Bcd gd (3Bcd gd | cAFG AGGA | (3Bcd gd gdgd | Adfd AdFA | GBAc (3Bcd ge | fdcA G3 :|  