public void noteOn(int note, int velocity) {
        //search through the voices to find one that's available and press it
        for (int i = 0; i < voices.length; i++) {
            if (!voices[i].isInUse()) {
                voices[i].press(note, velocity);
                break;
            }
        }
    }