//just the code no comments

use Libraries.Robots.Lego.Sound

Sound sound

integer tone =55 //starting pitch

integer length=40 // how many ms the sound lasts

repeat until tone > 1760 // start loop

tone=tone+4 // increase the pitch by 4 each loop

sound:PlayTone(tone,length) //play the sound

end //end the loop