ThreeFigureMinuetThing.java
|
1 /*
2 *Program to play the notes of a composer object.
3 */
4
5 package mmw;
6 import note.SNote;
7
8 public class ThreeFigureMinuetThing
9 {
10 public static void main(String[] args) {
11 SNote note = new SNote();
12 note.text();
13 playComposer33(note);
14 System.out.println("");
15 playComposer35(note);
16 System.out.println("");
17 playComposer31(note);
18 }
19
20 private static void playComposer33(SNote note) {
21 note.play();
22 note.lp(); note.play();
23 note.lp(); note.play();
24 note.cp();note.cp();
25 }
26
27 private static void playComposer35(SNote note) {
28 note.s2(); note.play();
29 note.lp(); note.play();
30 note.lp(); note.play();
31 note.rp(); note.play();
32 note.x2(); note.rp(); note.play();
33 }
34
35 private static void playComposer31(SNote note) {
36 note.x3(); note.play();
37 note.s3();
38 }
39 }
40