BasicsListener.java
1    /* 
2     * Program to check out (view and probably listen to) the eight melodic 
3     * sequences classified as "Basic" sequences in the Modular Melody World 
4     */
5    
6    package mmw;
7    
8    import composer.SComposer;
9    
10   public class BasicsListener {
11   
12       public static void main(String[] args) {
13           SComposer c = new SComposer();
14           c.text();
15           System.out.println("c.mms1 ...");
16           c.mms1();
17           space(c);
18           System.out.println("c.mms2 ..."); c.mms2();
19           space(c);
20           System.out.println("c.mms3 ..."); c.mms3();
21           space(c);
22           System.out.println("c.mms4 ..."); c.mms4();
23           space(c);
24           System.out.println("c.mms5 ..."); c.mms5();
25           space(c);
26           System.out.println("c.mms6 ..."); c.mms6();
27           space(c);
28           System.out.println("c.mms7 ..."); c.mms7();
29           space(c);
30           System.out.println("c.mms8 ..."); c.mms8();
31           space(c);
32           c.untext();
33       }
34   
35       private static void space(SComposer c) {
36           c.untext(); c.rest(2); c.text();
37       }
38   }
39