MysterySong.java
1    /* A program to print and play a 
2     * mysterious song from a chart. 
3     * Song in English: 
4     * Play, Raise/play, Raise/play, Lower twice/play, Play, Raise/play, Raise/play, Lower twice/play, Raise twice/play, Raise/play, Raise/play, Raise/play in double duration, Lower twice/play, Raise/play, Raise/play in double duration 
5    */
6    package mmw;
7    
8    import note.SNote;
9    
10   public class MysterySong {
11       public static void main(String[]args) {
12           SNote note = new SNote();
13           note.text();
14           note.play();
15           note.rp(); note.play();
16           note.rp(); note.play();
17           note.lp(2); note.play(); note.play();
18           note.rp(); note.play();
19           note.rp(); note.play();
20           note.lp(2); note.play();
21           note.rp(2); note.play();
22           note.rp(); note.play();
23           note.rp(); note.x2(); note.play();
24           note.lp(2); note.s2(); note.play();
25           note.rp(); note.play ();
26           note.rp(); note.x2(); note.play();
27       }
28   }