829N/A/*
6321N/A * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
829N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
829N/A *
829N/A * This code is free software; you can redistribute it and/or modify it
829N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
829N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
829N/A *
829N/A * This code is distributed in the hope that it will be useful, but WITHOUT
829N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
829N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
829N/A * version 2 for more details (a copy is included in the LICENSE file that
829N/A * accompanied this code).
829N/A *
829N/A * You should have received a copy of the GNU General Public License version
829N/A * 2 along with this work; if not, write to the Free Software Foundation,
829N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
829N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
829N/A */
829N/Apackage com.sun.media.sound;
829N/A
829N/Aimport java.util.ArrayList;
829N/Aimport java.util.List;
829N/A
829N/A/**
829N/A * This class is used to store region parts for instrument.
829N/A * A region has a velocity and key range which it response to.
829N/A * And it has a list of modulators/articulators which
829N/A * is used how to synthesize a single voice.
829N/A * It is stored inside a "rgn " List Chunk inside DLS files.
829N/A *
829N/A * @author Karl Helgason
829N/A */
6321N/Apublic final class DLSRegion {
829N/A
829N/A public final static int OPTION_SELFNONEXCLUSIVE = 0x0001;
6321N/A List<DLSModulator> modulators = new ArrayList<DLSModulator>();
6321N/A int keyfrom;
6321N/A int keyto;
6321N/A int velfrom;
6321N/A int velto;
6321N/A int options;
6321N/A int exclusiveClass;
6321N/A int fusoptions;
6321N/A int phasegroup;
6321N/A long channel;
6321N/A DLSSample sample = null;
6321N/A DLSSampleOptions sampleoptions;
829N/A
829N/A public List<DLSModulator> getModulators() {
829N/A return modulators;
829N/A }
829N/A
829N/A public long getChannel() {
829N/A return channel;
829N/A }
829N/A
829N/A public void setChannel(long channel) {
829N/A this.channel = channel;
829N/A }
829N/A
829N/A public int getExclusiveClass() {
829N/A return exclusiveClass;
829N/A }
829N/A
829N/A public void setExclusiveClass(int exclusiveClass) {
829N/A this.exclusiveClass = exclusiveClass;
829N/A }
829N/A
829N/A public int getFusoptions() {
829N/A return fusoptions;
829N/A }
829N/A
829N/A public void setFusoptions(int fusoptions) {
829N/A this.fusoptions = fusoptions;
829N/A }
829N/A
829N/A public int getKeyfrom() {
829N/A return keyfrom;
829N/A }
829N/A
829N/A public void setKeyfrom(int keyfrom) {
829N/A this.keyfrom = keyfrom;
829N/A }
829N/A
829N/A public int getKeyto() {
829N/A return keyto;
829N/A }
829N/A
829N/A public void setKeyto(int keyto) {
829N/A this.keyto = keyto;
829N/A }
829N/A
829N/A public int getOptions() {
829N/A return options;
829N/A }
829N/A
829N/A public void setOptions(int options) {
829N/A this.options = options;
829N/A }
829N/A
829N/A public int getPhasegroup() {
829N/A return phasegroup;
829N/A }
829N/A
829N/A public void setPhasegroup(int phasegroup) {
829N/A this.phasegroup = phasegroup;
829N/A }
829N/A
829N/A public DLSSample getSample() {
829N/A return sample;
829N/A }
829N/A
829N/A public void setSample(DLSSample sample) {
829N/A this.sample = sample;
829N/A }
829N/A
829N/A public int getVelfrom() {
829N/A return velfrom;
829N/A }
829N/A
829N/A public void setVelfrom(int velfrom) {
829N/A this.velfrom = velfrom;
829N/A }
829N/A
829N/A public int getVelto() {
829N/A return velto;
829N/A }
829N/A
829N/A public void setVelto(int velto) {
829N/A this.velto = velto;
829N/A }
829N/A
829N/A public void setModulators(List<DLSModulator> modulators) {
829N/A this.modulators = modulators;
829N/A }
829N/A
829N/A public DLSSampleOptions getSampleoptions() {
829N/A return sampleoptions;
829N/A }
829N/A
829N/A public void setSampleoptions(DLSSampleOptions sampleOptions) {
829N/A this.sampleoptions = sampleOptions;
829N/A }
829N/A}