Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
Q:1/8=270
M:9/8
K:D
['Ace efd edB', 'efg agf'  
X:1
L:1/8
Q:1/8=270
M:9/8
K:D
 e | Ace efd edB | Ace edB d3 | Ace efd edB | Bg=c BAG A2 A | Ace efd edB | Ace edB d3 | 
 Ace efd edB | Bg=c BAG A2 || d | efg agf g<ed | efg agf g2 d | efg agf g<ed | BAG GAB d2 e | 
 efg agf g<ed | efg agf g2 d | efg agf g<ed | BAG GAB d2 ||  