package y0;

import com.jsyn.unitgen.y;

/* JADX INFO: loaded from: classes.dex */
public abstract class g {
    private String name;
    private String[] presetNames;

    public g(String str, String[] strArr) {
        this.name = str;
        this.presetNames = strArr;
    }

    public abstract y createUnitVoice();

    public String getName() {
        return this.name;
    }

    public int getPresetCount() {
        return this.presetNames.length;
    }

    public String[] getPresetNames() {
        return this.presetNames;
    }

    public void setName(String str) {
        this.name = str;
    }

    public String toString() {
        return this.name + "[" + getPresetCount() + "]";
    }
}
