Package wellen

Class DSP

  • All Implemented Interfaces:
    AudioBufferRenderer

    public class DSP
    extends java.lang.Object
    implements AudioBufferRenderer
    handles audio signal processing. after start(...) is called the processing continously calls audioblock(...) requesting blocks of audio samples.
    • Constructor Summary

      Constructors 
      Constructor Description
      DSP​(java.lang.Object pListener, int pNumberOutputChannels, int pNumberInputChannels)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void audioblock​(float[][] pOutputSignal, float[][] pInputSignal)  
      static void draw_buffer​(processing.core.PGraphics g, float pWidth, float pHeight)  
      static void draw_buffer_stereo​(processing.core.PGraphics g, float pWidth, float pHeight)  
      static float[] get_buffer()  
      static float[] get_buffer_left()  
      static float[] get_buffer_right()  
      static int get_buffer_size()  
      static int get_sample_rate()  
      static DSP start​(java.lang.Object pObject)  
      static DSP start​(java.lang.Object pObject, int pNumberOutputChannels)  
      static DSP start​(java.lang.Object pObject, int pNumberOutputChannels, int pNumberInputChannels)  
      static DSP start​(java.lang.Object pObject, int pOutputDevice, int pNumberOutputChannels, int pInputDevice, int pNumberInputChannels)  
      static DSP start​(java.lang.Object pObject, int pOutputDevice, int pNumberOutputChannels, int pInputDevice, int pNumberInputChannels, int pSamplingRate, int pAudioBlockSize)  
      static DSP start​(java.lang.Object pObject, java.lang.String pOutputDeviceName, int pNumberOutputChannels, java.lang.String pInputDeviceName, int pNumberInputChannels, int pSamplingRate, int pAudioBlockSize)  
      static void stop()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DSP

        public DSP​(java.lang.Object pListener,
                   int pNumberOutputChannels,
                   int pNumberInputChannels)
    • Method Detail

      • audioblock

        public void audioblock​(float[][] pOutputSignal,
                               float[][] pInputSignal)
        Specified by:
        audioblock in interface AudioBufferRenderer
      • stop

        public static void stop()
      • start

        public static DSP start​(java.lang.Object pObject)
      • start

        public static DSP start​(java.lang.Object pObject,
                                int pNumberOutputChannels)
      • start

        public static DSP start​(java.lang.Object pObject,
                                int pNumberOutputChannels,
                                int pNumberInputChannels)
      • start

        public static DSP start​(java.lang.Object pObject,
                                java.lang.String pOutputDeviceName,
                                int pNumberOutputChannels,
                                java.lang.String pInputDeviceName,
                                int pNumberInputChannels,
                                int pSamplingRate,
                                int pAudioBlockSize)
      • start

        public static DSP start​(java.lang.Object pObject,
                                int pOutputDevice,
                                int pNumberOutputChannels,
                                int pInputDevice,
                                int pNumberInputChannels)
      • start

        public static DSP start​(java.lang.Object pObject,
                                int pOutputDevice,
                                int pNumberOutputChannels,
                                int pInputDevice,
                                int pNumberInputChannels,
                                int pSamplingRate,
                                int pAudioBlockSize)
      • get_sample_rate

        public static int get_sample_rate()
      • get_buffer_size

        public static int get_buffer_size()
      • get_buffer

        public static float[] get_buffer()
      • get_buffer_left

        public static float[] get_buffer_left()
      • get_buffer_right

        public static float[] get_buffer_right()
      • draw_buffer_stereo

        public static void draw_buffer_stereo​(processing.core.PGraphics g,
                                              float pWidth,
                                              float pHeight)
      • draw_buffer

        public static void draw_buffer​(processing.core.PGraphics g,
                                       float pWidth,
                                       float pHeight)