Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/4
M:4/4
K:D
['E F'  
X:1
L:1/4
M:4/4
K:D
 A | D D E F | B2 A F | (G/F/) D D | D2 (3(A B) c | d3/2 c/ B A | (G A) B c | A3 A | d2 =c B | 
 A2 d B | A G (A D) | (D C) D F | G A B c |"^(1)" A3/2 G/ E F | D3 A | d2 =c B | A2 d B | 
 A G (A D) | (D C) D F | G A B c |"^(1)" (A3/2 G/) E F | D3 ||"^(1) (once only)" (A3/2 F/) G E | 
 D2 ||  