Save This Page
Home » openjdk-7 » com.sun.media » sound » [javadoc | source]
com.sun.media.sound
abstract public class: ModelAbstractOscillator [javadoc | source]
java.lang.Object
   com.sun.media.sound.ModelAbstractOscillator

All Implemented Interfaces:
    Soundbank, ModelOscillatorStream, ModelOscillator

A abstract class used to simplify creating custom ModelOscillator.
Field Summary
protected  float pitch     
protected  float samplerate     
protected  MidiChannel channel     
protected  VoiceStatus voice     
protected  int noteNumber     
protected  int velocity     
protected  boolean on     
Method from com.sun.media.sound.ModelAbstractOscillator Summary:
close,   getAttenuation,   getChannel,   getChannels,   getDescription,   getInstrument,   getInstrument,   getInstruments,   getName,   getNoteNumber,   getPatch,   getPerformer,   getPitch,   getResources,   getSampleRate,   getSoundBank,   getVelocity,   getVendor,   getVersion,   getVoice,   init,   isOn,   noteOff,   noteOn,   open,   read,   setPitch,   setSampleRate
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.media.sound.ModelAbstractOscillator Detail:
 public  void close() throws IOException 
 public float getAttenuation() 
 public MidiChannel getChannel() 
 public int getChannels() 
 public String getDescription() 
 public ModelInstrument getInstrument() 
 public Instrument getInstrument(Patch patch) 
 public Instrument[] getInstruments() 
 public String getName() 
 public int getNoteNumber() 
 public Patch getPatch() 
 public ModelPerformer getPerformer() 
 public float getPitch() 
 public SoundbankResource[] getResources() 
 public float getSampleRate() 
 public Soundbank getSoundBank() 
 public int getVelocity() 
 public String getVendor() 
 public String getVersion() 
 public VoiceStatus getVoice() 
 public  void init() 
 public boolean isOn() 
 public  void noteOff(int velocity) 
 public  void noteOn(MidiChannel channel,
    VoiceStatus voice,
    int noteNumber,
    int velocity) 
 public ModelOscillatorStream open(float samplerate) 
 public int read(float[][] buffer,
    int offset,
    int len) throws IOException 
 public  void setPitch(float pitch) 
 public  void setSampleRate(float samplerate)