<:> Exercises
- Using the Notes applet as a base, create an applet that plays
scales in C, starting from middle C (midi code 64). The applet should
repeat the scale 10 times.
- Modify the applet so that it plays the scale until the page is
exited. This will involve running the main loop in a thread which is
then terminated when the browser calls the applet's 'stop' method.
(Check the JApplet documentation for details.)
- Modify the applet so that it plays the ascii codes from your
first name (treating them as midi values) over the top of the
scale.
- In the Fibonacci sequence, each number is the sum of the
previous two (using zero at the start). Modify the applet so that
it plays all the midi codes in the Fibonacci sequence up to 127
over the top of the scale.