MIDI CC looping

what would the best way to loop incoming MIDI CCs be or is there a way to do that currently?

The LFOs are a great start in this direction but I’d really like to be able to record small gestures via incoming MIDI then be able to output as normal