Save This Page
Home » openjdk-7 » com.sun.media » sound » [javadoc | source]
    1   /*
    2    * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
    3    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    4    *
    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    * Soundfont modulator container.
   29    *
   30    * @author Karl Helgason
   31    */
   32   public class SF2Modulator {
   33   
   34       public final static int SOURCE_NONE = 0;
   35       public final static int SOURCE_NOTE_ON_VELOCITY = 2;
   36       public final static int SOURCE_NOTE_ON_KEYNUMBER = 3;
   37       public final static int SOURCE_POLY_PRESSURE = 10;
   38       public final static int SOURCE_CHANNEL_PRESSURE = 13;
   39       public final static int SOURCE_PITCH_WHEEL = 14;
   40       public final static int SOURCE_PITCH_SENSITIVITY = 16;
   41       public final static int SOURCE_MIDI_CONTROL = 128 * 1;
   42       public final static int SOURCE_DIRECTION_MIN_MAX = 256 * 0;
   43       public final static int SOURCE_DIRECTION_MAX_MIN = 256 * 1;
   44       public final static int SOURCE_POLARITY_UNIPOLAR = 512 * 0;
   45       public final static int SOURCE_POLARITY_BIPOLAR = 512 * 1;
   46       public final static int SOURCE_TYPE_LINEAR = 1024 * 0;
   47       public final static int SOURCE_TYPE_CONCAVE = 1024 * 1;
   48       public final static int SOURCE_TYPE_CONVEX = 1024 * 2;
   49       public final static int SOURCE_TYPE_SWITCH = 1024 * 3;
   50       public final static int TRANSFORM_LINEAR = 0;
   51       public final static int TRANSFORM_ABSOLUTE = 2;
   52       protected int sourceOperator;
   53       protected int destinationOperator;
   54       protected short amount;
   55       protected int amountSourceOperator;
   56       protected int transportOperator;
   57   
   58       public short getAmount() {
   59           return amount;
   60       }
   61   
   62       public void setAmount(short amount) {
   63           this.amount = amount;
   64       }
   65   
   66       public int getAmountSourceOperator() {
   67           return amountSourceOperator;
   68       }
   69   
   70       public void setAmountSourceOperator(int amountSourceOperator) {
   71           this.amountSourceOperator = amountSourceOperator;
   72       }
   73   
   74       public int getTransportOperator() {
   75           return transportOperator;
   76       }
   77   
   78       public void setTransportOperator(int transportOperator) {
   79           this.transportOperator = transportOperator;
   80       }
   81   
   82       public int getDestinationOperator() {
   83           return destinationOperator;
   84       }
   85   
   86       public void setDestinationOperator(int destinationOperator) {
   87           this.destinationOperator = destinationOperator;
   88       }
   89   
   90       public int getSourceOperator() {
   91           return sourceOperator;
   92       }
   93   
   94       public void setSourceOperator(int sourceOperator) {
   95           this.sourceOperator = sourceOperator;
   96       }
   97   }

Save This Page
Home » openjdk-7 » com.sun.media » sound » [javadoc | source]