How can I program a motor to rotate towards the source of sound? I have 3 sound sensors and a motor connected to four ports of the same brick.

My motor should rotate by some angle towards the highest sound detected by the sensor, and now I'm wondering how I'm supposed to do the following: write an infinite loop for continuous detection but once true the motor keeps on rotating for the same angle.

Is there some way to rotate for a certain angle, stop and then wait for the next sensor to detect the highest sound and then move again for the same angle and wait again?

I am using EV3 brick with NXT sound sensors and a large motor,
so far my logic for detecting the highest sound detected by the sensor is working but  I am facing problems controlling the motor.
To detect the highest sound you can use this code. It would help if you posted a picture of your bot, but with a general idea here you go:

FOREVER loop
{

if RightSensor &gt; Left Sensor :
    if RightSensor &gt; MidSensor :
        highest = RightSensor
    else :
        highest = MidSensor
else:
    highest = LeftSensor

if LeftSensor is the highest:
        turn left
if RightSensor is the highest:
        turn right
if MidSensor is the highest:
        do not turn
}