ThreeFigureMinuetThing.java
|
/*
*Write a program using only an SNote object
*/
package mmw;
import note.SNote;
public class ThreeFigureMinuetThing {
public static void main(String[] args) {
//Creating the notes A,B,C
SNote C = new SNote();
C.text();
C.play();
C.resetDuration();
SNote B = new SNote();
B.text();
B.lp(1);
B.play();
SNote A = new SNote();
A.text();
A.lp(2);
A.play();
//Change duration
B.s2();
B.play();
B.resetDuration();
A.resetDuration();
A.s2();
A.play();
A.resetDuration();
B.s2();
B.play();
B.resetDuration();
C.play();
C.x3();
C.play();
C.resetDuration();}
}