ThreeFigureMinuetThing.java
1    /*   *//* 
2     * Nine note line created by joining three JSB minuet figures. 
3     *//* 
4    package mmw; 
5    import composer.SComposer; 
6     
7        public class ThreeFigureMinuetThing { 
8            public static void main(String[] args) { 
9                SComposer sc = new SComposer(); 
10               sc.text(); 
11               sc.mms_33_JSB_M2(); 
12               sc.mms_35_JSB_M13(); 
13               sc.mms_31_JSB_M1(); 
14           } 
15       }*/
16   
17   //You may not use any SComposer objects. Thus, you will have to write the program using only an SNote object.
18   
19   package mmw;
20   import note.SNote;
21   
22   public class ThreeFigureMinuetThing {
23       public static void main(String[] args) {
24           SNote minuet = new SNote();
25           minuet.text();
26           //first note (C,1)
27           minuet.play();
28           //second note (B,1)
29           minuet.lp(); minuet.play();
30           //third note (A,1)
31           minuet.lp(); minuet.play();
32           //fourth note (C,1/2)
33           minuet.rp(2); minuet.s2(); minuet.play(); minuet.x2();
34           //fifth note (B,1/2)
35           minuet.lp(); minuet.s2(); minuet.play(); minuet.x2();
36           //sixth note (A,1/2)
37           minuet.lp(); minuet.s2(); minuet.play(); minuet.x2();
38           //seventh note (B,1/2)
39           minuet.rp(); minuet.s2(); minuet.play(); minuet.x2();
40           //eighth note (C,1)
41           minuet.rp(); minuet.play();
42           //ninth note (C,3)
43           minuet.x3(); minuet.play();
44       }
45   }
46   
47   
48