public class Orchestra extends java.lang.Object implements MetronomeListener
Constructor and Description |
---|
Orchestra(Score score)
Explicit Value Constructor.
|
Orchestra(Score score,
Metronome metronome)
Explicit Value Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
handleTick(int millis)
Handle a Metronome tick
(required by MetronomeListener).
|
void |
start()
Start this Orchestra.
|
public Orchestra(Score score) throws javax.sound.midi.MidiUnavailableException
score
- The Score to playjavax.sound.midi.MidiUnavailableException
public void handleTick(int millis)
This method tells the Score to render itself. In addition, if there are no other objects listening to the Metronome, this method stops the Metronome
handleTick
in interface MetronomeListener
millis
- The number of milliseconds since the Metronome startedpublic void start()