Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:Bmix
['AECE AECE AGAB c_ccd', 'CEAe defe defe cefe ceag f=dAF =DFAf'  
X:1
L:1/8
M:4/4
K:Bmix
 AECE AECE | AGAB c_ccd | eBGB eBGB | edef e=dcB | AECE AECE | AGAB c_ccd | efgf e=dcB |1 
 A/B/AGB A=dcB :|2 A/B/AGB A2 ag || f=dAF =DFAf | ecAE CEAe | defe defe | cefe ceag | f=dAF =DFAf | 
 ecAE CEAe | ^degf e=dcB |1 A/B/AGB A2 ag :|2 A/B/AGB A4 ||  