|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectauditory.described.Score
public class Score
An encapsulation of a music score
| Constructor Summary | |
|---|---|
Score()
Default Constructor |
|
| Method Summary | |
|---|---|
void |
addPart(Part part,
java.lang.String instrument)
Add a Part to this Score |
java.lang.String |
getInstrumentName(Part part)
Get a String representation of the instrument for a particular Part |
java.util.Enumeration<Part> |
getParts()
Get the Part objects in this Score |
void |
removePart(Part part)
Remove a Part from this Score |
void |
render()
Render this Score |
void |
setChannel(Part part,
javax.sound.midi.MidiChannel channel)
Set the MidiChannel associated with a Part |
void |
setTempo(int millisPerMeasure)
Set the tempo for this Part |
void |
setTimeSignature(int numerator,
int denominator)
Set the time signature for this Part |
void |
upbeat(Metronome metronome)
Handle an upbeat message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Score()
| Method Detail |
|---|
public void addPart(Part part,
java.lang.String instrument)
part - The Part to addpublic java.util.Enumeration<Part> getParts()
public java.lang.String getInstrumentName(Part part)
part - The Part of interest
public void removePart(Part part)
part - The Part to removepublic void render()
public void setChannel(Part part,
javax.sound.midi.MidiChannel channel)
part - The Partchannel - The MidiChannel for that Partpublic void setTempo(int millisPerMeasure)
millisPerMeasure - The tempo (in milliseconds per measure)
public void setTimeSignature(int numerator,
int denominator)
numerator - The numerator of the time signaturedenominator - The denominator of the time signaturepublic void upbeat(Metronome metronome)
metronome - The Metronome that the Part objects listen to
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||