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