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
['d c A F']  
X:1
L:1/8
M:4/4
K:G
 d | c A F A | G B d d | c A F F | A G2 d | g2 g e | d2 G B | e d B G | G3 z | A2 D F | G2 B d | 
 c A F c | d2 d d | g g g e | d B G B | e2 d F | G4 |]  