I have recorded a guitar riff for looping, which looks like this:

I have recorded the riff several times and picked out the best two bars. This is two bars with the same riff. Look at bar line 25. A note starts 1/8 note before the bar line, and continues until the second beat. When trying to loop this, a few problems arise. First, each time the loop restarts, there is a noticable transition between the last note in the bar, and the "same" note from the previous bar. I have solved this already by moving the loop region 1/8 to the left, as you see on the picture. Second, It is confusing that the decay of the note comes in when the clip starts. This could be solved by making an extra first bar before the looping, with the first note silenced, but then there is the third problem: when the loop stops, the last note is abruptly ended.
I would like it to behave as if it was MIDI: The first time the bar is played, the decay from the note at the end of the bar is not played, and the last time the bar is played, the note continues to decay until it is silent. Is there a way to do this? I am an Ableton newbie, and this is my first real project.
