public class PolyphonicSynthesizer extends AudioMixer implements Instrument
AudioMixer.MixEventListener| Constructor and Description |
|---|
PolyphonicSynthesizer(int nPolyphony)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getChannelsInUse()
The number of synths in use.
|
void |
noteOff(int noteNumber)
Turn the given note off
|
void |
noteOn(int noteNumber,
double velocity)
Turn the given note on.
|
addMixEventListener, addStream, getLength, nextSampleChunk, removeMixEventListener, removeStream, reset, setAlwaysRun, setBufferSize, setMixEvents, setTimecodeObjectiterator, seekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic PolyphonicSynthesizer(int nPolyphony)
nPolyphony - Number of voices polyphony allowedpublic void noteOn(int noteNumber, double velocity)
noteOn in interface InstrumentnoteNumber - velocity - The velocity (0-1)public void noteOff(int noteNumber)
noteOff in interface InstrumentnoteNumber - public int getChannelsInUse()