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