annotate 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
rev   line source
andrew@50 1 // the main voicing tables for chords requested
andrew@50 2
andrew@50 3 // root position
andrew@50 4
andrew@50 5 int[] hchoice135 = new int[] {24, 36, 43, 48, 52, 55, 60, 64, 67, 72, 76, 79, 84, 88, 91, 96};
andrew@50 6 int[] hchoice7 = new int[] {24, 36, 43, 48, 52, 55, 59, 64, 67, 71, 72, 76, 79, 83, 88, 95};
andrew@50 7 int[] hchoice9 = new int[] {24, 36, 43, 48, 50, 52, 55, 60, 62, 64, 67, 74, 76, 79, 86, 91};
andrew@50 8 int[] hchoice11 = new int[] {24, 36, 43, 48, 53, 55, 60, 65, 67, 72, 77, 79, 84, 89, 91, 96};
andrew@50 9 int[] hchoice13 = new int[] {24, 36, 43, 48, 52, 55, 57, 60, 64, 69, 72, 76, 81, 84, 88, 93};
andrew@50 10 int[] hchoice79 = new int[] {24, 36, 43, 48, 52, 55, 57, 59, 62, 64, 69, 71, 74, 76, 83, 86};
andrew@50 11 int[] hchoice711 = new int[] {24, 36, 43, 48, 53, 55, 59, 60, 65, 67, 71, 72, 77, 83, 88, 95}; //nice
andrew@50 12 int[] hchoice713 = new int[] {24, 36, 43, 48, 52, 57, 59, 64, 69, 71, 76, 79, 81, 83, 88, 93};
andrew@50 13 int[] hchoice911 = new int[] {24, 36, 43, 48, 53, 55, 60, 62, 65, 67, 74, 77, 79, 86, 89, 96};
andrew@50 14 int[] hchoice913 = new int[] {24, 36, 43, 48, 50, 57, 60, 62, 69, 72, 74, 81, 84, 86, 93, 96};
andrew@50 15 int[] hchoice1113 = new int[] {24, 36, 43, 48, 52, 53, 57, 60, 64, 65, 69, 72, 77, 81, 84, 93}; //nice
andrew@50 16 int[] hchoice7911 = new int[] {24, 36, 43, 48, 55, 62, 65, 71, 77, 79, 83, 84, 86, 89, 91, 96};
andrew@50 17 int[] hchoice7913 = new int[] {24, 36, 43, 48, 59, 62, 69, 71, 74, 81, 83, 84, 86, 93, 95, 96};
andrew@50 18 int[] hchoice71113 = new int[]{24, 36, 43, 48, 55, 59, 65, 69, 76, 77, 79, 84, 88, 89, 93, 96};
andrew@50 19 int[] hchoice91113 = new int[]{24, 36, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89, 96};
andrew@50 20 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 21
andrew@50 22 int[] mhchoice135 = new int[] {24, 36, 43, 48, 51, 55, 60, 63, 67, 72, 75, 79, 84, 87, 91, 96};//
andrew@50 23 int[] mhchoice7 = new int[] {24, 36, 43, 48, 51, 55, 58, 63, 67, 70, 72, 75, 79, 82, 87, 94};//
andrew@50 24 int[] mhchoice9 = new int[] {24, 36, 43, 48, 50, 51, 55, 60, 62, 63, 67, 72, 74, 79, 86, 91};//
andrew@50 25 int[] mhchoice11 = new int[] {24, 36, 43, 48, 51, 53, 55, 60, 63, 65, 67, 72, 77, 79, 84, 89};//
andrew@50 26 int[] mhchoice13 = new int[] {24, 36, 43, 48, 51, 55, 57, 60, 63, 67, 69, 72, 75, 81, 84, 91};//
andrew@50 27 int[] mhchoice79 = new int[] {24, 36, 43, 50, 51, 55, 57, 58, 62, 63, 69, 70, 74, 75, 82, 86};//
andrew@50 28 int[] mhchoice711 = new int[] {24, 36, 43, 51, 58, 63, 65, 69, 72, 75, 77, 79, 82, 84, 89, 96};//
andrew@50 29 int[] mhchoice713 = new int[] {24, 36, 43, 48, 55, 58, 59, 63, 69, 75, 79, 81, 82, 84, 93, 96};//
andrew@50 30 int[] mhchoice911 = new int[] {24, 36, 43, 48, 51, 53, 62, 63, 65, 67, 74, 77, 79, 86, 89, 96};//
andrew@50 31 int[] mhchoice913 = new int[] {24, 36, 43, 51, 57, 62, 63, 69, 74, 75, 81, 84, 86, 87, 93, 96};//
andrew@50 32 int[] mhchoice1113 = new int[] {24, 36, 43, 53, 57, 63, 67, 72, 75, 77, 79, 81, 84, 87, 93, 96};//
andrew@50 33 int[] mhchoice7911 = new int[] {24, 36, 43, 50, 51, 58, 65, 67, 70, 72, 74, 75, 77, 79, 82, 86};//
andrew@50 34 int[] mhchoice7913 = new int[] {24, 36, 48, 55, 58, 62, 63, 69, 70, 74, 75, 79, 81, 84, 93, 96};//
andrew@50 35 int[] mhchoice71113 = new int[]{24, 36, 43, 48, 53, 58, 63, 65, 69, 72, 75, 77, 81, 84, 91, 96};//
andrew@50 36 int[] mhchoice91113 = new int[]{24, 36, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89, 96};//
andrew@50 37 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 38
andrew@50 39 // first inversion
andrew@50 40
andrew@50 41 int[] h1choice135 = new int[] {24, 36, 40, 43, 48, 52, 55, 60, 64, 67, 72, 76, 79, 84, 88, 91};
andrew@50 42 int[] h1choice7 = new int[] {24, 36, 40, 43, 48, 52, 55, 59, 64, 67, 71, 72, 76, 79, 83, 88};
andrew@50 43 int[] h1choice9 = new int[] {24, 36, 38, 43, 48, 50, 52, 55, 60, 62, 64, 67, 74, 76, 79, 86};
andrew@50 44 int[] h1choice11 = new int[] {24, 36, 41, 43, 48, 53, 55, 60, 65, 67, 72, 77, 79, 84, 89, 91};
andrew@50 45 int[] h1choice13 = new int[] {24, 36, 40, 43, 48, 52, 55, 57, 60, 64, 69, 72, 76, 81, 84, 88};
andrew@50 46 int[] h1choice79 = new int[] {24, 36, 40, 43, 48, 52, 55, 57, 59, 62, 64, 69, 71, 74, 76, 83};
andrew@50 47 int[] h1choice711 = new int[] {24, 36, 41, 43, 48, 53, 55, 59, 60, 65, 67, 71, 72, 77, 83, 88}; //nice
andrew@50 48 int[] h1choice713 = new int[] {24, 36, 40, 43, 48, 52, 57, 59, 64, 69, 71, 76, 79, 81, 83, 88};
andrew@50 49 int[] h1choice911 = new int[] {24, 36, 41, 43, 48, 53, 55, 60, 62, 65, 67, 74, 77, 79, 86, 89};
andrew@50 50 int[] h1choice913 = new int[] {24, 36, 43, 45, 48, 50, 57, 60, 62, 69, 72, 74, 81, 84, 86, 93};
andrew@50 51 int[] h1choice1113 = new int[] {24, 36, 40, 43, 48, 52, 53, 57, 60, 64, 65, 69, 72, 77, 81, 84}; //nice
andrew@50 52 int[] h1choice7911 = new int[] {24, 36, 43, 48, 50, 55, 62, 65, 71, 77, 79, 83, 84, 86, 89, 91};
andrew@50 53 int[] h1choice7913 = new int[] {24, 36, 43, 48, 55, 59, 62, 69, 71, 74, 81, 83, 84, 86, 93, 95};
andrew@50 54 int[] h1choice71113 = new int[]{24, 36, 43, 48, 53, 55, 59, 65, 69, 76, 77, 79, 84, 88, 89, 93};
andrew@50 55 int[] h1choice91113 = new int[]{24, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89};
andrew@50 56 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 57
andrew@50 58 int[] m1hchoice135 = new int[] {24, 36, 39, 43, 48, 51, 55, 60, 63, 67, 72, 75, 79, 84, 87, 91};//
andrew@50 59 int[] m1hchoice7 = new int[] {24, 36, 39, 43, 48, 51, 55, 58, 63, 67, 70, 72, 75, 79, 82, 87};//
andrew@50 60 int[] m1hchoice9 = new int[] {24, 36, 38, 43, 48, 50, 51, 55, 60, 62, 63, 67, 72, 74, 79, 86};//
andrew@50 61 int[] m1hchoice11 = new int[] {24, 36, 39, 43, 48, 51, 53, 55, 60, 63, 65, 67, 72, 77, 79, 84};//
andrew@50 62 int[] m1hchoice13 = new int[] {24, 36, 39, 43, 48, 51, 55, 57, 60, 63, 67, 69, 72, 75, 81, 84};//
andrew@50 63 int[] m1hchoice79 = new int[] {24, 36, 39, 43, 50, 51, 55, 57, 58, 62, 63, 69, 70, 74, 75, 82};//
andrew@50 64 int[] m1hchoice711 = new int[] {24, 36, 43, 46, 51, 58, 63, 65, 69, 72, 75, 77, 79, 82, 84, 89};//
andrew@50 65 int[] m1hchoice713 = new int[] {24, 36, 43, 46, 48, 55, 58, 59, 63, 69, 75, 79, 81, 82, 84, 93};//
andrew@50 66 int[] m1hchoice911 = new int[] {24, 36, 39, 43, 48, 51, 53, 62, 63, 65, 67, 74, 77, 79, 86, 89};//
andrew@50 67 int[] m1hchoice913 = new int[] {24, 36, 43, 48, 51, 57, 62, 63, 69, 74, 75, 81, 84, 86, 87, 93};//
andrew@50 68 int[] m1hchoice1113 = new int[] {24, 36, 43, 45, 53, 57, 63, 67, 72, 75, 77, 79, 81, 84, 87, 93};//
andrew@50 69 int[] m1hchoice7911 = new int[] {24, 36, 39, 43, 50, 51, 58, 65, 67, 70, 72, 74, 75, 77, 79, 82};//
andrew@50 70 int[] m1hchoice7913 = new int[] {24, 36, 43, 48, 55, 58, 62, 63, 69, 70, 74, 75, 79, 81, 84, 93};//
andrew@50 71 int[] m1hchoice71113 = new int[]{24, 36, 43, 46, 48, 53, 58, 63, 65, 69, 72, 75, 77, 81, 84, 91};//
andrew@50 72 int[] m1hchoice91113 = new int[]{24, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81, 89};//
andrew@50 73 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 74
andrew@50 75 // second inversion
andrew@50 76
andrew@50 77 int[] h2choice135 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 60, 64, 67, 72, 76, 79, 84, 88};
andrew@50 78 int[] h2choice7 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 59, 64, 67, 71, 72, 76, 79, 83};
andrew@50 79 int[] h2choice9 = new int[] {24, 31, 36, 38, 43, 48, 50, 52, 55, 60, 62, 64, 67, 74, 76, 79};
andrew@50 80 int[] h2choice11 = new int[] {24, 31, 36, 41, 43, 48, 53, 55, 60, 65, 67, 72, 77, 79, 84, 89};
andrew@50 81 int[] h2choice13 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 57, 60, 64, 69, 72, 76, 81, 84};
andrew@50 82 int[] h2choice79 = new int[] {24, 31, 36, 40, 43, 48, 52, 55, 57, 59, 62, 64, 69, 71, 74, 76};
andrew@50 83 int[] h2choice711 = new int[] {24, 31, 36, 41, 43, 48, 53, 55, 59, 60, 65, 67, 71, 72, 77, 83}; //nice
andrew@50 84 int[] h2choice713 = new int[] {24, 31, 36, 40, 43, 48, 52, 57, 59, 64, 69, 71, 76, 79, 81, 83};
andrew@50 85 int[] h2choice911 = new int[] {24, 31, 36, 41, 43, 48, 53, 55, 60, 62, 65, 67, 74, 77, 79, 86};
andrew@50 86 int[] h2choice913 = new int[] {24, 31, 36, 43, 45, 48, 50, 57, 60, 62, 69, 72, 74, 81, 84, 86};
andrew@50 87 int[] h2choice1113 = new int[] {24, 31, 36, 40, 43, 48, 52, 53, 57, 60, 64, 65, 69, 72, 77, 81}; //nice
andrew@50 88 int[] h2choice7911 = new int[] {24, 31, 36, 43, 48, 50, 55, 62, 65, 71, 77, 79, 83, 84, 86, 89};
andrew@50 89 int[] h2choice7913 = new int[] {24, 31, 36, 43, 48, 55, 59, 62, 69, 71, 74, 81, 83, 84, 86, 93};
andrew@50 90 int[] h2choice71113 = new int[]{24, 31, 36, 43, 48, 53, 55, 59, 65, 69, 76, 77, 79, 84, 88, 89};
andrew@50 91 int[] h2choice91113 = new int[]{24, 31, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81};
andrew@50 92 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 93
andrew@50 94 int[] m2hchoice135 = new int[] {24, 31, 36, 39, 43, 48, 51, 55, 60, 63, 67, 72, 75, 79, 84, 87};//
andrew@50 95 int[] m2hchoice7 = new int[] {24, 31, 36, 39, 43, 48, 51, 55, 58, 63, 67, 70, 72, 75, 79, 82};//
andrew@50 96 int[] m2hchoice9 = new int[] {24, 31, 36, 38, 43, 48, 50, 51, 55, 60, 62, 63, 67, 72, 74, 79};//
andrew@50 97 int[] m2hchoice11 = new int[] {24, 31, 36, 39, 43, 48, 51, 53, 55, 60, 63, 65, 67, 72, 77, 79};//
andrew@50 98 int[] m2hchoice13 = new int[] {24, 31, 36, 39, 43, 48, 51, 55, 57, 60, 63, 67, 69, 72, 75, 81};//
andrew@50 99 int[] m2hchoice79 = new int[] {24, 31, 36, 39, 43, 50, 51, 55, 57, 58, 62, 63, 69, 70, 74, 75};//
andrew@50 100 int[] m2hchoice711 = new int[] {24, 31, 36, 43, 46, 51, 58, 63, 65, 69, 72, 75, 77, 79, 82, 84};//
andrew@50 101 int[] m2hchoice713 = new int[] {24, 31, 36, 43, 46, 48, 55, 58, 59, 63, 69, 75, 79, 81, 82, 84};//
andrew@50 102 int[] m2hchoice911 = new int[] {24, 31, 36, 39, 43, 48, 51, 53, 62, 63, 65, 67, 74, 77, 79, 86};//
andrew@50 103 int[] m2hchoice913 = new int[] {24, 31, 36, 43, 48, 51, 57, 62, 63, 69, 74, 75, 81, 84, 86, 87};//
andrew@50 104 int[] m2hchoice1113 = new int[] {24, 31, 36, 43, 45, 53, 57, 63, 67, 72, 75, 77, 79, 81, 84, 87};//
andrew@50 105 int[] m2hchoice7911 = new int[] {24, 31, 36, 39, 43, 50, 51, 58, 65, 67, 70, 72, 74, 75, 77, 79};//
andrew@50 106 int[] m2hchoice7913 = new int[] {24, 31, 36, 43, 48, 55, 58, 62, 63, 69, 70, 74, 75, 79, 81, 84};//
andrew@50 107 int[] m2hchoice71113 = new int[]{24, 31, 36, 43, 46, 48, 53, 58, 63, 65, 69, 72, 75, 77, 81, 84};//
andrew@50 108 int[] m2hchoice91113 = new int[]{24, 31, 36, 41, 48, 50, 53, 57, 60, 62, 65, 69, 72, 74, 77, 81};//
andrew@50 109 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 110
andrew@50 111 int[] hvArray;
andrew@50 112 int[] minorSystem = new int[] {0, 3, 7, 10, 14, 17, 21};
andrew@50 113 int[] major7System = new int[] {0, 4, 7, 11, 14, 18, 21};
andrew@50 114 int[] dom7System = new int[] {0, 4, 7, 10, 14, 17, 21};
andrew@50 115 int[] tritoneSystem = new int[] {0, 4, 7, 10, 14, 18, 21};
andrew@50 116
andrew@50 117 public int heresyPitch(int arrayPosition, int heresyChannel){ // calculates the pitch value to be returned for playback.
andrew@50 118 boolean m = heresyMinor;
andrew@50 119 boolean e7 = heresy7th;
andrew@50 120 boolean e9 = heresy9th;
andrew@50 121 boolean e11 = heresy11th;
andrew@50 122 boolean e13 = heresy13th;
andrew@50 123 int returnInt = 0;
andrew@50 124 if ((currentChord % 12) > -1 && (currentChord % 12) < 4){
andrew@50 125 if (!m && !e7 && !e9 && !e11 && !e13) returnInt = hchoice135[15 - arrayPosition];
andrew@50 126 if (!m && e7 && !e9 && !e11 && !e13) returnInt = hchoice7[15 - arrayPosition];
andrew@50 127 if (!m && !e7 && e9 && !e11 && !e13) returnInt = hchoice9[15 - arrayPosition];
andrew@50 128 if (!m && !e7 && !e9 && e11 && !e13) returnInt = hchoice11[15 - arrayPosition];
andrew@50 129 if (!m && !e7 && !e9 && !e11 && e13) returnInt = hchoice13[15 - arrayPosition];
andrew@50 130 if (!m && e7 && e9 && !e11 && !e13) returnInt = hchoice79[15 - arrayPosition];
andrew@50 131 if (!m && e7 && !e9 && e11 && !e13) returnInt = hchoice711[15 - arrayPosition];
andrew@50 132 if (!m && e7 && !e9 && !e11 && e13) returnInt = hchoice713[15 - arrayPosition];
andrew@50 133 if (!m && !e7 && e9 && e11 && !e13) returnInt = hchoice911[15 - arrayPosition];
andrew@50 134 if (!m && !e7 && e9 && !e11 && e13) returnInt = hchoice913[15 - arrayPosition];
andrew@50 135 if (!m && !e7 && !e9 && e11 && e13) returnInt = hchoice1113[15 - arrayPosition];
andrew@50 136 if (!m && e7 && e9 && e11 && !e13) returnInt = hchoice7911[15 - arrayPosition];
andrew@50 137 if (!m && e7 && e9 && !e11 && e13) returnInt = hchoice7913[15 - arrayPosition];
andrew@50 138 if (!m && e7 && !e9 && e11 && e13) returnInt = hchoice71113[15 - arrayPosition];
andrew@50 139 if (!m && !e7 && e9 && e11 && e13) returnInt = hchoice91113[15 - arrayPosition];
andrew@50 140 if (!m && e7 && e9 && e11 && e13) returnInt = hchoice791113[15 - arrayPosition];
andrew@50 141
andrew@50 142 if (m && !e7 && !e9 && !e11 && !e13) returnInt = mhchoice135[15 - arrayPosition];
andrew@50 143 if (m && e7 && !e9 && !e11 && !e13) returnInt = mhchoice7[15 - arrayPosition];
andrew@50 144 if (m && !e7 && e9 && !e11 && !e13) returnInt = mhchoice9[15 - arrayPosition];
andrew@50 145 if (m && !e7 && !e9 && e11 && !e13) returnInt = mhchoice11[15 - arrayPosition];
andrew@50 146 if (m && !e7 && !e9 && !e11 && e13) returnInt = mhchoice13[15 - arrayPosition];
andrew@50 147 if (m && e7 && e9 && !e11 && !e13) returnInt = mhchoice79[15 - arrayPosition];
andrew@50 148 if (m && e7 && !e9 && e11 && !e13) returnInt = mhchoice711[15 - arrayPosition];
andrew@50 149 if (m && e7 && !e9 && !e11 && e13) returnInt = mhchoice713[15 - arrayPosition];
andrew@50 150 if (m && !e7 && e9 && e11 && !e13) returnInt = mhchoice911[15 - arrayPosition];
andrew@50 151 if (m && !e7 && e9 && !e11 && e13) returnInt = mhchoice913[15 - arrayPosition];
andrew@50 152 if (m && !e7 && !e9 && e11 && e13) returnInt = mhchoice1113[15 - arrayPosition];
andrew@50 153 if (m && e7 && e9 && e11 && !e13) returnInt = mhchoice7911[15 - arrayPosition];
andrew@50 154 if (m && e7 && e9 && !e11 && e13) returnInt = mhchoice7913[15 - arrayPosition];
andrew@50 155 if (m && e7 && !e9 && e11 && e13) returnInt = mhchoice71113[15 - arrayPosition];
andrew@50 156 if (m && !e7 && e9 && e11 && e13) returnInt = mhchoice91113[15 - arrayPosition];
andrew@50 157 if (m && e7 && e9 && e11 && e13) returnInt = mhchoice791113[15 - arrayPosition];
andrew@50 158 }
andrew@50 159
andrew@50 160 if ((currentChord % 12) > 3 && (currentChord % 12) < 8){
andrew@50 161 if (!m && !e7 && !e9 && !e11 && !e13) returnInt = h1choice135[15 - arrayPosition];
andrew@50 162 if (!m && e7 && !e9 && !e11 && !e13) returnInt = h1choice7[15 - arrayPosition];
andrew@50 163 if (!m && !e7 && e9 && !e11 && !e13) returnInt = h1choice9[15 - arrayPosition];
andrew@50 164 if (!m && !e7 && !e9 && e11 && !e13) returnInt = h1choice11[15 - arrayPosition];
andrew@50 165 if (!m && !e7 && !e9 && !e11 && e13) returnInt = h1choice13[15 - arrayPosition];
andrew@50 166 if (!m && e7 && e9 && !e11 && !e13) returnInt = h1choice79[15 - arrayPosition];
andrew@50 167 if (!m && e7 && !e9 && e11 && !e13) returnInt = h1choice711[15 - arrayPosition];
andrew@50 168 if (!m && e7 && !e9 && !e11 && e13) returnInt = h1choice713[15 - arrayPosition];
andrew@50 169 if (!m && !e7 && e9 && e11 && !e13) returnInt = h1choice911[15 - arrayPosition];
andrew@50 170 if (!m && !e7 && e9 && !e11 && e13) returnInt = h1choice913[15 - arrayPosition];
andrew@50 171 if (!m && !e7 && !e9 && e11 && e13) returnInt = h1choice1113[15 - arrayPosition];
andrew@50 172 if (!m && e7 && e9 && e11 && !e13) returnInt = h1choice7911[15 - arrayPosition];
andrew@50 173 if (!m && e7 && e9 && !e11 && e13) returnInt = h1choice7913[15 - arrayPosition];
andrew@50 174 if (!m && e7 && !e9 && e11 && e13) returnInt = h1choice71113[15 - arrayPosition];
andrew@50 175 if (!m && !e7 && e9 && e11 && e13) returnInt = h1choice91113[15 - arrayPosition];
andrew@50 176 if (!m && e7 && e9 && e11 && e13) returnInt = h1choice791113[15 - arrayPosition];
andrew@50 177
andrew@50 178 if (m && !e7 && !e9 && !e11 && !e13) returnInt = m1hchoice135[15 - arrayPosition];
andrew@50 179 if (m && e7 && !e9 && !e11 && !e13) returnInt = m1hchoice7[15 - arrayPosition];
andrew@50 180 if (m && !e7 && e9 && !e11 && !e13) returnInt = m1hchoice9[15 - arrayPosition];
andrew@50 181 if (m && !e7 && !e9 && e11 && !e13) returnInt = m1hchoice11[15 - arrayPosition];
andrew@50 182 if (m && !e7 && !e9 && !e11 && e13) returnInt = m1hchoice13[15 - arrayPosition];
andrew@50 183 if (m && e7 && e9 && !e11 && !e13) returnInt = m1hchoice79[15 - arrayPosition];
andrew@50 184 if (m && e7 && !e9 && e11 && !e13) returnInt = m1hchoice711[15 - arrayPosition];
andrew@50 185 if (m && e7 && !e9 && !e11 && e13) returnInt = m1hchoice713[15 - arrayPosition];
andrew@50 186 if (m && !e7 && e9 && e11 && !e13) returnInt = m1hchoice911[15 - arrayPosition];
andrew@50 187 if (m && !e7 && e9 && !e11 && e13) returnInt = m1hchoice913[15 - arrayPosition];
andrew@50 188 if (m && !e7 && !e9 && e11 && e13) returnInt = m1hchoice1113[15 - arrayPosition];
andrew@50 189 if (m && e7 && e9 && e11 && !e13) returnInt = m1hchoice7911[15 - arrayPosition];
andrew@50 190 if (m && e7 && e9 && !e11 && e13) returnInt = m1hchoice7913[15 - arrayPosition];
andrew@50 191 if (m && e7 && !e9 && e11 && e13) returnInt = m1hchoice71113[15 - arrayPosition];
andrew@50 192 if (m && !e7 && e9 && e11 && e13) returnInt = m1hchoice91113[15 - arrayPosition];
andrew@50 193 if (m && e7 && e9 && e11 && e13) returnInt = m1hchoice791113[15 - arrayPosition];
andrew@50 194 }
andrew@50 195
andrew@50 196 if ((currentChord % 12) > 7 && (currentChord % 12) < 12){
andrew@50 197 if (!m && !e7 && !e9 && !e11 && !e13) returnInt = h2choice135[15 - arrayPosition];
andrew@50 198 if (!m && e7 && !e9 && !e11 && !e13) returnInt = h2choice7[15 - arrayPosition];
andrew@50 199 if (!m && !e7 && e9 && !e11 && !e13) returnInt = h2choice9[15 - arrayPosition];
andrew@50 200 if (!m && !e7 && !e9 && e11 && !e13) returnInt = h2choice11[15 - arrayPosition];
andrew@50 201 if (!m && !e7 && !e9 && !e11 && e13) returnInt = h2choice13[15 - arrayPosition];
andrew@50 202 if (!m && e7 && e9 && !e11 && !e13) returnInt = h2choice79[15 - arrayPosition];
andrew@50 203 if (!m && e7 && !e9 && e11 && !e13) returnInt = h2choice711[15 - arrayPosition];
andrew@50 204 if (!m && e7 && !e9 && !e11 && e13) returnInt = h2choice713[15 - arrayPosition];
andrew@50 205 if (!m && !e7 && e9 && e11 && !e13) returnInt = h2choice911[15 - arrayPosition];
andrew@50 206 if (!m && !e7 && e9 && !e11 && e13) returnInt = h2choice913[15 - arrayPosition];
andrew@50 207 if (!m && !e7 && !e9 && e11 && e13) returnInt = h2choice1113[15 - arrayPosition];
andrew@50 208 if (!m && e7 && e9 && e11 && !e13) returnInt = h2choice7911[15 - arrayPosition];
andrew@50 209 if (!m && e7 && e9 && !e11 && e13) returnInt = h2choice7913[15 - arrayPosition];
andrew@50 210 if (!m && e7 && !e9 && e11 && e13) returnInt = h2choice71113[15 - arrayPosition];
andrew@50 211 if (!m && !e7 && e9 && e11 && e13) returnInt = h2choice91113[15 - arrayPosition];
andrew@50 212 if (!m && e7 && e9 && e11 && e13) returnInt = h2choice791113[15 - arrayPosition];
andrew@50 213
andrew@50 214 if (m && !e7 && !e9 && !e11 && !e13) returnInt = m2hchoice135[15 - arrayPosition];
andrew@50 215 if (m && e7 && !e9 && !e11 && !e13) returnInt = m2hchoice7[15 - arrayPosition];
andrew@50 216 if (m && !e7 && e9 && !e11 && !e13) returnInt = m2hchoice9[15 - arrayPosition];
andrew@50 217 if (m && !e7 && !e9 && e11 && !e13) returnInt = m2hchoice11[15 - arrayPosition];
andrew@50 218 if (m && !e7 && !e9 && !e11 && e13) returnInt = m2hchoice13[15 - arrayPosition];
andrew@50 219 if (m && e7 && e9 && !e11 && !e13) returnInt = m2hchoice79[15 - arrayPosition];
andrew@50 220 if (m && e7 && !e9 && e11 && !e13) returnInt = m2hchoice711[15 - arrayPosition];
andrew@50 221 if (m && e7 && !e9 && !e11 && e13) returnInt = m2hchoice713[15 - arrayPosition];
andrew@50 222 if (m && !e7 && e9 && e11 && !e13) returnInt = m2hchoice911[15 - arrayPosition];
andrew@50 223 if (m && !e7 && e9 && !e11 && e13) returnInt = m2hchoice913[15 - arrayPosition];
andrew@50 224 if (m && !e7 && !e9 && e11 && e13) returnInt = m2hchoice1113[15 - arrayPosition];
andrew@50 225 if (m && e7 && e9 && e11 && !e13) returnInt = m2hchoice7911[15 - arrayPosition];
andrew@50 226 if (m && e7 && e9 && !e11 && e13) returnInt = m2hchoice7913[15 - arrayPosition];
andrew@50 227 if (m && e7 && !e9 && e11 && e13) returnInt = m2hchoice71113[15 - arrayPosition];
andrew@50 228 if (m && !e7 && e9 && e11 && e13) returnInt = m2hchoice91113[15 - arrayPosition];
andrew@50 229 if (m && e7 && e9 && e11 && e13) returnInt = m2hchoice791113[15 - arrayPosition];
andrew@50 230 }
andrew@50 231
andrew@50 232 if (heresyDom && returnInt % 12 == 11)
andrew@50 233 returnInt--;
andrew@50 234 returnInt = currentChord + returnInt;
andrew@50 235
andrew@50 236 // if (heresyChannel == 1 || heresyChannel == 5)
andrew@50 237 // returnInt = 15 - arrayPosition + 36;
andrew@50 238
andrew@50 239
andrew@50 240
andrew@50 241 return returnInt;
andrew@50 242 }
andrew@50 243
andrew@50 244