private int getValueKC(ModelIdentifier id) { if (id.getObject().equals("midi_cc")) { int ic = Integer.parseInt(id.getVariable()); if (ic != 0 && ic != 32) { if (ic < 120) return ic; } } else if (id.getObject().equals("midi_rpn")) { if (id.getVariable().equals("1")) return 120; // Fine tuning if (id.getVariable().equals("2")) return 121; // Coarse tuning } return -1; }
private double[] getValue(ModelIdentifier id) { SoftControl o = objects.get(id.getObject()); if (o == null) return null; return o.get(id.getInstance(), id.getVariable()); }