andrew@50: // the main voicing tables for chords requested andrew@50: andrew@50: // root position andrew@50: andrew@50: int[] hchoice135 = new int[] {24, 36, 43, 48, 52, 55, 60, 64, 67, 72, 76, 79, 84, 88, 91, 96}; andrew@50: int[] hchoice7 = new int[] {24, 36, 43, 48, 52, 55, 59, 64, 67, 71, 72, 76, 79, 83, 88, 95}; andrew@50: int[] hchoice9 = new int[] {24, 36, 43, 48, 50, 52, 55, 60, 62, 64, 67, 74, 76, 79, 86, 91}; andrew@50: int[] hchoice11 = new int[] {24, 36, 43, 48, 53, 55, 60, 65, 67, 72, 77, 79, 84, 89, 91, 96}; andrew@50: int[] hchoice13 = new int[] {24, 36, 43, 48, 52, 55, 57, 60, 64, 69, 72, 76, 81, 84, 88, 93}; andrew@50: int[] hchoice79 = new int[] {24, 36, 43, 48, 52, 55, 57, 59, 62, 64, 69, 71, 74, 76, 83, 86}; andrew@50: int[] hchoice711 = new int[] {24, 36, 43, 48, 53, 55, 59, 60, 65, 67, 71, 72, 77, 83, 88, 95}; //nice andrew@50: int[] hchoice713 = new int[] {24, 36, 43, 48, 52, 57, 59, 64, 69, 71, 76, 79, 81, 83, 88, 93}; andrew@50: int[] hchoice911 = new int[] {24, 36, 43, 48, 53, 55, 60, 62, 65, 67, 74, 77, 79, 86, 89, 96}; andrew@50: int[] hchoice913 = new int[] {24, 36, 43, 48, 50, 57, 60, 62, 69, 72, 74, 81, 84, 86, 93, 96}; andrew@50: int[] hchoice1113 = new int[] {24, 36, 43, 48, 52, 53, 57, 60, 64, 65, 69, 72, 77, 81, 84, 93}; //nice andrew@50: int[] hchoice7911 = new int[] {24, 36, 43, 48, 55, 62, 65, 71, 77, 79, 83, 84, 86, 89, 91, 96}; andrew@50: int[] hchoice7913 = new int[] {24, 36, 43, 48, 59, 62, 69, 71, 74, 81, 83, 84, 86, 93, 95, 96}; andrew@50: int[] hchoice71113 = new int[]{24, 36, 43, 48, 55, 59, 65, 69, 76, 77, 79, 84, 88, 89, 93, 96}; andrew@50: int[] hchoice91113 = new int[]{24, 36, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89, 96}; andrew@50: int[] hchoice791113 = new int[]{24, 36, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89, 94, 96}; //dom7th full sus chord andrew@50: andrew@50: int[] mhchoice135 = new int[] {24, 36, 43, 48, 51, 55, 60, 63, 67, 72, 75, 79, 84, 87, 91, 96};// andrew@50: int[] mhchoice7 = new int[] {24, 36, 43, 48, 51, 55, 58, 63, 67, 70, 72, 75, 79, 82, 87, 94};// andrew@50: int[] mhchoice9 = new int[] {24, 36, 43, 48, 50, 51, 55, 60, 62, 63, 67, 72, 74, 79, 86, 91};// andrew@50: int[] mhchoice11 = new int[] {24, 36, 43, 48, 51, 53, 55, 60, 63, 65, 67, 72, 77, 79, 84, 89};// andrew@50: int[] mhchoice13 = new int[] {24, 36, 43, 48, 51, 55, 57, 60, 63, 67, 69, 72, 75, 81, 84, 91};// andrew@50: int[] mhchoice79 = new int[] {24, 36, 43, 50, 51, 55, 57, 58, 62, 63, 69, 70, 74, 75, 82, 86};// andrew@50: int[] mhchoice711 = new int[] {24, 36, 43, 51, 58, 63, 65, 69, 72, 75, 77, 79, 82, 84, 89, 96};// andrew@50: int[] mhchoice713 = new int[] {24, 36, 43, 48, 55, 58, 59, 63, 69, 75, 79, 81, 82, 84, 93, 96};// andrew@50: int[] mhchoice911 = new int[] {24, 36, 43, 48, 51, 53, 62, 63, 65, 67, 74, 77, 79, 86, 89, 96};// andrew@50: int[] mhchoice913 = new int[] {24, 36, 43, 51, 57, 62, 63, 69, 74, 75, 81, 84, 86, 87, 93, 96};// andrew@50: int[] mhchoice1113 = new int[] {24, 36, 43, 53, 57, 63, 67, 72, 75, 77, 79, 81, 84, 87, 93, 96};// andrew@50: int[] mhchoice7911 = new int[] {24, 36, 43, 50, 51, 58, 65, 67, 70, 72, 74, 75, 77, 79, 82, 86};// andrew@50: int[] mhchoice7913 = new int[] {24, 36, 48, 55, 58, 62, 63, 69, 70, 74, 75, 79, 81, 84, 93, 96};// andrew@50: int[] mhchoice71113 = new int[]{24, 36, 43, 48, 53, 58, 63, 65, 69, 72, 75, 77, 81, 84, 91, 96};// andrew@50: int[] mhchoice91113 = new int[]{24, 36, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89, 96};// andrew@50: int[] mhchoice791113 = new int[]{24, 36, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89, 94, 96}; //dom7th full sus chord andrew@50: andrew@50: // first inversion andrew@50: andrew@50: int[] h1choice135 = new int[] {24, 36, 40, 43, 48, 52, 55, 60, 64, 67, 72, 76, 79, 84, 88, 91}; andrew@50: int[] h1choice7 = new int[] {24, 36, 40, 43, 48, 52, 55, 59, 64, 67, 71, 72, 76, 79, 83, 88}; andrew@50: int[] h1choice9 = new int[] {24, 36, 38, 43, 48, 50, 52, 55, 60, 62, 64, 67, 74, 76, 79, 86}; andrew@50: int[] h1choice11 = new int[] {24, 36, 41, 43, 48, 53, 55, 60, 65, 67, 72, 77, 79, 84, 89, 91}; andrew@50: int[] h1choice13 = new int[] {24, 36, 40, 43, 48, 52, 55, 57, 60, 64, 69, 72, 76, 81, 84, 88}; andrew@50: int[] h1choice79 = new int[] {24, 36, 40, 43, 48, 52, 55, 57, 59, 62, 64, 69, 71, 74, 76, 83}; andrew@50: int[] h1choice711 = new int[] {24, 36, 41, 43, 48, 53, 55, 59, 60, 65, 67, 71, 72, 77, 83, 88}; //nice andrew@50: int[] h1choice713 = new int[] {24, 36, 40, 43, 48, 52, 57, 59, 64, 69, 71, 76, 79, 81, 83, 88}; andrew@50: int[] h1choice911 = new int[] {24, 36, 41, 43, 48, 53, 55, 60, 62, 65, 67, 74, 77, 79, 86, 89}; andrew@50: int[] h1choice913 = new int[] {24, 36, 43, 45, 48, 50, 57, 60, 62, 69, 72, 74, 81, 84, 86, 93}; andrew@50: int[] h1choice1113 = new int[] {24, 36, 40, 43, 48, 52, 53, 57, 60, 64, 65, 69, 72, 77, 81, 84}; //nice andrew@50: int[] h1choice7911 = new int[] {24, 36, 43, 48, 50, 55, 62, 65, 71, 77, 79, 83, 84, 86, 89, 91}; andrew@50: int[] h1choice7913 = new int[] {24, 36, 43, 48, 55, 59, 62, 69, 71, 74, 81, 83, 84, 86, 93, 95}; andrew@50: int[] h1choice71113 = new int[]{24, 36, 43, 48, 53, 55, 59, 65, 69, 76, 77, 79, 84, 88, 89, 93}; andrew@50: int[] h1choice91113 = new int[]{24, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89}; andrew@50: int[] h1choice791113 = new int[]{24, 36, 43, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89, 94}; //dom7th full sus chord andrew@50: andrew@50: int[] m1hchoice135 = new int[] {24, 36, 39, 43, 48, 51, 55, 60, 63, 67, 72, 75, 79, 84, 87, 91};// andrew@50: int[] m1hchoice7 = new int[] {24, 36, 39, 43, 48, 51, 55, 58, 63, 67, 70, 72, 75, 79, 82, 87};// andrew@50: int[] m1hchoice9 = new int[] {24, 36, 38, 43, 48, 50, 51, 55, 60, 62, 63, 67, 72, 74, 79, 86};// andrew@50: int[] m1hchoice11 = new int[] {24, 36, 39, 43, 48, 51, 53, 55, 60, 63, 65, 67, 72, 77, 79, 84};// andrew@50: int[] m1hchoice13 = new int[] {24, 36, 39, 43, 48, 51, 55, 57, 60, 63, 67, 69, 72, 75, 81, 84};// andrew@50: int[] m1hchoice79 = new int[] {24, 36, 39, 43, 50, 51, 55, 57, 58, 62, 63, 69, 70, 74, 75, 82};// andrew@50: int[] m1hchoice711 = new int[] {24, 36, 43, 46, 51, 58, 63, 65, 69, 72, 75, 77, 79, 82, 84, 89};// andrew@50: int[] m1hchoice713 = new int[] {24, 36, 43, 46, 48, 55, 58, 59, 63, 69, 75, 79, 81, 82, 84, 93};// andrew@50: int[] m1hchoice911 = new int[] {24, 36, 39, 43, 48, 51, 53, 62, 63, 65, 67, 74, 77, 79, 86, 89};// andrew@50: int[] m1hchoice913 = new int[] {24, 36, 43, 48, 51, 57, 62, 63, 69, 74, 75, 81, 84, 86, 87, 93};// andrew@50: int[] m1hchoice1113 = new int[] {24, 36, 43, 45, 53, 57, 63, 67, 72, 75, 77, 79, 81, 84, 87, 93};// andrew@50: int[] m1hchoice7911 = new int[] {24, 36, 39, 43, 50, 51, 58, 65, 67, 70, 72, 74, 75, 77, 79, 82};// andrew@50: int[] m1hchoice7913 = new int[] {24, 36, 43, 48, 55, 58, 62, 63, 69, 70, 74, 75, 79, 81, 84, 93};// andrew@50: int[] m1hchoice71113 = new int[]{24, 36, 43, 46, 48, 53, 58, 63, 65, 69, 72, 75, 77, 81, 84, 91};// andrew@50: int[] m1hchoice91113 = new int[]{24, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89};// andrew@50: int[] m1hchoice791113 = new int[]{24, 36, 46, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89, 94}; //dom7th full sus chord andrew@50: andrew@50: // second inversion andrew@50: andrew@50: int[] h2choice135 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 60, 64, 67, 72, 76, 79, 84, 88}; andrew@50: int[] h2choice7 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 59, 64, 67, 71, 72, 76, 79, 83}; andrew@50: int[] h2choice9 = new int[] {24, 31, 36, 38, 43, 48, 50, 52, 55, 60, 62, 64, 67, 74, 76, 79}; andrew@50: int[] h2choice11 = new int[] {24, 31, 36, 41, 43, 48, 53, 55, 60, 65, 67, 72, 77, 79, 84, 89}; andrew@50: int[] h2choice13 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 57, 60, 64, 69, 72, 76, 81, 84}; andrew@50: int[] h2choice79 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 57, 59, 62, 64, 69, 71, 74, 76}; andrew@50: int[] h2choice711 = new int[] {24, 31, 36, 41, 43, 48, 53, 55, 59, 60, 65, 67, 71, 72, 77, 83}; //nice andrew@50: int[] h2choice713 = new int[] {24, 31, 36, 40, 43, 48, 52, 57, 59, 64, 69, 71, 76, 79, 81, 83}; andrew@50: int[] h2choice911 = new int[] {24, 31, 36, 41, 43, 48, 53, 55, 60, 62, 65, 67, 74, 77, 79, 86}; andrew@50: int[] h2choice913 = new int[] {24, 31, 36, 43, 45, 48, 50, 57, 60, 62, 69, 72, 74, 81, 84, 86}; andrew@50: int[] h2choice1113 = new int[] {24, 31, 36, 40, 43, 48, 52, 53, 57, 60, 64, 65, 69, 72, 77, 81}; //nice andrew@50: int[] h2choice7911 = new int[] {24, 31, 36, 43, 48, 50, 55, 62, 65, 71, 77, 79, 83, 84, 86, 89}; andrew@50: int[] h2choice7913 = new int[] {24, 31, 36, 43, 48, 55, 59, 62, 69, 71, 74, 81, 83, 84, 86, 93}; andrew@50: int[] h2choice71113 = new int[]{24, 31, 36, 43, 48, 53, 55, 59, 65, 69, 76, 77, 79, 84, 88, 89}; andrew@50: int[] h2choice91113 = new int[]{24, 31, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81}; andrew@50: int[] h2choice791113 = new int[]{24, 31, 36, 43, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89}; //dom7th full sus chord andrew@50: andrew@50: int[] m2hchoice135 = new int[] {24, 31, 36, 39, 43, 48, 51, 55, 60, 63, 67, 72, 75, 79, 84, 87};// andrew@50: int[] m2hchoice7 = new int[] {24, 31, 36, 39, 43, 48, 51, 55, 58, 63, 67, 70, 72, 75, 79, 82};// andrew@50: int[] m2hchoice9 = new int[] {24, 31, 36, 38, 43, 48, 50, 51, 55, 60, 62, 63, 67, 72, 74, 79};// andrew@50: int[] m2hchoice11 = new int[] {24, 31, 36, 39, 43, 48, 51, 53, 55, 60, 63, 65, 67, 72, 77, 79};// andrew@50: int[] m2hchoice13 = new int[] {24, 31, 36, 39, 43, 48, 51, 55, 57, 60, 63, 67, 69, 72, 75, 81};// andrew@50: int[] m2hchoice79 = new int[] {24, 31, 36, 39, 43, 50, 51, 55, 57, 58, 62, 63, 69, 70, 74, 75};// andrew@50: int[] m2hchoice711 = new int[] {24, 31, 36, 43, 46, 51, 58, 63, 65, 69, 72, 75, 77, 79, 82, 84};// andrew@50: int[] m2hchoice713 = new int[] {24, 31, 36, 43, 46, 48, 55, 58, 59, 63, 69, 75, 79, 81, 82, 84};// andrew@50: int[] m2hchoice911 = new int[] {24, 31, 36, 39, 43, 48, 51, 53, 62, 63, 65, 67, 74, 77, 79, 86};// andrew@50: int[] m2hchoice913 = new int[] {24, 31, 36, 43, 48, 51, 57, 62, 63, 69, 74, 75, 81, 84, 86, 87};// andrew@50: int[] m2hchoice1113 = new int[] {24, 31, 36, 43, 45, 53, 57, 63, 67, 72, 75, 77, 79, 81, 84, 87};// andrew@50: int[] m2hchoice7911 = new int[] {24, 31, 36, 39, 43, 50, 51, 58, 65, 67, 70, 72, 74, 75, 77, 79};// andrew@50: int[] m2hchoice7913 = new int[] {24, 31, 36, 43, 48, 55, 58, 62, 63, 69, 70, 74, 75, 79, 81, 84};// andrew@50: int[] m2hchoice71113 = new int[]{24, 31, 36, 43, 46, 48, 53, 58, 63, 65, 69, 72, 75, 77, 81, 84};// andrew@50: int[] m2hchoice91113 = new int[]{24, 31, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81};// andrew@50: int[] m2hchoice791113 = new int[]{24, 31, 36, 46, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89}; //dom7th full sus chord andrew@50: andrew@50: int[] hvArray; andrew@50: int[] minorSystem = new int[] {0, 3, 7, 10, 14, 17, 21}; andrew@50: int[] major7System = new int[] {0, 4, 7, 11, 14, 18, 21}; andrew@50: int[] dom7System = new int[] {0, 4, 7, 10, 14, 17, 21}; andrew@50: int[] tritoneSystem = new int[] {0, 4, 7, 10, 14, 18, 21}; andrew@50: andrew@50: public int heresyPitch(int arrayPosition, int heresyChannel){ // calculates the pitch value to be returned for playback. andrew@50: boolean m = heresyMinor; andrew@50: boolean e7 = heresy7th; andrew@50: boolean e9 = heresy9th; andrew@50: boolean e11 = heresy11th; andrew@50: boolean e13 = heresy13th; andrew@50: int returnInt = 0; andrew@50: if ((currentChord % 12) > -1 && (currentChord % 12) < 4){ andrew@50: if (!m && !e7 && !e9 && !e11 && !e13) returnInt = hchoice135[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && !e11 && !e13) returnInt = hchoice7[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && !e11 && !e13) returnInt = hchoice9[15 - arrayPosition]; andrew@50: if (!m && !e7 && !e9 && e11 && !e13) returnInt = hchoice11[15 - arrayPosition]; andrew@50: if (!m && !e7 && !e9 && !e11 && e13) returnInt = hchoice13[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && !e11 && !e13) returnInt = hchoice79[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && e11 && !e13) returnInt = hchoice711[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && !e11 && e13) returnInt = hchoice713[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && e11 && !e13) returnInt = hchoice911[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && !e11 && e13) returnInt = hchoice913[15 - arrayPosition]; andrew@50: if (!m && !e7 && !e9 && e11 && e13) returnInt = hchoice1113[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && e11 && !e13) returnInt = hchoice7911[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && !e11 && e13) returnInt = hchoice7913[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && e11 && e13) returnInt = hchoice71113[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && e11 && e13) returnInt = hchoice91113[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && e11 && e13) returnInt = hchoice791113[15 - arrayPosition]; andrew@50: andrew@50: if (m && !e7 && !e9 && !e11 && !e13) returnInt = mhchoice135[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && !e11 && !e13) returnInt = mhchoice7[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && !e11 && !e13) returnInt = mhchoice9[15 - arrayPosition]; andrew@50: if (m && !e7 && !e9 && e11 && !e13) returnInt = mhchoice11[15 - arrayPosition]; andrew@50: if (m && !e7 && !e9 && !e11 && e13) returnInt = mhchoice13[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && !e11 && !e13) returnInt = mhchoice79[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && e11 && !e13) returnInt = mhchoice711[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && !e11 && e13) returnInt = mhchoice713[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && e11 && !e13) returnInt = mhchoice911[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && !e11 && e13) returnInt = mhchoice913[15 - arrayPosition]; andrew@50: if (m && !e7 && !e9 && e11 && e13) returnInt = mhchoice1113[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && e11 && !e13) returnInt = mhchoice7911[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && !e11 && e13) returnInt = mhchoice7913[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && e11 && e13) returnInt = mhchoice71113[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && e11 && e13) returnInt = mhchoice91113[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && e11 && e13) returnInt = mhchoice791113[15 - arrayPosition]; andrew@50: } andrew@50: andrew@50: if ((currentChord % 12) > 3 && (currentChord % 12) < 8){ andrew@50: if (!m && !e7 && !e9 && !e11 && !e13) returnInt = h1choice135[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && !e11 && !e13) returnInt = h1choice7[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && !e11 && !e13) returnInt = h1choice9[15 - arrayPosition]; andrew@50: if (!m && !e7 && !e9 && e11 && !e13) returnInt = h1choice11[15 - arrayPosition]; andrew@50: if (!m && !e7 && !e9 && !e11 && e13) returnInt = h1choice13[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && !e11 && !e13) returnInt = h1choice79[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && e11 && !e13) returnInt = h1choice711[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && !e11 && e13) returnInt = h1choice713[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && e11 && !e13) returnInt = h1choice911[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && !e11 && e13) returnInt = h1choice913[15 - arrayPosition]; andrew@50: if (!m && !e7 && !e9 && e11 && e13) returnInt = h1choice1113[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && e11 && !e13) returnInt = h1choice7911[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && !e11 && e13) returnInt = h1choice7913[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && e11 && e13) returnInt = h1choice71113[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && e11 && e13) returnInt = h1choice91113[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && e11 && e13) returnInt = h1choice791113[15 - arrayPosition]; andrew@50: andrew@50: if (m && !e7 && !e9 && !e11 && !e13) returnInt = m1hchoice135[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && !e11 && !e13) returnInt = m1hchoice7[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && !e11 && !e13) returnInt = m1hchoice9[15 - arrayPosition]; andrew@50: if (m && !e7 && !e9 && e11 && !e13) returnInt = m1hchoice11[15 - arrayPosition]; andrew@50: if (m && !e7 && !e9 && !e11 && e13) returnInt = m1hchoice13[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && !e11 && !e13) returnInt = m1hchoice79[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && e11 && !e13) returnInt = m1hchoice711[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && !e11 && e13) returnInt = m1hchoice713[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && e11 && !e13) returnInt = m1hchoice911[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && !e11 && e13) returnInt = m1hchoice913[15 - arrayPosition]; andrew@50: if (m && !e7 && !e9 && e11 && e13) returnInt = m1hchoice1113[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && e11 && !e13) returnInt = m1hchoice7911[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && !e11 && e13) returnInt = m1hchoice7913[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && e11 && e13) returnInt = m1hchoice71113[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && e11 && e13) returnInt = m1hchoice91113[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && e11 && e13) returnInt = m1hchoice791113[15 - arrayPosition]; andrew@50: } andrew@50: andrew@50: if ((currentChord % 12) > 7 && (currentChord % 12) < 12){ andrew@50: if (!m && !e7 && !e9 && !e11 && !e13) returnInt = h2choice135[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && !e11 && !e13) returnInt = h2choice7[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && !e11 && !e13) returnInt = h2choice9[15 - arrayPosition]; andrew@50: if (!m && !e7 && !e9 && e11 && !e13) returnInt = h2choice11[15 - arrayPosition]; andrew@50: if (!m && !e7 && !e9 && !e11 && e13) returnInt = h2choice13[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && !e11 && !e13) returnInt = h2choice79[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && e11 && !e13) returnInt = h2choice711[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && !e11 && e13) returnInt = h2choice713[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && e11 && !e13) returnInt = h2choice911[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && !e11 && e13) returnInt = h2choice913[15 - arrayPosition]; andrew@50: if (!m && !e7 && !e9 && e11 && e13) returnInt = h2choice1113[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && e11 && !e13) returnInt = h2choice7911[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && !e11 && e13) returnInt = h2choice7913[15 - arrayPosition]; andrew@50: if (!m && e7 && !e9 && e11 && e13) returnInt = h2choice71113[15 - arrayPosition]; andrew@50: if (!m && !e7 && e9 && e11 && e13) returnInt = h2choice91113[15 - arrayPosition]; andrew@50: if (!m && e7 && e9 && e11 && e13) returnInt = h2choice791113[15 - arrayPosition]; andrew@50: andrew@50: if (m && !e7 && !e9 && !e11 && !e13) returnInt = m2hchoice135[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && !e11 && !e13) returnInt = m2hchoice7[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && !e11 && !e13) returnInt = m2hchoice9[15 - arrayPosition]; andrew@50: if (m && !e7 && !e9 && e11 && !e13) returnInt = m2hchoice11[15 - arrayPosition]; andrew@50: if (m && !e7 && !e9 && !e11 && e13) returnInt = m2hchoice13[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && !e11 && !e13) returnInt = m2hchoice79[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && e11 && !e13) returnInt = m2hchoice711[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && !e11 && e13) returnInt = m2hchoice713[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && e11 && !e13) returnInt = m2hchoice911[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && !e11 && e13) returnInt = m2hchoice913[15 - arrayPosition]; andrew@50: if (m && !e7 && !e9 && e11 && e13) returnInt = m2hchoice1113[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && e11 && !e13) returnInt = m2hchoice7911[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && !e11 && e13) returnInt = m2hchoice7913[15 - arrayPosition]; andrew@50: if (m && e7 && !e9 && e11 && e13) returnInt = m2hchoice71113[15 - arrayPosition]; andrew@50: if (m && !e7 && e9 && e11 && e13) returnInt = m2hchoice91113[15 - arrayPosition]; andrew@50: if (m && e7 && e9 && e11 && e13) returnInt = m2hchoice791113[15 - arrayPosition]; andrew@50: } andrew@50: andrew@50: if (heresyDom && returnInt % 12 == 11) andrew@50: returnInt--; andrew@50: returnInt = currentChord + returnInt; andrew@50: andrew@50: // if (heresyChannel == 1 || heresyChannel == 5) andrew@50: // returnInt = 15 - arrayPosition + 36; andrew@50: andrew@50: andrew@50: andrew@50: return returnInt; andrew@50: } andrew@50: andrew@50: