if (evt.getID() == 007) {
PChange pchg = (PChange) evt;
part.setInstrument(pchg.getValue());
// if this event is a NoteOn event go on
} else if (evt.getID() == 005) {
NoteOn noteOn = (NoteOn) evt;
part.setChannel(noteOn.getMidiChannel());
short pitch = noteOn.getPitch();
int dynamic = noteOn.getVelocity();
short midiChannel = noteOn.getMidiChannel();
// if you're a true NoteOn
if (dynamic > 0) {
noteOn(phrIndex, curNote, smf, i, currentLength, startTime, phrVct, midiChannel, pitch,
dynamic, evtList);
}