|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object c11files.calgorythmic.lab.Piece
public class Piece
Piece models a piece of music as a set of Part
s to be played
simultaneously.
Constructor Summary | |
---|---|
Piece(int tempo)
Construct a new Piece with an empty list of parts. |
Method Summary | |
---|---|
void |
addPart(Part part)
|
void |
play(MidiPlayer midi)
Play the parts of this piece simultaneously. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Piece(int tempo) throws java.lang.Exception
tempo
- the specified tempo
java.lang.Exception
Method Detail |
---|
public void addPart(Part part)
public void play(MidiPlayer midi) throws java.lang.Exception
midi
- the Midi object to do the playing
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |