|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.toot.synth.SynthChannel
uk.org.toot.synth.PolyphonicSynthChannel
public abstract class PolyphonicSynthChannel
A PolyphonicSynthChannel is a SynthChannel that generates audio as an AudioProcess. It is polyphonic, supporting multiple Voices.
| Nested Class Summary | |
|---|---|
class |
PolyphonicSynthChannel.AbstractVoice
|
static interface |
PolyphonicSynthChannel.Voice
|
| Field Summary |
|---|
| Fields inherited from interface uk.org.toot.audio.core.AudioProcess |
|---|
AUDIO_DISCONNECT, AUDIO_OK |
| Constructor Summary | |
|---|---|
PolyphonicSynthChannel(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
allNotesOff()
|
void |
allSoundOff()
|
void |
close()
Close any resources opened by this AudioProcess. |
java.lang.String |
getLocation()
Return a unique string representing the location. |
java.lang.String |
getName()
Return a unique name for this audio port. |
int |
getPolyphony()
|
void |
noteOff(int pitch)
|
void |
noteOn(int pitch,
int velocity)
|
void |
open()
Open any resources required by this AudioProcess. |
int |
processAudio(AudioBuffer buffer)
Process the supplied buffer |
void |
setLocation(java.lang.String location)
|
void |
setPolyphony(int p)
|
| Methods inherited from class uk.org.toot.synth.SynthChannel |
|---|
controlChange, getBendFactor, getChannelPressure, getController, getMono, getMute, getOmni, getPitchBend, getPolyPressure, getProgram, getSolo, localControl, midiFreq, noteOff, programChange, programChange, resetAllControllers, setChannelPressure, setMono, setMute, setOmni, setPitchBend, setPolyPressure, setSolo |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolyphonicSynthChannel(java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
AudioPort
getName in interface AudioPortpublic void setLocation(java.lang.String location)
setLocation in class SynthChannelpublic java.lang.String getLocation()
AudioOutput
getLocation in interface AudioOutputpublic void open()
AudioProcess
open in interface AudioProcesspublic int processAudio(AudioBuffer buffer)
AudioProcess
processAudio in interface AudioProcessbuffer - the AudioBuffer to process.
public void close()
AudioProcess
close in interface AudioProcesspublic void setPolyphony(int p)
public int getPolyphony()
public void noteOn(int pitch,
int velocity)
noteOn in interface javax.sound.midi.MidiChannelnoteOn in class SynthChannelpublic void noteOff(int pitch)
noteOff in interface javax.sound.midi.MidiChannelnoteOff in class SynthChannelpublic void allNotesOff()
allNotesOff in interface javax.sound.midi.MidiChannelallNotesOff in class SynthChannelpublic void allSoundOff()
allSoundOff in interface javax.sound.midi.MidiChannelallSoundOff in class SynthChannel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||