uk.org.toot.synth
Class ParaphonicSynthChannel

java.lang.Object
  extended by uk.org.toot.synth.SynthChannel
      extended by uk.org.toot.synth.PolyphonicSynthChannel
          extended by uk.org.toot.synth.ParaphonicSynthChannel
All Implemented Interfaces:
javax.sound.midi.MidiChannel, AudioProcess, AudioOutput, AudioPort
Direct Known Subclasses:
CopalSynthChannel

public abstract class ParaphonicSynthChannel
extends PolyphonicSynthChannel
implements AudioOutput

Paraphonic in that it is not fully polyphonic, a Voice may have an oscillator, but not nessarily its own filter or amplifier. It may have a single filter and/or amplifier shared by all Voices, These shared paraphonic parts can be applied in postProcessAudio(). Obviously these paraphonic parts are always after the mixing of the individual Voices so prost processing is appropriate.

Author:
st

Nested Class Summary
 
Nested classes/interfaces inherited from class uk.org.toot.synth.PolyphonicSynthChannel
PolyphonicSynthChannel.AbstractVoice, PolyphonicSynthChannel.Voice
 
Field Summary
 
Fields inherited from interface uk.org.toot.audio.core.AudioProcess
AUDIO_DISCONNECT, AUDIO_OK
 
Constructor Summary
ParaphonicSynthChannel(java.lang.String name)
           
 
Method Summary
 int processAudio(AudioBuffer buffer)
          Process the supplied buffer
 
Methods inherited from class uk.org.toot.synth.PolyphonicSynthChannel
allNotesOff, allSoundOff, close, getLocation, getName, getPolyphony, noteOff, noteOn, open, setLocation, setPolyphony
 
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
 
Methods inherited from interface uk.org.toot.audio.system.AudioOutput
getLocation
 
Methods inherited from interface uk.org.toot.audio.system.AudioPort
getName
 
Methods inherited from interface uk.org.toot.audio.core.AudioProcess
close, open
 

Constructor Detail

ParaphonicSynthChannel

public ParaphonicSynthChannel(java.lang.String name)
Method Detail

processAudio

public int processAudio(AudioBuffer buffer)
Description copied from interface: AudioProcess
Process the supplied buffer

Specified by:
processAudio in interface AudioProcess
Overrides:
processAudio in class PolyphonicSynthChannel
Parameters:
buffer - the AudioBuffer to process.
Returns:
int AUDIO_OK or AUDIO_DISCONNECT.


Copyright © 2004, 2005, 2006, 2007, 2008, 2009 Steve Taylor. All Rights Reserved.