ThreeFigureMinuetThing.java
|
1 package mmw;
2
3 import note.SNote;
4
5 /*
6 *Create a program that plays the same sequence of nine notes that is played by a given program
7 * Do so without using any SComposer objects, thus only using an SNote object
8 */
9
10 public class ThreeFigureMinuetThing {
11 public static void main(String[] args){
12
13 /*
14 *code to mimic:
15 * SComposer sc = new SComposer();
16 * sc.text();
17 * System.out.println("sc.mms_33_JSB_m2 ..."); sc.mms_33_JSB_m2();
18 * System.out.println("sc.mms_35_JSB_m13 ..."); sc.mms_35_JSB_m13();
19 * System.out.println("sc.mms_31_JSB_m1 ..."); sc.mms_31_JSB_m1();
20 */
21
22 SNote note = new SNote();
23 note.text();
24
25 //Imitates m2
26 note.play(); //(C,1)
27 note.lp(); note.play(); //(B,1)
28 note.lp(); note.play(); //(A,1)
29
30 System.out.println(); //Creates space b/w lines (solely for appearance)
31
32 //Imitates m13
33 note.rp(2); note.s2(); note.play(); //(C,1/2)
34 note.lp(); note.play(); //(B,1/2)
35 note.lp(); note.play(); //(A,1/2)
36 note.rp(); note.play(); //(B,1/2)
37 note.rp(); note.x2(); note.play(); //(C,1)
38
39 System.out.println(); //Creates space b/w lines (solely for appearance)
40
41 //Imitates m1
42 note.x3(); note.play(); //(C,3)
43
44 System.out.println();
45 }
46 }
47
48
49