com.frinika.contrib.boblang
Class BezierPlayingNote

java.lang.Object
  extended by com.frinika.contrib.boblang.BezierPlayingNote

public class BezierPlayingNote
extends java.lang.Object

Stores the details of a note that presently being played by the synthesizer

Version:
22 Mar 2003
Author:
Bob Lang

Constructor Summary
BezierPlayingNote(BezierSynth inBezierSynth, BezierEnvelopeShaper inShaper, int inMidiPitch, int inUnderSampling)
          Constructor for this class.
 
Method Summary
 void getBuffer(float[] buffer, int startBufferPos, int endBufferPos)
          Get the next buffer of data from the sound buffer.
 void getBuffer(short[] buffer, int count)
          Get the next buffer of data from the sound buffer.
 int getPitch()
          Get the pitch of this note
 boolean isFinished()
          Has the note finished yet?
 boolean isReleased()
          Get the release status for this loop
 void setRelease()
          Set the release status for this note, recording the index number where the release happened.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BezierPlayingNote

public BezierPlayingNote(BezierSynth inBezierSynth,
                         BezierEnvelopeShaper inShaper,
                         int inMidiPitch,
                         int inUnderSampling)
Constructor for this class.

Method Detail

setRelease

public void setRelease()
Set the release status for this note, recording the index number where the release happened.


isReleased

public boolean isReleased()
Get the release status for this loop


isFinished

public boolean isFinished()
Has the note finished yet?


getPitch

public int getPitch()
Get the pitch of this note


getBuffer

public void getBuffer(short[] buffer,
                      int count)
Get the next buffer of data from the sound buffer. This method performs the undersampling necessary to convert from the internal sample rate (say 196000) to the output rate (say 48000). This is achieved by incrementing the index by the undersampling rate each time.


getBuffer

public void getBuffer(float[] buffer,
                      int startBufferPos,
                      int endBufferPos)
Get the next buffer of data from the sound buffer. This method performs the undersampling necessary to convert from the internal sample rate (say 196000) to the output rate (say 48000). This is achieved by incrementing the index by the undersampling rate each time. Adjustments for Frinika 32 bit floating point version startBuffer and endBufferPos - for realtime parameter modifications Add (mix) new samples to the buffer instead of replace.