Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/4
M:3/4
K:G
['B c B A']  
X:1
L:1/4
M:3/4
K:G
 D | G3/2 A/ B | c B A | G/ D3/2 E | D2 B | B d d | d2 G | (A3 | A2) B | B/ d3/2 c | (B A) G | 
 (G/ D3/2) E | D2 D | (G3/2 A/) B | c B A | (G3 | G2) ||  