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, setTimecodeObject
iterator, seek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public PolyphonicSynthesizer(int nPolyphony)
nPolyphony
- Number of voices polyphony allowedpublic void noteOn(int noteNumber, double velocity)
noteOn
in interface Instrument
noteNumber
- velocity
- The velocity (0-1)public void noteOff(int noteNumber)
noteOff
in interface Instrument
noteNumber
- public int getChannelsInUse()