|
Java example source code file (SF2Region.java)
The SF2Region.java Java example source code/* * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package com.sun.media.sound; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Soundfont general region. * * @author Karl Helgason */ public class SF2Region { public final static int GENERATOR_STARTADDRSOFFSET = 0; public final static int GENERATOR_ENDADDRSOFFSET = 1; public final static int GENERATOR_STARTLOOPADDRSOFFSET = 2; public final static int GENERATOR_ENDLOOPADDRSOFFSET = 3; public final static int GENERATOR_STARTADDRSCOARSEOFFSET = 4; public final static int GENERATOR_MODLFOTOPITCH = 5; public final static int GENERATOR_VIBLFOTOPITCH = 6; public final static int GENERATOR_MODENVTOPITCH = 7; public final static int GENERATOR_INITIALFILTERFC = 8; public final static int GENERATOR_INITIALFILTERQ = 9; public final static int GENERATOR_MODLFOTOFILTERFC = 10; public final static int GENERATOR_MODENVTOFILTERFC = 11; public final static int GENERATOR_ENDADDRSCOARSEOFFSET = 12; public final static int GENERATOR_MODLFOTOVOLUME = 13; public final static int GENERATOR_UNUSED1 = 14; public final static int GENERATOR_CHORUSEFFECTSSEND = 15; public final static int GENERATOR_REVERBEFFECTSSEND = 16; public final static int GENERATOR_PAN = 17; public final static int GENERATOR_UNUSED2 = 18; public final static int GENERATOR_UNUSED3 = 19; public final static int GENERATOR_UNUSED4 = 20; public final static int GENERATOR_DELAYMODLFO = 21; public final static int GENERATOR_FREQMODLFO = 22; public final static int GENERATOR_DELAYVIBLFO = 23; public final static int GENERATOR_FREQVIBLFO = 24; public final static int GENERATOR_DELAYMODENV = 25; public final static int GENERATOR_ATTACKMODENV = 26; public final static int GENERATOR_HOLDMODENV = 27; public final static int GENERATOR_DECAYMODENV = 28; public final static int GENERATOR_SUSTAINMODENV = 29; public final static int GENERATOR_RELEASEMODENV = 30; public final static int GENERATOR_KEYNUMTOMODENVHOLD = 31; public final static int GENERATOR_KEYNUMTOMODENVDECAY = 32; public final static int GENERATOR_DELAYVOLENV = 33; public final static int GENERATOR_ATTACKVOLENV = 34; public final static int GENERATOR_HOLDVOLENV = 35; public final static int GENERATOR_DECAYVOLENV = 36; public final static int GENERATOR_SUSTAINVOLENV = 37; public final static int GENERATOR_RELEASEVOLENV = 38; public final static int GENERATOR_KEYNUMTOVOLENVHOLD = 39; public final static int GENERATOR_KEYNUMTOVOLENVDECAY = 40; public final static int GENERATOR_INSTRUMENT = 41; public final static int GENERATOR_RESERVED1 = 42; public final static int GENERATOR_KEYRANGE = 43; public final static int GENERATOR_VELRANGE = 44; public final static int GENERATOR_STARTLOOPADDRSCOARSEOFFSET = 45; public final static int GENERATOR_KEYNUM = 46; public final static int GENERATOR_VELOCITY = 47; public final static int GENERATOR_INITIALATTENUATION = 48; public final static int GENERATOR_RESERVED2 = 49; public final static int GENERATOR_ENDLOOPADDRSCOARSEOFFSET = 50; public final static int GENERATOR_COARSETUNE = 51; public final static int GENERATOR_FINETUNE = 52; public final static int GENERATOR_SAMPLEID = 53; public final static int GENERATOR_SAMPLEMODES = 54; public final static int GENERATOR_RESERVED3 = 55; public final static int GENERATOR_SCALETUNING = 56; public final static int GENERATOR_EXCLUSIVECLASS = 57; public final static int GENERATOR_OVERRIDINGROOTKEY = 58; public final static int GENERATOR_UNUSED5 = 59; public final static int GENERATOR_ENDOPR = 60; protected Map<Integer, Short> generators = new HashMap Other Java examples (source code examples)Here is a short list of links related to this Java SF2Region.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.