Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
Q:1/2=100
M:4/4
K:D
['fgaf d/d/d df edef', 'd2 eAcA eAfe fAdA fgab afef d/d/d']  
X:1
L:1/8
Q:1/2=100
M:4/4
K:D
 fgaf d/d/d df | edef dB B2 | fgaf d/d/d df | edef d2 d2 :: eAcA eAfe | fAdA fgab | afef d/d/d df | 
 edef d2 d2 :|  