Fourier Series Character Animation Adapting and Generating Actions