void CConductor::findSplitPoint() { // find the split point int lowestTreble = MIDDLE_C + 37; int highestBase = MIDDLE_C - 37; CNote note; // Find where to put the split point for(int i = 0; i < m_wantedChord.length(); i++) { note = m_wantedChord.getNote(i); if (note.part() == PB_PART_right && note.pitch() < lowestTreble) lowestTreble = note.pitch(); if (note.part() == PB_PART_left && note.pitch() > highestBase) highestBase = note.pitch(); } //put the split point in the middle m_pianistSplitPoint = ((lowestTreble + highestBase) /2 ) + m_transpose; }