Frequency9B Start with the Frequency9 and add a few lines of code and you will see the frequency of each sound as it played. The Quorum Studio Coding window for this lesson appear here with the lines of code and comments. Look for link named Full Code as Text with Comments to get the same information in text. (as alt text)

Click here to see the code without comments to copy &paste. ==>

//just the code no comments

use Libraries.Robots.Lego.Sound

use Libraries.Robots.Lego.Screen

Screen screen

Sound sound

integer tone =55

integer lenght=7

screen:OutputCenterLarge("TONE = " + tone,3)

repeat until tone > 1760

tone=tone+6

sound:PlayTone(tone,lenght)

screen:ScrollUp("TONE= " + tone)

end

sound:PlayTone(tone,1600)

Sample Video appears to the right.Scroll down to see student summited videos


Student Videos

GITHUB BUTTON HERE