Class GranularUGen

java.lang.Object
ddf.minim.UGen
net.paulhertz.pixelaudio.granular.GranularUGen

public class GranularUGen extends ddf.minim.UGen
GranularUGen A Minim UGen that uses BasicIndexGranularSource to generate audio in blocks, but feeds it sample-by-sample via uGenerate().
  • Nested Class Summary

    Nested classes/interfaces inherited from class ddf.minim.UGen

    ddf.minim.UGen.InputType, ddf.minim.UGen.UGenInput
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private long
     
    private final float[]
     
    private final float[]
     
    private final int
     
    private int
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
     
    void
     
    protected void
    uGenerate(float[] channels)
     

    Methods inherited from class ddf.minim.UGen

    addAudio, addControl, addControl, addInput, channelCount, channelCountChanged, getLastValues, patch, patch, patch, printInputs, removeInput, sampleRate, sampleRateChanged, setChannelCount, setSampleRate, tick, unpatch, unpatch

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • src

      private final BasicIndexGranularSource src
    • blockL

      private final float[] blockL
    • blockR

      private final float[] blockR
    • blockSize

      private final int blockSize
    • absSample

      private long absSample
    • cursor

      private int cursor
  • Constructor Details

  • Method Details

    • refillBlock

      private void refillBlock()
    • reset

      public void reset()
    • uGenerate

      protected void uGenerate(float[] channels)
      Specified by:
      uGenerate in class ddf.minim.UGen