public void setChordInstrument(int instrument) { // System.out.println("score setChordInstrument to " + instrument); chordProg.setChordInstrument(instrument); Style style = chordProg.getStyle(); if (style != null) { style.setChordInstrument(instrument, "Score"); } }