|
||||||||||
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 AudioPort
public void setLocation(java.lang.String location)
setLocation
in class SynthChannel
public java.lang.String getLocation()
AudioOutput
getLocation
in interface AudioOutput
public void open()
AudioProcess
open
in interface AudioProcess
public int processAudio(AudioBuffer buffer)
AudioProcess
processAudio
in interface AudioProcess
buffer
- the AudioBuffer to process.
public void close()
AudioProcess
close
in interface AudioProcess
public void setPolyphony(int p)
public int getPolyphony()
public void noteOn(int pitch, int velocity)
noteOn
in interface javax.sound.midi.MidiChannel
noteOn
in class SynthChannel
public void noteOff(int pitch)
noteOff
in interface javax.sound.midi.MidiChannel
noteOff
in class SynthChannel
public void allNotesOff()
allNotesOff
in interface javax.sound.midi.MidiChannel
allNotesOff
in class SynthChannel
public void allSoundOff()
allSoundOff
in interface javax.sound.midi.MidiChannel
allSoundOff
in class SynthChannel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |