Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
Q:3/8=110
M:6/8
K:D
['', 'A2 d dcd f2 d', 'd2 f g2 b']  
X:1
L:1/8
Q:3/8=110
M:6/8
K:D
 A"^*" |: A2 d dcd | f2 d d2 d | B2 e e2 e | g2 e cBA | A2 d dcd | f2 d d3 | c>BA A"^*"Bc | 
 d>ef e2 d :: d2 f g2 b | a2 b afd | d2 f g2 b | afd e3 | d2 f g2 b | a2 b afd | dcB ABc | 
 def fed :|  