Simple function missing?

I have looked for years for a very simple looping pedal that does one thing. So far I have not found one and I ended up doing a Max patch to make my own (which has some memory handling issues, since I am not a programmer, and I do not like to bring my computer to stage if it can be avoided).
Now I am wondering if this is possible to do with loopy, or if it is possible to add.

I want a pedal that is used without overdubs and only needs one press to record/re-record!
I want to use my looper in a live setting, jamming. This means I do not want to build up a song with different loops, I just want one loop that is very flexible so that I can change it immediately.

So my request is this:
I want a midi command that records when it receives a note value, when it gets the same note value again it stops recording and immediately starts playing the loop that was just recorded. When it gets the same note value again it erases the loop and starts recording (re-recording) a new loop and when it gets the same note value it stops recording and starts playback.
No count ins, just punch in recording!
So basically one footswitch would let me record one rhythm part for the verse, let me play over that part without recording, then by a press of the pedal I can record a new part for the chorus (and the verse part is now gone) and play over this. I can then play a new part for the bridge and so on.
The best way for me would be if I could assign MIDI notes to each track so that I have one note connected to each track and I could then re-record the tracks separately whenever I want.
It would also be nice with one MIDI note for mute of each track.
This would mean that I could use Loopy without ever having to look at the app! Could just play and use my 12 step midi pedal to control everything!
I think the commands for changing tracks are messy, it is much better to just press one pedal and know what track your on.

I think this is a simple functionality that would not take to much effort to implement if it is not already possible. So if this would be possible to solve I would be most grateful!

Now to some additional functionality that I would find very useful:
Have a free recording mode. Instead of setting the number of bars before recording, make the loop the number of bars it becomes from the time record is pressed until stop is pressed.
This makes a more jam orientated situation much easier, because no planning is needed, you just play what you play for as long as it feels right and then that loops!
This could of course be quantized to the main tempo, so that the loop length is synchronized to multiples of the beat.
Connected to this is my second useful function:
Punch-in recording with quantization, pre-recording and trigger threshold for pre-recording.
When doing punch-in looping it is easy to be sloppy with the pedal. Also tempo locked looping is hard to do with groove oriented music that has a lot of syncopation. If a note is deliberately played slightly before the 1 of the beat it easily gets lost or the beat length is skewed or offset.
This can be solved by continuously recording the input to a buffer and noting the last time the level was above a given trigger threshold. So if a note starts 30ms before the beast and the pedal is pressed on the beat the looper knows that there has been a signal over the threshold within a given time so it will include the first 30ms in the loop.
The loop still ends on the beat so it rotates perfectly, but the begining of the loop starts 30ms early so it overlaps the end of the loop, still keeping all relations to the metronome and beat but also keeping the syncopation.

Comments

First function is not currently possible from what I can tell. There are a number of "advanced controls" where a single midi input will go through a sequence of commands. But "record, play, re-record" is not in the list.
This function would be something you could set up a secondary MIDI app to handle, if you want to take the time to learn it. Basically your single note from footswitch press would be received by the MIDI app, which could cycle through a list of commands that it forwards to Loopy. I use MIDI Designer Pro for this type of stuff and it is rock solid.

Also for your one-button per track workflow, you could do this with the "note hold" MIDI binding in Loopy. But that might mess up your workflow because you would have to hold the footswitch for a bit before the track clears and you can re-record.

Thanks for all the useful input!
I will sit down and re-read your sugestions and sit a bit more with Loopy to see if I can work something out.

One thing I thought about is that my 12 Step MIDI pedal has a legato function which basically means that if I push a note it holds that note until I push it again.
So I was thinking maybe I could asign note on and note off messages to different functions and then do what I want?
Also if I had one footswitch to start recording and one to stop the recording it is not a big deal, the important thing is that I start by erasing and recording over the part instead of doing an overdub.
Could anyone give me sugestions on how to set this up?

I have tried using the re-record function, but the anoying thing is that I have only found re-recording with confirm, so the recording does not start when I push the footswitch, it just pops up a question if I want to start the recording or cancel.
Is there a way of assigning re-record whitout confirm?