com.frinika.synth
Class PostOscillator

java.lang.Object
  extended by com.frinika.audio.Voice
      extended by com.frinika.synth.Oscillator
          extended by com.frinika.synth.PostOscillator

public class PostOscillator
extends Oscillator

Author:
Peter Johan Salomonsen

Field Summary
 
Fields inherited from class com.frinika.synth.Oscillator
frequency, increment, level, position, release, sampleRate, synth, triggeredRelease
 
Fields inherited from class com.frinika.audio.Voice
interrupts, nextVoice, startFramePos
 
Constructor Summary
PostOscillator(Synth synth)
           
 
Method Summary
 void fillBuffer(int startBufferPos, int endBufferPos, float[] buffer)
          This is where the raw audio data should be produced.
 void setEchoAmount(int echoAmount)
           
 void setEchoLength(int echoLength)
           
 void setOverDriveAmount(int overDriveAmount)
           
 void setPan(int position)
          Set pan amount
 void setReverb(float reverb)
           
 void setVolume(float volume)
           
 
Methods inherited from class com.frinika.synth.Oscillator
getFrequency, release, setNoteNumber, setVelocity, updateIncrement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostOscillator

public PostOscillator(Synth synth)
Parameters:
synth -
Method Detail

fillBuffer

public void fillBuffer(int startBufferPos,
                       int endBufferPos,
                       float[] buffer)
Description copied from class: Voice
This is where the raw audio data should be produced. The passed in buffer contains the audio data from the previous voice in the chain, thus new data should just be added to the buffer. It's important to just fill within the start and stop positions, because this is how the interrupt functions control that parameter modification occur at the right place.

Specified by:
fillBuffer in class Voice

setOverDriveAmount

public void setOverDriveAmount(int overDriveAmount)
Parameters:
Overdrive - amount

setVolume

public void setVolume(float volume)
Parameters:
volume -

setReverb

public void setReverb(float reverb)

setEchoAmount

public void setEchoAmount(int echoAmount)
Parameters:
echoAmount -

setEchoLength

public void setEchoLength(int echoLength)

setPan

public void setPan(int position)
Set pan amount

Parameters:
position - MIDI cc10 value (0-127)