How do I do the second line in my main argument?
def main():
pic= makePicture( pickAFile())
### It will print the number of notes to be played(which is the number of pixels in the pic divided by 16, why?)###
listenToPicture(pic)
def listenToPicture(pic):
show(pic)
w= getWidth(pic)
h= getHeight(pic)
for i in range(0, w, 4):
for j in range(0, h, 4):
for px in getPixels(pic):
r= getRed(px)
g= getGreen(px)
b= getBlue(px)
tot= (r+g+b)/9
playNote= tot + 24