Formulate music by adhering to the alphabetic portrayal of the designated musical layout and the motif given.
X:1
L:1/8
Q:1/4=160
M:3/4
K:A
['cd e2 c2 d2 B2 c2 A2', 'e2 c2']  
X:1
L:1/8
Q:1/4=160
M:3/4
K:A
 cd e2 c2 | d2 B2 c2 | A2 B2 G2 | AGABAB | cd e2 c2 | d2 B2 c2 | A2 B2 G2 | A6 :| cBABcd | 
 e2 (e3 d/e/) | f2 e2 d2 | e2 c2 a2 | e2 fe d2 | e2 c2 d2 | e2 fedc | B6 | cd e2 c2 | d2 B2 c2 | 
 A2 B2 G2 | AGABAB | cd (d3 c/d/) | e2 c2 a2 | c2 dcBc | A6 |]  