com.frinika.contrib.boblang
Class FrinikaBezierVoice

java.lang.Object
  extended by com.frinika.voiceserver.Voice
      extended by com.frinika.synth.Oscillator
          extended by com.frinika.contrib.boblang.FrinikaBezierVoice

public class FrinikaBezierVoice
extends Oscillator

Author:
Peter Johan Salomonsen

Field Summary
 
Fields inherited from class com.frinika.synth.Oscillator
frequency, increment, level, position, release, sampleRate, triggeredRelease
 
Fields inherited from class com.frinika.voiceserver.Voice
interrupts, nextVoice, startFramePos
 
Constructor Summary
FrinikaBezierVoice(FrinikaBezierSynth synth, int noteNumber)
           
 
Method Summary
 void fillBuffer(int startBufferPos, int endBufferPos, float[] buffer)
          This is where the raw audio data should be produced.
 void release()
           
 
Methods inherited from class com.frinika.synth.Oscillator
getFrequency, setNoteNumber, setVelocity, updateIncrement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrinikaBezierVoice

public FrinikaBezierVoice(FrinikaBezierSynth synth,
                          int noteNumber)
Method Detail

release

public void release()
Overrides:
release in class Oscillator

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