< prev index next >

src/java.desktop/share/classes/com/sun/media/sound/SoftFilter.java

Print this page




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */

  25 package com.sun.media.sound;
  26 
  27 /**
  28  * Infinite impulse response (IIR) filter class.
  29  *
  30  * The filters where implemented and adapted using algorithms from musicdsp.org
  31  * archive: 1-RC and C filter, Simple 2-pole LP LP and HP filter, biquad,
  32  * tweaked butterworth RBJ Audio-EQ-Cookbook, EQ filter kookbook
  33  *
  34  * @author Karl Helgason
  35  */
  36 public final class SoftFilter {
  37 
  38     public static final int FILTERTYPE_LP6 = 0x00;
  39     public static final int FILTERTYPE_LP12 = 0x01;
  40     public static final int FILTERTYPE_HP12 = 0x11;
  41     public static final int FILTERTYPE_BP12 = 0x21;
  42     public static final int FILTERTYPE_NP12 = 0x31;
  43     public static final int FILTERTYPE_LP24 = 0x03;
  44     public static final int FILTERTYPE_HP24 = 0x13;




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.media.sound;
  27 
  28 /**
  29  * Infinite impulse response (IIR) filter class.
  30  *
  31  * The filters where implemented and adapted using algorithms from musicdsp.org
  32  * archive: 1-RC and C filter, Simple 2-pole LP LP and HP filter, biquad,
  33  * tweaked butterworth RBJ Audio-EQ-Cookbook, EQ filter kookbook
  34  *
  35  * @author Karl Helgason
  36  */
  37 public final class SoftFilter {
  38 
  39     public static final int FILTERTYPE_LP6 = 0x00;
  40     public static final int FILTERTYPE_LP12 = 0x01;
  41     public static final int FILTERTYPE_HP12 = 0x11;
  42     public static final int FILTERTYPE_BP12 = 0x21;
  43     public static final int FILTERTYPE_NP12 = 0x31;
  44     public static final int FILTERTYPE_LP24 = 0x03;
  45     public static final int FILTERTYPE_HP24 = 0x13;


< prev index next >