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 import java.util.ArrayList; 28 import java.util.List; 29 30 /** 31 * This class is used to define how to synthesize audio in universal maner 32 * for both SF2 and DLS instruments. 33 * 34 * @author Karl Helgason 35 */ 36 public final class ModelPerformer { 37 38 private final List<ModelOscillator> oscillators = new ArrayList<ModelOscillator>(); 39 private List<ModelConnectionBlock> connectionBlocks 40 = new ArrayList<ModelConnectionBlock>(); 41 private int keyFrom = 0; 42 private int keyTo = 127; 43 private int velFrom = 0; 44 private int velTo = 127; 45 private int exclusiveClass = 0; 46 private boolean releaseTrigger = false; 47 private boolean selfNonExclusive = false; 48 private Object userObject = null; 49 private boolean addDefaultConnections = true; 50 private String name = null; 51 52 public String getName() { 53 return name; 54 } 55 56 public void setName(String name) { 57 this.name = name; 58 } 59 60 public List<ModelConnectionBlock> getConnectionBlocks() { | 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 import java.util.ArrayList; 29 import java.util.List; 30 31 /** 32 * This class is used to define how to synthesize audio in universal maner 33 * for both SF2 and DLS instruments. 34 * 35 * @author Karl Helgason 36 */ 37 public final class ModelPerformer { 38 39 private final List<ModelOscillator> oscillators = new ArrayList<>(); 40 private List<ModelConnectionBlock> connectionBlocks = new ArrayList<>(); 41 42 private int keyFrom = 0; 43 private int keyTo = 127; 44 private int velFrom = 0; 45 private int velTo = 127; 46 private int exclusiveClass = 0; 47 private boolean releaseTrigger = false; 48 private boolean selfNonExclusive = false; 49 private Object userObject = null; 50 private boolean addDefaultConnections = true; 51 private String name = null; 52 53 public String getName() { 54 return name; 55 } 56 57 public void setName(String name) { 58 this.name = name; 59 } 60 61 public List<ModelConnectionBlock> getConnectionBlocks() { |