net.jinx.audio.synth
Class SynthUtil

java.lang.Object
  extended by net.jinx.audio.synth.SynthUtil

public class SynthUtil
extends java.lang.Object


Method Summary
static void add(java.nio.DoubleBuffer a, double b)
           
static void add(java.nio.DoubleBuffer a, java.nio.DoubleBuffer b)
           
static SampleFormat convert(javax.sound.sampled.AudioFormat format)
           
static void divide(java.nio.DoubleBuffer a, double b)
           
static void divide(java.nio.DoubleBuffer a, java.nio.DoubleBuffer b)
           
static void downSample(java.nio.DoubleBuffer db, java.nio.ByteBuffer bb, SampleFormat fmt, boolean is16Bit)
           
static void multiply(java.nio.DoubleBuffer a, double b)
           
static void multiply(java.nio.DoubleBuffer a, java.nio.DoubleBuffer b)
           
static void putByte(double v, java.nio.ByteBuffer buffer)
           
static void putShort(double v, java.nio.ByteBuffer buffer)
           
static javax.sound.sampled.AudioInputStream stream(SampleProcessor source, javax.sound.sampled.AudioFormat format, long samples)
           
static void subtract(java.nio.DoubleBuffer a, double b)
           
static void subtract(java.nio.DoubleBuffer a, java.nio.DoubleBuffer b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convert

public static SampleFormat convert(javax.sound.sampled.AudioFormat format)

add

public static void add(java.nio.DoubleBuffer a,
                       java.nio.DoubleBuffer b)

add

public static void add(java.nio.DoubleBuffer a,
                       double b)

subtract

public static void subtract(java.nio.DoubleBuffer a,
                            java.nio.DoubleBuffer b)

subtract

public static void subtract(java.nio.DoubleBuffer a,
                            double b)

multiply

public static void multiply(java.nio.DoubleBuffer a,
                            java.nio.DoubleBuffer b)

multiply

public static void multiply(java.nio.DoubleBuffer a,
                            double b)

divide

public static void divide(java.nio.DoubleBuffer a,
                          java.nio.DoubleBuffer b)

divide

public static void divide(java.nio.DoubleBuffer a,
                          double b)

stream

public static javax.sound.sampled.AudioInputStream stream(SampleProcessor source,
                                                          javax.sound.sampled.AudioFormat format,
                                                          long samples)

downSample

public static void downSample(java.nio.DoubleBuffer db,
                              java.nio.ByteBuffer bb,
                              SampleFormat fmt,
                              boolean is16Bit)

putShort

public static void putShort(double v,
                            java.nio.ByteBuffer buffer)

putByte

public static void putByte(double v,
                           java.nio.ByteBuffer buffer)