computer.beep(0.005, 440)

beep(1, 440)

robot = Scribbler()

s = makeSong(" c 1; d 1; e 1; f 1; g 1; a 1; b 1; c7 1;")

robot.playSong(s, .75)

-------------------------------------------------
# Program to draw a bunch of # random colored circles
from myro import *
from random import *

def makeCircle(x,y,r):
    #creates a Circle centered at point (x,y) of radius r
    return Circle(Point(x,y), r)

def makeColor():
    #creates a new color using random RGB values
    red = randrange(0, 256)
    green = randrange(0, 256)
    blue = randrange(0, 256)
    return color_rgb(red, green, blue)

def main():
    #create and display a graphics window
    width = 500
    height = 500
    myCanvas = GraphWin('Circles', width, height)

    myCanvas.setBackground("white")

    #draw a bunch of random circles with random colors
    N=500
    for i in range(N):
        #pick random center point and radius
        x = randrange(0, width) 
        y = randrange(0, height)
        r = randrange(5, 25)
        c = makeCircle(x, y, r)

        #select a random color
        c.setFill(makeColor())

        c.draw(myCanvas)

main()