Develop a musical composition based on the specified form and using the given motif.
X:1
L:1/8
M:4/4
K:C
['f2 d2 e^def B3 d c2 EF', "f2 e^de^a b2 bd' c'bge c3 d", 'f2 efdc B2 Bd cBGA c3 d'  
X:1
L:1/8
M:4/4
K:C
[M:4/4][K:D] a_c[Q:1/8=270]AFAd f2 d2 | e^def B3 d | c2 EF G3 A | BAAB A2 F2 | AFAd f2 d2 | 
 e^def B3 d | c2 EF GABc ||1 d2 e2 d2 FG :|2 d2 c2 d2 || ag | fdad f2 f2 | e^de^a b2 bd' | 
 c'bge c3 d | (3efe (3dcB A2 a2 | fdad f2 f2 | e^de^a b2 bd' | c'bge c3 d | (3efe dc d2 :| 
"^alternate second part" ag | fdad f2 f2 | efdc B2 Bd | cBGA c3 d | e2 dB A2 a2 | fdad f2 f2 | 
 efdc B2 Bd | cBGA c3 d | (3efe dc d2 :|  