if (i != progression.size() - 1) {
chordArray[i] = compareChords(allChords, chordArray[i + 1]);
} else {
//create prefered last chord (For cadence)
Voice bassVoice = new Voice(NotePosition.ROOT, new Note("C2"));
Voice tenorVoice = new Voice(NotePosition.FIFTH, new Note("G2"));
Voice altoVoice = new Voice(NotePosition.THIRD, new Note("E3"));
Voice sopranoVoice = new Voice(NotePosition.ROOT, new Note("C4"));
//if the last chord is I....
if (progression.getIdentifier(i).equals("I")) {
chordArray[i] = new Chord("I", bassVoice, tenorVoice, altoVoice, sopranoVoice);
parent.appendInfo("\r\n");