ThreeFigureMinuetThing.java
1    package mmw;
2    import composer.SComposer;
3    import note.SNote;
4    
5    public class ThreeFigureMinuetThing {
6    
7        public static void main(String[] args) {
8    
9            // given reference
10           System.out.println("Given Reference with SComposer: ");
11           SComposer sc = new SComposer();
12           sc.text();
13           sc.mms_33_JSB_M2();
14           sc.mms_35_JSB_M13();
15           sc.mms_31_JSB_M1();
16   
17   
18       /* 
19       Output should be: 
20       (C,1) \ (B,1) \ (A,1) 
21       / (C,1/2) \ (B,1/2) \ (A,1/2) / (B,1/2) / (C,1) 
22       (C,3) 
23        */
24   
25       // note by note
26           System.out.println("Same song but note by note: ");
27           SNote note = new SNote();
28           note.text();
29           note.play();
30           note.lp(1); note.play();
31           note.lp(1); note.play();
32           note.rp(2); note.s2(); note.play();
33           note.lp(1); note.play();
34           note.lp(1); note.play();
35           note.rp(1); note.play();
36           note.rp(1); note.x2(); note.play();
37           note.x3(); note.play();
38           System.out.println();
39       }
40   }
41