is there a way to record the movements in real time, then I automatically use later?

Yes but you need something to register your movements like a physical controller.Perhaps the best thing is to look at music controllers like MIDI interfaces and use MIDI software to record your movements. Or you can be more modern with OSC commands. There are iPod and iPad controllers that could be customised for this.