Mercurial > hg > movesynth
diff HeresyBigBangDone/application.macosx/source/HeresyVoicingTables.pde @ 50:f4c6999ecfe9 tip
added the files on my computer that aren't aiff s> these shoudl be everything for the big bang fair 2011 - heresy, and tim's file's also here
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Sat, 08 Oct 2011 22:12:49 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HeresyBigBangDone/application.macosx/source/HeresyVoicingTables.pde Sat Oct 08 22:12:49 2011 +0100 @@ -0,0 +1,244 @@ +// the main voicing tables for chords requested + +// root position + +int[] hchoice135 = new int[] {24, 36, 43, 48, 52, 55, 60, 64, 67, 72, 76, 79, 84, 88, 91, 96}; +int[] hchoice7 = new int[] {24, 36, 43, 48, 52, 55, 59, 64, 67, 71, 72, 76, 79, 83, 88, 95}; +int[] hchoice9 = new int[] {24, 36, 43, 48, 50, 52, 55, 60, 62, 64, 67, 74, 76, 79, 86, 91}; +int[] hchoice11 = new int[] {24, 36, 43, 48, 53, 55, 60, 65, 67, 72, 77, 79, 84, 89, 91, 96}; +int[] hchoice13 = new int[] {24, 36, 43, 48, 52, 55, 57, 60, 64, 69, 72, 76, 81, 84, 88, 93}; +int[] hchoice79 = new int[] {24, 36, 43, 48, 52, 55, 57, 59, 62, 64, 69, 71, 74, 76, 83, 86}; +int[] hchoice711 = new int[] {24, 36, 43, 48, 53, 55, 59, 60, 65, 67, 71, 72, 77, 83, 88, 95}; //nice +int[] hchoice713 = new int[] {24, 36, 43, 48, 52, 57, 59, 64, 69, 71, 76, 79, 81, 83, 88, 93}; +int[] hchoice911 = new int[] {24, 36, 43, 48, 53, 55, 60, 62, 65, 67, 74, 77, 79, 86, 89, 96}; +int[] hchoice913 = new int[] {24, 36, 43, 48, 50, 57, 60, 62, 69, 72, 74, 81, 84, 86, 93, 96}; +int[] hchoice1113 = new int[] {24, 36, 43, 48, 52, 53, 57, 60, 64, 65, 69, 72, 77, 81, 84, 93}; //nice +int[] hchoice7911 = new int[] {24, 36, 43, 48, 55, 62, 65, 71, 77, 79, 83, 84, 86, 89, 91, 96}; +int[] hchoice7913 = new int[] {24, 36, 43, 48, 59, 62, 69, 71, 74, 81, 83, 84, 86, 93, 95, 96}; +int[] hchoice71113 = new int[]{24, 36, 43, 48, 55, 59, 65, 69, 76, 77, 79, 84, 88, 89, 93, 96}; +int[] hchoice91113 = new int[]{24, 36, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89, 96}; +int[] hchoice791113 = new int[]{24, 36, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89, 94, 96}; //dom7th full sus chord + +int[] mhchoice135 = new int[] {24, 36, 43, 48, 51, 55, 60, 63, 67, 72, 75, 79, 84, 87, 91, 96};// +int[] mhchoice7 = new int[] {24, 36, 43, 48, 51, 55, 58, 63, 67, 70, 72, 75, 79, 82, 87, 94};// +int[] mhchoice9 = new int[] {24, 36, 43, 48, 50, 51, 55, 60, 62, 63, 67, 72, 74, 79, 86, 91};// +int[] mhchoice11 = new int[] {24, 36, 43, 48, 51, 53, 55, 60, 63, 65, 67, 72, 77, 79, 84, 89};// +int[] mhchoice13 = new int[] {24, 36, 43, 48, 51, 55, 57, 60, 63, 67, 69, 72, 75, 81, 84, 91};// +int[] mhchoice79 = new int[] {24, 36, 43, 50, 51, 55, 57, 58, 62, 63, 69, 70, 74, 75, 82, 86};// +int[] mhchoice711 = new int[] {24, 36, 43, 51, 58, 63, 65, 69, 72, 75, 77, 79, 82, 84, 89, 96};// +int[] mhchoice713 = new int[] {24, 36, 43, 48, 55, 58, 59, 63, 69, 75, 79, 81, 82, 84, 93, 96};// +int[] mhchoice911 = new int[] {24, 36, 43, 48, 51, 53, 62, 63, 65, 67, 74, 77, 79, 86, 89, 96};// +int[] mhchoice913 = new int[] {24, 36, 43, 51, 57, 62, 63, 69, 74, 75, 81, 84, 86, 87, 93, 96};// +int[] mhchoice1113 = new int[] {24, 36, 43, 53, 57, 63, 67, 72, 75, 77, 79, 81, 84, 87, 93, 96};// +int[] mhchoice7911 = new int[] {24, 36, 43, 50, 51, 58, 65, 67, 70, 72, 74, 75, 77, 79, 82, 86};// +int[] mhchoice7913 = new int[] {24, 36, 48, 55, 58, 62, 63, 69, 70, 74, 75, 79, 81, 84, 93, 96};// +int[] mhchoice71113 = new int[]{24, 36, 43, 48, 53, 58, 63, 65, 69, 72, 75, 77, 81, 84, 91, 96};// +int[] mhchoice91113 = new int[]{24, 36, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89, 96};// +int[] mhchoice791113 = new int[]{24, 36, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89, 94, 96}; //dom7th full sus chord + +// first inversion + +int[] h1choice135 = new int[] {24, 36, 40, 43, 48, 52, 55, 60, 64, 67, 72, 76, 79, 84, 88, 91}; +int[] h1choice7 = new int[] {24, 36, 40, 43, 48, 52, 55, 59, 64, 67, 71, 72, 76, 79, 83, 88}; +int[] h1choice9 = new int[] {24, 36, 38, 43, 48, 50, 52, 55, 60, 62, 64, 67, 74, 76, 79, 86}; +int[] h1choice11 = new int[] {24, 36, 41, 43, 48, 53, 55, 60, 65, 67, 72, 77, 79, 84, 89, 91}; +int[] h1choice13 = new int[] {24, 36, 40, 43, 48, 52, 55, 57, 60, 64, 69, 72, 76, 81, 84, 88}; +int[] h1choice79 = new int[] {24, 36, 40, 43, 48, 52, 55, 57, 59, 62, 64, 69, 71, 74, 76, 83}; +int[] h1choice711 = new int[] {24, 36, 41, 43, 48, 53, 55, 59, 60, 65, 67, 71, 72, 77, 83, 88}; //nice +int[] h1choice713 = new int[] {24, 36, 40, 43, 48, 52, 57, 59, 64, 69, 71, 76, 79, 81, 83, 88}; +int[] h1choice911 = new int[] {24, 36, 41, 43, 48, 53, 55, 60, 62, 65, 67, 74, 77, 79, 86, 89}; +int[] h1choice913 = new int[] {24, 36, 43, 45, 48, 50, 57, 60, 62, 69, 72, 74, 81, 84, 86, 93}; +int[] h1choice1113 = new int[] {24, 36, 40, 43, 48, 52, 53, 57, 60, 64, 65, 69, 72, 77, 81, 84}; //nice +int[] h1choice7911 = new int[] {24, 36, 43, 48, 50, 55, 62, 65, 71, 77, 79, 83, 84, 86, 89, 91}; +int[] h1choice7913 = new int[] {24, 36, 43, 48, 55, 59, 62, 69, 71, 74, 81, 83, 84, 86, 93, 95}; +int[] h1choice71113 = new int[]{24, 36, 43, 48, 53, 55, 59, 65, 69, 76, 77, 79, 84, 88, 89, 93}; +int[] h1choice91113 = new int[]{24, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89}; +int[] h1choice791113 = new int[]{24, 36, 43, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89, 94}; //dom7th full sus chord + +int[] m1hchoice135 = new int[] {24, 36, 39, 43, 48, 51, 55, 60, 63, 67, 72, 75, 79, 84, 87, 91};// +int[] m1hchoice7 = new int[] {24, 36, 39, 43, 48, 51, 55, 58, 63, 67, 70, 72, 75, 79, 82, 87};// +int[] m1hchoice9 = new int[] {24, 36, 38, 43, 48, 50, 51, 55, 60, 62, 63, 67, 72, 74, 79, 86};// +int[] m1hchoice11 = new int[] {24, 36, 39, 43, 48, 51, 53, 55, 60, 63, 65, 67, 72, 77, 79, 84};// +int[] m1hchoice13 = new int[] {24, 36, 39, 43, 48, 51, 55, 57, 60, 63, 67, 69, 72, 75, 81, 84};// +int[] m1hchoice79 = new int[] {24, 36, 39, 43, 50, 51, 55, 57, 58, 62, 63, 69, 70, 74, 75, 82};// +int[] m1hchoice711 = new int[] {24, 36, 43, 46, 51, 58, 63, 65, 69, 72, 75, 77, 79, 82, 84, 89};// +int[] m1hchoice713 = new int[] {24, 36, 43, 46, 48, 55, 58, 59, 63, 69, 75, 79, 81, 82, 84, 93};// +int[] m1hchoice911 = new int[] {24, 36, 39, 43, 48, 51, 53, 62, 63, 65, 67, 74, 77, 79, 86, 89};// +int[] m1hchoice913 = new int[] {24, 36, 43, 48, 51, 57, 62, 63, 69, 74, 75, 81, 84, 86, 87, 93};// +int[] m1hchoice1113 = new int[] {24, 36, 43, 45, 53, 57, 63, 67, 72, 75, 77, 79, 81, 84, 87, 93};// +int[] m1hchoice7911 = new int[] {24, 36, 39, 43, 50, 51, 58, 65, 67, 70, 72, 74, 75, 77, 79, 82};// +int[] m1hchoice7913 = new int[] {24, 36, 43, 48, 55, 58, 62, 63, 69, 70, 74, 75, 79, 81, 84, 93};// +int[] m1hchoice71113 = new int[]{24, 36, 43, 46, 48, 53, 58, 63, 65, 69, 72, 75, 77, 81, 84, 91};// +int[] m1hchoice91113 = new int[]{24, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89};// +int[] m1hchoice791113 = new int[]{24, 36, 46, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89, 94}; //dom7th full sus chord + +// second inversion + +int[] h2choice135 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 60, 64, 67, 72, 76, 79, 84, 88}; +int[] h2choice7 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 59, 64, 67, 71, 72, 76, 79, 83}; +int[] h2choice9 = new int[] {24, 31, 36, 38, 43, 48, 50, 52, 55, 60, 62, 64, 67, 74, 76, 79}; +int[] h2choice11 = new int[] {24, 31, 36, 41, 43, 48, 53, 55, 60, 65, 67, 72, 77, 79, 84, 89}; +int[] h2choice13 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 57, 60, 64, 69, 72, 76, 81, 84}; +int[] h2choice79 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 57, 59, 62, 64, 69, 71, 74, 76}; +int[] h2choice711 = new int[] {24, 31, 36, 41, 43, 48, 53, 55, 59, 60, 65, 67, 71, 72, 77, 83}; //nice +int[] h2choice713 = new int[] {24, 31, 36, 40, 43, 48, 52, 57, 59, 64, 69, 71, 76, 79, 81, 83}; +int[] h2choice911 = new int[] {24, 31, 36, 41, 43, 48, 53, 55, 60, 62, 65, 67, 74, 77, 79, 86}; +int[] h2choice913 = new int[] {24, 31, 36, 43, 45, 48, 50, 57, 60, 62, 69, 72, 74, 81, 84, 86}; +int[] h2choice1113 = new int[] {24, 31, 36, 40, 43, 48, 52, 53, 57, 60, 64, 65, 69, 72, 77, 81}; //nice +int[] h2choice7911 = new int[] {24, 31, 36, 43, 48, 50, 55, 62, 65, 71, 77, 79, 83, 84, 86, 89}; +int[] h2choice7913 = new int[] {24, 31, 36, 43, 48, 55, 59, 62, 69, 71, 74, 81, 83, 84, 86, 93}; +int[] h2choice71113 = new int[]{24, 31, 36, 43, 48, 53, 55, 59, 65, 69, 76, 77, 79, 84, 88, 89}; +int[] h2choice91113 = new int[]{24, 31, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81}; +int[] h2choice791113 = new int[]{24, 31, 36, 43, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89}; //dom7th full sus chord + +int[] m2hchoice135 = new int[] {24, 31, 36, 39, 43, 48, 51, 55, 60, 63, 67, 72, 75, 79, 84, 87};// +int[] m2hchoice7 = new int[] {24, 31, 36, 39, 43, 48, 51, 55, 58, 63, 67, 70, 72, 75, 79, 82};// +int[] m2hchoice9 = new int[] {24, 31, 36, 38, 43, 48, 50, 51, 55, 60, 62, 63, 67, 72, 74, 79};// +int[] m2hchoice11 = new int[] {24, 31, 36, 39, 43, 48, 51, 53, 55, 60, 63, 65, 67, 72, 77, 79};// +int[] m2hchoice13 = new int[] {24, 31, 36, 39, 43, 48, 51, 55, 57, 60, 63, 67, 69, 72, 75, 81};// +int[] m2hchoice79 = new int[] {24, 31, 36, 39, 43, 50, 51, 55, 57, 58, 62, 63, 69, 70, 74, 75};// +int[] m2hchoice711 = new int[] {24, 31, 36, 43, 46, 51, 58, 63, 65, 69, 72, 75, 77, 79, 82, 84};// +int[] m2hchoice713 = new int[] {24, 31, 36, 43, 46, 48, 55, 58, 59, 63, 69, 75, 79, 81, 82, 84};// +int[] m2hchoice911 = new int[] {24, 31, 36, 39, 43, 48, 51, 53, 62, 63, 65, 67, 74, 77, 79, 86};// +int[] m2hchoice913 = new int[] {24, 31, 36, 43, 48, 51, 57, 62, 63, 69, 74, 75, 81, 84, 86, 87};// +int[] m2hchoice1113 = new int[] {24, 31, 36, 43, 45, 53, 57, 63, 67, 72, 75, 77, 79, 81, 84, 87};// +int[] m2hchoice7911 = new int[] {24, 31, 36, 39, 43, 50, 51, 58, 65, 67, 70, 72, 74, 75, 77, 79};// +int[] m2hchoice7913 = new int[] {24, 31, 36, 43, 48, 55, 58, 62, 63, 69, 70, 74, 75, 79, 81, 84};// +int[] m2hchoice71113 = new int[]{24, 31, 36, 43, 46, 48, 53, 58, 63, 65, 69, 72, 75, 77, 81, 84};// +int[] m2hchoice91113 = new int[]{24, 31, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81};// +int[] m2hchoice791113 = new int[]{24, 31, 36, 46, 50, 53, 58, 62, 65, 70, 74, 77, 82, 84, 86, 89}; //dom7th full sus chord + +int[] hvArray; +int[] minorSystem = new int[] {0, 3, 7, 10, 14, 17, 21}; +int[] major7System = new int[] {0, 4, 7, 11, 14, 18, 21}; +int[] dom7System = new int[] {0, 4, 7, 10, 14, 17, 21}; +int[] tritoneSystem = new int[] {0, 4, 7, 10, 14, 18, 21}; + +public int heresyPitch(int arrayPosition, int heresyChannel){ // calculates the pitch value to be returned for playback. + boolean m = heresyMinor; + boolean e7 = heresy7th; + boolean e9 = heresy9th; + boolean e11 = heresy11th; + boolean e13 = heresy13th; + int returnInt = 0; + if ((currentChord % 12) > -1 && (currentChord % 12) < 4){ + if (!m && !e7 && !e9 && !e11 && !e13) returnInt = hchoice135[15 - arrayPosition]; + if (!m && e7 && !e9 && !e11 && !e13) returnInt = hchoice7[15 - arrayPosition]; + if (!m && !e7 && e9 && !e11 && !e13) returnInt = hchoice9[15 - arrayPosition]; + if (!m && !e7 && !e9 && e11 && !e13) returnInt = hchoice11[15 - arrayPosition]; + if (!m && !e7 && !e9 && !e11 && e13) returnInt = hchoice13[15 - arrayPosition]; + if (!m && e7 && e9 && !e11 && !e13) returnInt = hchoice79[15 - arrayPosition]; + if (!m && e7 && !e9 && e11 && !e13) returnInt = hchoice711[15 - arrayPosition]; + if (!m && e7 && !e9 && !e11 && e13) returnInt = hchoice713[15 - arrayPosition]; + if (!m && !e7 && e9 && e11 && !e13) returnInt = hchoice911[15 - arrayPosition]; + if (!m && !e7 && e9 && !e11 && e13) returnInt = hchoice913[15 - arrayPosition]; + if (!m && !e7 && !e9 && e11 && e13) returnInt = hchoice1113[15 - arrayPosition]; + if (!m && e7 && e9 && e11 && !e13) returnInt = hchoice7911[15 - arrayPosition]; + if (!m && e7 && e9 && !e11 && e13) returnInt = hchoice7913[15 - arrayPosition]; + if (!m && e7 && !e9 && e11 && e13) returnInt = hchoice71113[15 - arrayPosition]; + if (!m && !e7 && e9 && e11 && e13) returnInt = hchoice91113[15 - arrayPosition]; + if (!m && e7 && e9 && e11 && e13) returnInt = hchoice791113[15 - arrayPosition]; + + if (m && !e7 && !e9 && !e11 && !e13) returnInt = mhchoice135[15 - arrayPosition]; + if (m && e7 && !e9 && !e11 && !e13) returnInt = mhchoice7[15 - arrayPosition]; + if (m && !e7 && e9 && !e11 && !e13) returnInt = mhchoice9[15 - arrayPosition]; + if (m && !e7 && !e9 && e11 && !e13) returnInt = mhchoice11[15 - arrayPosition]; + if (m && !e7 && !e9 && !e11 && e13) returnInt = mhchoice13[15 - arrayPosition]; + if (m && e7 && e9 && !e11 && !e13) returnInt = mhchoice79[15 - arrayPosition]; + if (m && e7 && !e9 && e11 && !e13) returnInt = mhchoice711[15 - arrayPosition]; + if (m && e7 && !e9 && !e11 && e13) returnInt = mhchoice713[15 - arrayPosition]; + if (m && !e7 && e9 && e11 && !e13) returnInt = mhchoice911[15 - arrayPosition]; + if (m && !e7 && e9 && !e11 && e13) returnInt = mhchoice913[15 - arrayPosition]; + if (m && !e7 && !e9 && e11 && e13) returnInt = mhchoice1113[15 - arrayPosition]; + if (m && e7 && e9 && e11 && !e13) returnInt = mhchoice7911[15 - arrayPosition]; + if (m && e7 && e9 && !e11 && e13) returnInt = mhchoice7913[15 - arrayPosition]; + if (m && e7 && !e9 && e11 && e13) returnInt = mhchoice71113[15 - arrayPosition]; + if (m && !e7 && e9 && e11 && e13) returnInt = mhchoice91113[15 - arrayPosition]; + if (m && e7 && e9 && e11 && e13) returnInt = mhchoice791113[15 - arrayPosition]; + } + + if ((currentChord % 12) > 3 && (currentChord % 12) < 8){ + if (!m && !e7 && !e9 && !e11 && !e13) returnInt = h1choice135[15 - arrayPosition]; + if (!m && e7 && !e9 && !e11 && !e13) returnInt = h1choice7[15 - arrayPosition]; + if (!m && !e7 && e9 && !e11 && !e13) returnInt = h1choice9[15 - arrayPosition]; + if (!m && !e7 && !e9 && e11 && !e13) returnInt = h1choice11[15 - arrayPosition]; + if (!m && !e7 && !e9 && !e11 && e13) returnInt = h1choice13[15 - arrayPosition]; + if (!m && e7 && e9 && !e11 && !e13) returnInt = h1choice79[15 - arrayPosition]; + if (!m && e7 && !e9 && e11 && !e13) returnInt = h1choice711[15 - arrayPosition]; + if (!m && e7 && !e9 && !e11 && e13) returnInt = h1choice713[15 - arrayPosition]; + if (!m && !e7 && e9 && e11 && !e13) returnInt = h1choice911[15 - arrayPosition]; + if (!m && !e7 && e9 && !e11 && e13) returnInt = h1choice913[15 - arrayPosition]; + if (!m && !e7 && !e9 && e11 && e13) returnInt = h1choice1113[15 - arrayPosition]; + if (!m && e7 && e9 && e11 && !e13) returnInt = h1choice7911[15 - arrayPosition]; + if (!m && e7 && e9 && !e11 && e13) returnInt = h1choice7913[15 - arrayPosition]; + if (!m && e7 && !e9 && e11 && e13) returnInt = h1choice71113[15 - arrayPosition]; + if (!m && !e7 && e9 && e11 && e13) returnInt = h1choice91113[15 - arrayPosition]; + if (!m && e7 && e9 && e11 && e13) returnInt = h1choice791113[15 - arrayPosition]; + + if (m && !e7 && !e9 && !e11 && !e13) returnInt = m1hchoice135[15 - arrayPosition]; + if (m && e7 && !e9 && !e11 && !e13) returnInt = m1hchoice7[15 - arrayPosition]; + if (m && !e7 && e9 && !e11 && !e13) returnInt = m1hchoice9[15 - arrayPosition]; + if (m && !e7 && !e9 && e11 && !e13) returnInt = m1hchoice11[15 - arrayPosition]; + if (m && !e7 && !e9 && !e11 && e13) returnInt = m1hchoice13[15 - arrayPosition]; + if (m && e7 && e9 && !e11 && !e13) returnInt = m1hchoice79[15 - arrayPosition]; + if (m && e7 && !e9 && e11 && !e13) returnInt = m1hchoice711[15 - arrayPosition]; + if (m && e7 && !e9 && !e11 && e13) returnInt = m1hchoice713[15 - arrayPosition]; + if (m && !e7 && e9 && e11 && !e13) returnInt = m1hchoice911[15 - arrayPosition]; + if (m && !e7 && e9 && !e11 && e13) returnInt = m1hchoice913[15 - arrayPosition]; + if (m && !e7 && !e9 && e11 && e13) returnInt = m1hchoice1113[15 - arrayPosition]; + if (m && e7 && e9 && e11 && !e13) returnInt = m1hchoice7911[15 - arrayPosition]; + if (m && e7 && e9 && !e11 && e13) returnInt = m1hchoice7913[15 - arrayPosition]; + if (m && e7 && !e9 && e11 && e13) returnInt = m1hchoice71113[15 - arrayPosition]; + if (m && !e7 && e9 && e11 && e13) returnInt = m1hchoice91113[15 - arrayPosition]; + if (m && e7 && e9 && e11 && e13) returnInt = m1hchoice791113[15 - arrayPosition]; + } + + if ((currentChord % 12) > 7 && (currentChord % 12) < 12){ + if (!m && !e7 && !e9 && !e11 && !e13) returnInt = h2choice135[15 - arrayPosition]; + if (!m && e7 && !e9 && !e11 && !e13) returnInt = h2choice7[15 - arrayPosition]; + if (!m && !e7 && e9 && !e11 && !e13) returnInt = h2choice9[15 - arrayPosition]; + if (!m && !e7 && !e9 && e11 && !e13) returnInt = h2choice11[15 - arrayPosition]; + if (!m && !e7 && !e9 && !e11 && e13) returnInt = h2choice13[15 - arrayPosition]; + if (!m && e7 && e9 && !e11 && !e13) returnInt = h2choice79[15 - arrayPosition]; + if (!m && e7 && !e9 && e11 && !e13) returnInt = h2choice711[15 - arrayPosition]; + if (!m && e7 && !e9 && !e11 && e13) returnInt = h2choice713[15 - arrayPosition]; + if (!m && !e7 && e9 && e11 && !e13) returnInt = h2choice911[15 - arrayPosition]; + if (!m && !e7 && e9 && !e11 && e13) returnInt = h2choice913[15 - arrayPosition]; + if (!m && !e7 && !e9 && e11 && e13) returnInt = h2choice1113[15 - arrayPosition]; + if (!m && e7 && e9 && e11 && !e13) returnInt = h2choice7911[15 - arrayPosition]; + if (!m && e7 && e9 && !e11 && e13) returnInt = h2choice7913[15 - arrayPosition]; + if (!m && e7 && !e9 && e11 && e13) returnInt = h2choice71113[15 - arrayPosition]; + if (!m && !e7 && e9 && e11 && e13) returnInt = h2choice91113[15 - arrayPosition]; + if (!m && e7 && e9 && e11 && e13) returnInt = h2choice791113[15 - arrayPosition]; + + if (m && !e7 && !e9 && !e11 && !e13) returnInt = m2hchoice135[15 - arrayPosition]; + if (m && e7 && !e9 && !e11 && !e13) returnInt = m2hchoice7[15 - arrayPosition]; + if (m && !e7 && e9 && !e11 && !e13) returnInt = m2hchoice9[15 - arrayPosition]; + if (m && !e7 && !e9 && e11 && !e13) returnInt = m2hchoice11[15 - arrayPosition]; + if (m && !e7 && !e9 && !e11 && e13) returnInt = m2hchoice13[15 - arrayPosition]; + if (m && e7 && e9 && !e11 && !e13) returnInt = m2hchoice79[15 - arrayPosition]; + if (m && e7 && !e9 && e11 && !e13) returnInt = m2hchoice711[15 - arrayPosition]; + if (m && e7 && !e9 && !e11 && e13) returnInt = m2hchoice713[15 - arrayPosition]; + if (m && !e7 && e9 && e11 && !e13) returnInt = m2hchoice911[15 - arrayPosition]; + if (m && !e7 && e9 && !e11 && e13) returnInt = m2hchoice913[15 - arrayPosition]; + if (m && !e7 && !e9 && e11 && e13) returnInt = m2hchoice1113[15 - arrayPosition]; + if (m && e7 && e9 && e11 && !e13) returnInt = m2hchoice7911[15 - arrayPosition]; + if (m && e7 && e9 && !e11 && e13) returnInt = m2hchoice7913[15 - arrayPosition]; + if (m && e7 && !e9 && e11 && e13) returnInt = m2hchoice71113[15 - arrayPosition]; + if (m && !e7 && e9 && e11 && e13) returnInt = m2hchoice91113[15 - arrayPosition]; + if (m && e7 && e9 && e11 && e13) returnInt = m2hchoice791113[15 - arrayPosition]; + } + + if (heresyDom && returnInt % 12 == 11) + returnInt--; + returnInt = currentChord + returnInt; + + // if (heresyChannel == 1 || heresyChannel == 5) + // returnInt = 15 - arrayPosition + 36; + + + + return returnInt; +} + +