What do the different colors mean in my code?
The purpose of the different colors is to make your code easier to read, numbers are going to be orange, TunePad functions and variable names are going to be blue, and Python functions are yellow.
Why do we type "beats=.." as the second argument even though it doesn't require it?
Yes, typing beats is completely optional, but starting off it is very helpful for being able to keep track of what input does what on a function. You can do this with any input on any function, as long as you make sure you are using the parameter name when you call the function.
Do instruments have a prescribed number of beats?
You determine the number of beats an instrument lasts by using the 2nd parameter of the playNote() function. Some instruments will naturally have a decay of more than one beat, so you may want to take that into consideration, like the number 48 kick in the Shots group
Is there a range max on for loops?
You can pretty much make a for loop go on as long as you want. The only limit is how much space your computer has, but in TunePad you probably won’t have to worry about that.
What is the significance of the "Print" in the count loop?
Print is useful because it outputs text to a place where you can read it. This is useful because we can print out the variable we are iterating in our for loops (usually i), to see where in the loop we are.