com.frinika.synth
Class Oscillator

java.lang.Object
  extended by com.frinika.voiceserver.Voice
      extended by com.frinika.synth.Oscillator
Direct Known Subclasses:
FrinikaBezierVoice, MySampler.SamplingOscillator, MySampler.SoundFontOscillator, PostOscillator, PreOscillator, SamplerOscillator

public abstract class Oscillator
extends Voice

Author:
peter

Field Summary
protected  float frequency
           
protected  float increment
           
protected  float level
           
protected  float position
           
protected  boolean release
           
protected  int sampleRate
           
protected  Synth synth
           
protected  boolean triggeredRelease
           
 
Fields inherited from class com.frinika.voiceserver.Voice
interrupts, nextVoice, startFramePos
 
Constructor Summary
Oscillator(Synth synth)
           
 
Method Summary
static float getFrequency(int noteNumber)
           
 void release()
           
 void setNoteNumber(int noteNumber)
           
 void setVelocity(int velocity)
           
protected  void updateIncrement()
           
 
Methods inherited from class com.frinika.voiceserver.Voice
fillBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frequency

protected float frequency

increment

protected float increment

level

protected float level

position

protected float position

sampleRate

protected int sampleRate

release

protected boolean release

triggeredRelease

protected boolean triggeredRelease

synth

protected Synth synth
Constructor Detail

Oscillator

public Oscillator(Synth synth)
Method Detail

setNoteNumber

public void setNoteNumber(int noteNumber)

getFrequency

public static final float getFrequency(int noteNumber)

updateIncrement

protected void updateIncrement()

setVelocity

public void setVelocity(int velocity)

release

public void release()