e|--------------p------------------p----------------12--------------------|
B|--------------a------------------a---10-12-13----------------------|
G|--------------u------------9----u---------------------------------------|
D|--------------s --7-9-10-------s--------------------------------------|
A|----------7---e-----------------e---------------------------------|
E|--5-7-8-----------------------------------------------------------|
Ok, I'm trying to play this sequence from a Sonata Arctica song but it is supposed to be played really fast and I'm having some problems. It's a four note-pattern as you can see but I don't know how I am supposed to play the last note of each repetition.
I obviously use index, ring, pinky for the first 3 notes but then I don't have time to lift my ring finger and put it in the fret below. At the moment I'm trying two different things:
1. bending my ring finger (ala sweep-picking) right after I play the second note in order to have it ready when the forth arrives. (this feels just as awkward as trying to lift it and I'm not getting anywhere near it)
2. Moving my middle finger forward to play the last note since I already have to move my hand in that direction to play the following pattern higher up the neck.
Now, the second option comes a lot more natural but still I'm not sure which of the 3 techniques I'm supposed to use since I'm still an amateur- beguinner guitar player.

I don't want to be learning a technique which will help me only to play one song.
I usually use a very rigid one finger per fret technique and I get annoyed everytime a stretch or something like this makes me question my fingering. Maybe I am supposed to practice until I can raise my ring finger and put it in the fret below in time but the sequence is supposed to be played really really fast.
Anyway I'd like to know how you experienced guitarists would play this sequence and which technique would you recommend me to use.
THX for the help as always.
PS: After that the song goes like this and I have no idea how I am suposed to play THIS:
e|----------------p-------------------p-----12-----------------------|
B|----------------a-------------------a---------13-12-10------------|
G|----------------u-----9------------u-----------------------------|
D|----------------s--------10-9-7----s-------------------------------|
A|---7------------e-------------------e--------------------------|
E|------8-7-5-------------------------------------------------------|
If you guys can also give me a hand with this one it would be great because I simply dont' know what to do here.

THX