com.sun.media.sound.ModelInstrument Java Examples

The following examples show how to use com.sun.media.sound.ModelInstrument. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SoftInstrument.java    From tuxguitar with GNU Lesser General Public License v2.1 5 votes vote down vote up
public SoftInstrument(ModelInstrument ins) {
    super(ins.getSoundbank(), ins.getPatch(), ins.getName(),
            ins.getDataClass());
    data = ins.getData();
    this.ins = ins;
    initPerformers(((ModelInstrument)ins).getPerformers());
}
 
Example #2
Source File: SoftInstrument.java    From tuxguitar with GNU Lesser General Public License v2.1 5 votes vote down vote up
public SoftInstrument(ModelInstrument ins,
        ModelPerformer[] overrideperformers) {
    super(ins.getSoundbank(), ins.getPatch(), ins.getName(),
            ins.getDataClass());
    data = ins.getData();
    this.ins = ins;
    initPerformers(overrideperformers);
}
 
Example #3
Source File: SimpleInstrument.java    From tuxguitar with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void add(ModelInstrument ins, int keyFrom, int keyTo, int velFrom,
        int velTo, int exclusiveClass) {
    add(ins.getPerformers(), keyFrom, keyTo, velFrom, velTo, exclusiveClass);
}
 
Example #4
Source File: SimpleInstrument.java    From tuxguitar with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void add(ModelInstrument ins, int keyFrom, int keyTo, int velFrom,
        int velTo) {
    add(ins.getPerformers(), keyFrom, keyTo, velFrom, velTo);
}
 
Example #5
Source File: SimpleInstrument.java    From tuxguitar with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void add(ModelInstrument ins, int keyFrom, int keyTo) {
    add(ins.getPerformers(), keyFrom, keyTo);
}
 
Example #6
Source File: SimpleInstrument.java    From tuxguitar with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void add(ModelInstrument ins) {
    add(ins.getPerformers());
}
 
Example #7
Source File: SoftInstrument.java    From tuxguitar with GNU Lesser General Public License v2.1 4 votes vote down vote up
public ModelInstrument getSourceInstrument() {
    return ins;
}