while
loop or a for
loop?for
loop is more appropriate here since
you know how many times the loop should iterate.
A perfectly fine alternative is a loop that goes from root
to root + 12
.
System.out.println()
with calls to
StdAudio.play()
.
MajorScaleDeluxe.java
before MajorScale.java
?MajorScale.java
before moving on to
MajorScaleDeluxe.java
.
Hint: since each octave of a major scale has 7 notes (plus the final note), consider performing arithmetic modulo 7.
StdPicture
class does not appear in the textbook. Where can
I learn how to use it?
StdPicture
by reading its
documentation.
You will call (a subset of) the following 8 methods:
StdPicture.read()
StdPicture.width()
StdPicture.height()
StdPicture.getRed()
StdPicture.getGreen()
StdPicture.getBlue()
StdPicture.setRGB()
StdPicture.show()