I'm working on a Looper project using python and jackclient-python library. Keep a tab open for the code.
If you know what is a loop pedal and how it functions, you'll probably get it. A simple looper, without overdubbing. So there's a button for toggling recorder. User makes connections with a patchbay, hits record, starts playing something, hits it again and the recording is done. So the audio is recorded between two hits. That audio should be looped now.