com.frinika.sequencer.model.audio
Class EnvelopedAudioReader

java.lang.Object
  extended by com.frinika.audio.io.AudioWavReader
      extended by com.frinika.audio.io.AudioReader
          extended by com.frinika.sequencer.model.audio.EnvelopedAudioReader
All Implemented Interfaces:
BlockableAudioProcess, LimitedAudioReader, uk.org.toot.audio.core.AudioProcess

public class EnvelopedAudioReader
extends AudioReader


Field Summary
protected  long attackEnd
           
protected  long decayStart
           
protected  double gain
           
 
Fields inherited from class com.frinika.audio.io.AudioReader
endByte, fPtrBytes, startByte
 
Fields inherited from class com.frinika.audio.io.AudioWavReader
audioDataByteLength, audioDataStartBytePtr, bytecount, format, lengthInFrames, nChannels, riffdata, sp
 
Fields inherited from interface uk.org.toot.audio.core.AudioProcess
AUDIO_DISCONNECT, AUDIO_OK
 
Constructor Summary
EnvelopedAudioReader(RandomAccessFileIF fis, float Fs)
           
 
Method Summary
protected  void processAudioImp(uk.org.toot.audio.core.AudioBuffer buffer, int startChunk, int endChunk)
           
 void setEvelope(AudioPart.Envelope e)
           
 
Methods inherited from class com.frinika.audio.io.AudioReader
close, eof, fill, fillConstantGain, fillLinearInterpolate, getEnvelopedLengthInFrames, getSampleRate, milliToByte, open, processAudio, processAudioBlock, seekEnvelopeStart, seekFrame, seekFrameInEnvelope, seekTimeInMicros, setBoundsInMicros
 
Methods inherited from class com.frinika.audio.io.AudioWavReader
getChannels, getDataSize, getFormat, getLengthInFrames, readChunkHeader, readFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.frinika.audio.io.BlockableAudioProcess
getChannels, getLengthInFrames
 
Methods inherited from interface com.frinika.audio.io.LimitedAudioReader
getChannels, getFormat
 

Field Detail

gain

protected double gain

attackEnd

protected long attackEnd

decayStart

protected long decayStart
Constructor Detail

EnvelopedAudioReader

public EnvelopedAudioReader(RandomAccessFileIF fis,
                            float Fs)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setEvelope

public void setEvelope(AudioPart.Envelope e)

processAudioImp

protected void processAudioImp(uk.org.toot.audio.core.AudioBuffer buffer,
                               int startChunk,
                               int endChunk)
Overrides:
processAudioImp in class AudioReader