public Chord[] getChords(ChordFunction chordFunction) {
		switch (chordFunction) {
		case TONIC:
			Chord[] ret = {tonic};
			return ret;
		case RESOLUTION:
			return resolution;
		case SUBDOMINANT:
			return subdominant;
		case DOMINANT:
			return dominant;
		case PREDOMINANT:
			return predominant;
		case SECONDARY_DOMINANT:
			return secondaryDominant;
		}
		throw new IllegalArgumentException("Invalid chord function!");
	}