Compose a musical piece that incorporates the given motif and adheres to the specified form.
X:1
L:1/8
M:3/8
K:C
['ccc AAA', "c2 g/f/ egg f/g/a/g/a/f/ dff e/f/g/f/g/e/ gc'e", 'c2 c Bdf ceg'  
X:1
L:1/8
M:3/8
K:C
 (3(G/A/B/) | ccc | AAA | f/>d/cB | c/e/g/e/g/e/ | ccc | AAA | dfB | c2 :: g/f/ | egg | 
 f/g/a/g/a/f/ | dff | e/f/g/f/g/e/ | gc'e | gc'e | g/f/ed | c2 :: c | Bdf | ceg | Bdf | c2 c | 
 Bdf | ceg | Bd/c/d/B/ | [cE]2 :|  