/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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.
*/
/**
* This class is used to store information to describe instrument.
* It contains list of regions and modulators.
* It is stored inside a "ins " List Chunk inside DLS files.
* In the DLS documentation a modulator is called articulator.
*
* @author Karl Helgason
*/
boolean druminstrument = false;
public DLSInstrument() {
}
}
return info;
}
}
}
}
druminstrument = true;
} else {
druminstrument = false;
}
}
return null;
}
return regions;
}
return modulators;
}
if (druminstrument)
else
}
return null;
return ModelDestination.DESTINATION_GAIN;
return ModelDestination.DESTINATION_PITCH;
return ModelDestination.DESTINATION_PAN;
// DLS2 Destinations
return ModelDestination.DESTINATION_CHORUS;
return ModelDestination.DESTINATION_REVERB;
return ModelDestination.DESTINATION_EG1_HOLD;
return ModelDestination.DESTINATION_EG2_HOLD;
return ModelDestination.DESTINATION_FILTER_Q;
return null;
}
return null;
return ModelSource.SOURCE_LFO1;
return ModelSource.SOURCE_NOTEON_VELOCITY;
return ModelSource.SOURCE_NOTEON_KEYNUMBER;
return ModelSource.SOURCE_EG1;
return ModelSource.SOURCE_EG2;
return ModelSource.SOURCE_MIDI_PITCH;
return ModelSource.SOURCE_MIDI_POLY_PRESSURE;
return ModelSource.SOURCE_LFO2;
return null;
}
double f_scale;
else
if (destination_id != null) {
ModelSource s = new ModelSource();
}
s.setIdentifier(control);
ctrl = s;
}
ModelSource s = new ModelSource();
}
s.setIdentifier(source);
src = s;
}
//if (mod.getTransform() == DLSModulator.CONN_TRN_CONCAVE) {
// ((ModelStandardTransform)destination.getTransform())
// .setTransform(
// ModelStandardTransform.TRANSFORM_CONCAVE);
//}
}
}
}
}
}
/* No output transforms are defined the DLS Level 2
int out_transform = transform % 8;
int trans = ModelStandardTransform.TRANSFORM_LINEAR;
if (out_transform == DLSModulator.CONN_TRN_SWITCH)
trans = ModelStandardTransform.TRANSFORM_SWITCH;
if (out_transform == DLSModulator.CONN_TRN_CONCAVE)
trans = ModelStandardTransform.TRANSFORM_CONCAVE;
if (out_transform == DLSModulator.CONN_TRN_CONVEX)
trans = ModelStandardTransform.TRANSFORM_CONVEX;
if (ctrl != null) {
((ModelStandardTransform)destination.getTransform())
.setTransform(trans);
}
*/
}
return block;
}
return null;
}
}
}
if (p != null)
}
else
}
new ModelDestination(
}
}
public byte[] getGuid() {
}
}
}