ThreeFigureMinuetThing.java
|
1 /*
2 * Problem 4: Three Figure Minuet Thing
3 * Thus, you will have to write the program using only an SNote object.
4 */
5 package mmw;
6 import note.SNote;
7
8
9 public class ThreeFigureMinuetThing {
10
11 public static void main(String[] args) {
12
13 //Creating the notes A,B,C to manipulate
14 SNote C = new SNote();
15 C.text(); C.play(); C.resetDuration();
16 SNote B = new SNote();
17 B.text(); B.lp(1); B.play();
18 SNote A = new SNote();
19 A.text(); A.lp(2); A.play();
20
21 //Changing duration
22 B.s2(); B.play(); B.resetDuration();
23 A.resetDuration(); A.s2(); A.play(); A.resetDuration();
24 B.s2(); B.play(); B.resetDuration();
25 C.play(); C.x3(); C.play(); C.resetDuration();
26
27
28 }
29 }