|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.MidiManager
public class MidiManager
Class MidiManager provides a wrapper around the java sound midi api. This was originally taken from the javasound demo
| Constructor Summary | |
|---|---|
MidiManager()
Create a new MidiManager with defaults |
|
MidiManager(MidiProperties props)
Construct with the specified properties and open it. |
|
| Method Summary | |
|---|---|
void |
close()
todo |
static Instrument[] |
getInstrumentList()
Get the list of instruments |
void |
open()
Open up the midi system |
void |
play(int key,
long milliseconds)
Play. |
void |
setInstrument(Instrument instrument)
Set the instrument to use |
void |
setInstrument(int index)
Set the current instrument |
void |
setInstrument(String instrumentName)
Set the current instrument |
void |
turnOffInABit(int key,
MidiChannel channel,
int timeStamp,
long milliseconds)
Turn off in a thread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MidiManager()
public MidiManager(MidiProperties props)
props - properties| Method Detail |
|---|
public void close()
public void open()
public void setInstrument(int index)
index - index into the instrumentspublic void setInstrument(String instrumentName)
instrumentName - name of the instrumentpublic void setInstrument(Instrument instrument)
instrument - the instrumentpublic static Instrument[] getInstrumentList()
public void play(int key,
long milliseconds)
key - key to play inmilliseconds - length of time
public void turnOffInABit(int key,
MidiChannel channel,
int timeStamp,
long milliseconds)
key - key to play inchannel - channel to playtimeStamp - timestampmilliseconds - length of time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||