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:D
['F2 FE FGAF', 'eA (3AAA'  
X:1
L:1/8
M:4/4
K:D
 F2 FE FGAF | G2 GF GBAG | FD (3DDD FGAF | GECD EDDE | F2 FE FGAF | GFEF GABc | dD (3DDD FGAF | 
 GECD EDD z :| =FEDE FAGF | ^DFBA ^GABG | A2 A^G ABcd | eA (3AAA eA^GA | eA (3AAA ^GA (3AAA | 
 GA (3AAA FAAF | GECD EDDC | DE=FE FAGF | ^DFBA ^GABG | A2 A^G ABcd | eA (3AAA eA^GA | 
 eA (3AAA ^GA (3AAA | GA (3AAA FAAF | GECD EDCE | DFEC D3 E ||  