MinuetFigureListener.java
|
1 /*program by extension from lab 2 to play and print the notes from the Bach minuet figures
2 */
3 package mmw;
4
5 import composer.SComposer;
6
7 public class MinuetFigureListener {
8 public static void main(String[] args) {
9 SComposer Bach = new SComposer();
10 Bach.text();
11 System.out.println("JSB_M1 ..."); Bach.mms_31_JSB_M1(); space(Bach);
12 System.out.println("JSB_M2 ..."); Bach.mms_33_JSB_M2(); space(Bach);
13 System.out.println("JSB_M3 ..."); Bach.mms_33_JSB_M3(); space(Bach);
14 System.out.println("JSB_M4 ..."); Bach.mms_33_JSB_M4(); space(Bach);
15 System.out.println("JSB_M5 ..."); Bach.mms_33_JSB_M5(); space(Bach);
16 System.out.println("JSB_M6 ..."); Bach.mms_34_JSB_M6(); space(Bach);
17 System.out.println("JSB_M7 ..."); Bach.mms_34_JSB_M7(); space(Bach);
18 System.out.println("JSB_M8 ..."); Bach.mms_34_JSB_M8(); space(Bach);
19 System.out.println("JSB_M9 ..."); Bach.mms_35_JSB_M9(); space(Bach);
20 System.out.println("JSB_M10 ..."); Bach.mms_35_JSB_M10();space(Bach);
21 System.out.println("JSB_M11 ..."); Bach.mms_35_JSB_M11();space(Bach);
22 System.out.println("JSB_M12 ..."); Bach.mms_35_JSB_M12();space(Bach);
23 System.out.println("JSB_M13 ..."); Bach.mms_35_JSB_M13();space(Bach);
24 System.out.println("JSB_M14 ..."); Bach.mms_36_JSB_M14();space(Bach);
25 System.out.println("JSB_M15 ..."); Bach.mms_36_JSB_M15();space(Bach);
26 Bach.untext();
27 }
28
29 private static void space(SComposer Bach){
30 Bach.untext(); Bach.note().rest(2); Bach.text();
31 }
32 }
33