public void playSoundLine(int index) {
        if (!run)
            return;
        StaffNoteLine s = theStaff.getSequence().getLine(
                (int) (currVal.doubleValue() + index));
        ArrayList<StaffNote> theNotes = s.getNotes();
        tracker.stopNotes(s);
        for (StaffNote sn : theNotes) {
            if (sn.muteNoteVal() == 1)
                stopSound(sn);
            else if (sn.muteNoteVal() == 2)
                stopInstrument(sn);
        }
        for (StaffNote sn : theNotes) {
            if (sn.muteNoteVal() == 0)
                playSound(sn, s);
        }
    }