Searched refs:ModelPatch (Results 1 - 13 of 13) sorted by relevance

/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DModelPatch.java36 public final class ModelPatch extends Patch { class in inherits:Patch
40 public ModelPatch(int bank, int program) { method in class:ModelPatch
44 public ModelPatch(int bank, int program, boolean percussion) { method in class:ModelPatch
H A DModelInstrumentComparator.java44 if (p0 instanceof ModelPatch) {
45 a += ((ModelPatch)p0).isPercussion() ? 2097152 : 0;
47 if (p1 instanceof ModelPatch) {
48 b += ((ModelPatch)p1).isPercussion() ? 2097152 : 0;
H A DModelInstrument.java79 if (getPatch() instanceof ModelPatch)
80 percussion = ((ModelPatch)getPatch()).isPercussion();
109 if (getPatch() instanceof ModelPatch)
110 percussion = ((ModelPatch)getPatch()).isPercussion();
H A DModelAbstractOscillator.java176 if (p instanceof ModelPatch && patch instanceof ModelPatch) {
177 if (((ModelPatch)p).isPercussion()
178 != ((ModelPatch)patch).isPercussion()) {
H A DSimpleSoundbank.java97 if (patch instanceof ModelPatch)
98 percussion = ((ModelPatch)patch).isPercussion();
105 if (patch2 instanceof ModelPatch)
106 percussion2 = ((ModelPatch)patch2).isPercussion();
H A DSimpleInstrument.java181 public ModelPatch getPatch() {
182 return new ModelPatch(bank, preset, percussion);
186 if (patch instanceof ModelPatch && ((ModelPatch)patch).isPercussion()) {
H A DDLSInstrument.java73 public ModelPatch getPatch() {
74 return new ModelPatch(bank, preset, druminstrument);
78 if (patch instanceof ModelPatch && ((ModelPatch)patch).isPercussion()) {
H A DSF2Instrument.java69 return new ModelPatch(0, preset, true);
71 return new ModelPatch(bank << 7, preset, false);
75 if (patch instanceof ModelPatch && ((ModelPatch) patch).isPercussion()) {
H A DSF2Soundbank.java875 if (patch instanceof ModelPatch)
876 percussion = ((ModelPatch)patch).isPercussion();
883 if (patch2 instanceof ModelPatch)
884 percussion2 = ((ModelPatch) patch2).isPercussion();
H A DDLSSoundbank.java1233 if (patch instanceof ModelPatch)
1234 percussion = ((ModelPatch) patch).isPercussion();
1241 if (patch2 instanceof ModelPatch)
1242 percussion2 = ((ModelPatch) patch2).isPercussion();
H A DSoftSynthesizer.java358 if (patch instanceof ModelPatch && ((ModelPatch) patch).isPercussion())
H A DEmergencySoundbank.java243 drum_instrument.setPatch(new ModelPatch(0, 0, true));
471 if (patch instanceof ModelPatch) {
472 if (((ModelPatch) patch).isPercussion())
/openjdk7/jdk/test/javax/sound/midi/Gervill/EmergencySoundbank/
H A DTestCreateSoundbank.java37 import com.sun.media.sound.ModelPatch;
45 Patch patch = new ModelPatch(0, i, false);
52 Patch patch = new ModelPatch(0, 0, true);

Completed in 70 milliseconds