MinuetFigureListener.java
1    /* 
2     * play Bach (JSB) minuet figures. 
3     */
4    
5    package mmw;
6    
7    import composer.SComposer;
8    
9    public class MinuetFigureListener {
10   
11       public static void main(String[] args) {
12           SComposer c = new SComposer();
13           c.text();
14           System.out.println("c.mms_31_JSB_M1 ..."); c.mms_31_JSB_M1(); space(c);
15           System.out.println("c.mms_33_JSB_M2 ..."); c.mms_33_JSB_M2(); space(c);
16           System.out.println("c.mms_33_JSB_M3 ..."); c.mms_33_JSB_M3(); space(c);
17           System.out.println("c.mms_33_JSB_M4 ..."); c.mms_33_JSB_M4(); space(c);
18           System.out.println("c.mms_33_JSB_M5 ..."); c.mms_33_JSB_M5(); space(c);
19           System.out.println("c.mms_34_JSB_M6 ..."); c.mms_34_JSB_M6(); space(c);
20           System.out.println("c.mms_34_JSB_M7 ..."); c.mms_34_JSB_M7(); space(c);
21           System.out.println("c.mms_34_JSB_M8 ..."); c.mms_34_JSB_M8(); space(c);
22           System.out.println("c.mms_35_JSB_M9 ..."); c.mms_35_JSB_M9(); space(c);
23           System.out.println("c.mms_35_JSB_M10 ..."); c.mms_35_JSB_M10(); space(c);
24           System.out.println("c.mms_35_JSB_M11 ..."); c.mms_35_JSB_M11(); space(c);
25           System.out.println("c.mms_35_JSB_M12 ..."); c.mms_35_JSB_M12(); space(c);
26           System.out.println("c.mms_35_JSB_M13 ..."); c.mms_35_JSB_M13(); space(c);
27           System.out.println("c.mms_36_JSB_M14 ..."); c.mms_36_JSB_M14(); space(c);
28           System.out.println("c.mms_36_JSB_M15 ..."); c.mms_36_JSB_M15(); space(c);
29           c.untext();
30       }
31   
32       private static void space(SComposer c) {
33           c.untext(); c.rest(2); c.text();
34       }
35   }
36