view HeresyBigBangDone/application.macosx/source/chord_changer.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 source

void chordCalc(){
    barCounter++;
    if (barCounter % 4 == 0 || ((currentChord == 1 || currentChord == 5 || currentChord == 7) && barCounter % 4 == 3)){
        tonicNeeded = true;
        print(" tonic needed " + (barCounter % 4));
     }
     else tonicNeeded = false;
     chooseChord();
}

void chooseChord(){

    int i = 0;
    for (; i < crneeded; i++){
        if (chordChoicesArray[i].chordNote == currentChord && chordChoicesArray[i].minor == heresyMinor)
            break;
    }
    if (currentChord == 1 && heresyDom)
        i = 16;
    if (tonicNeeded && i != 24){
        int gotOne = -1;
        int gotTwo = -1;
        if (chordChoicesArray[i].optionArray[0].chordOption == 0 && chordChoicesArray[i].optionArray[1].chordOption == 0 && int(random(2)) == 0)
            chosenChord (i, chordChoicesArray[i].optionArray[1].chordOption);
        else if 
            (chordChoicesArray[i].optionArray[0].chordOption == 0 && chordChoicesArray[i].optionArray[1].chordOption != 0)
            chosenChord (i, chordChoicesArray[i].optionArray[0].chordOption);
        else
            chosenChord (i, int(random(chordChoicesArray[i].slots)));
    }
    else if (i != 24){
        chosenChord(i, int(random(chordChoicesArray[i].slots))); 
    }else{
        currentChord = lastChordChange;
        heresyMinor = lastMinor;
    }
    println("   chord selected : " + currentChord + " minor:" + heresyMinor);
}

void chosenChord(int p, int p2){
    lastChordChange = currentChord;
    lastMinor = heresyMinor;
 //   println("p: " + p + "  p2 : " + p2);
    currentChord = chordChoicesArray[p].optionArray[p2].chordOption;
    heresyMinor = chordChoicesArray[p].optionArray[p2].minor;
    if (int(random(4)) == 0)
        heresy7th = true;
    else
        heresy7th = false;
    if (int(random(4)) == 0)
        heresy9th = true;
    else
        heresy9th = false;       
    if (int(random(4)) == 0)
        heresy11th = true;
    else
        heresy11th = false;


}   



class chordChoices{
    int chordNote;
    boolean minor;
    ChordChoice[] optionArray;
    int slots;
    
    public chordChoices(int chordNote, boolean minor, int slotsNeeded){
        this.chordNote = chordNote;
        this.minor = minor;
        optionArray = new ChordChoice[slotsNeeded];
        slots = slotsNeeded;
    }
}

class ChordChoice{
    int chordOption;
    boolean minor, h7th, h9th, h11th, h13th, dom;
    
    public ChordChoice(int chordOption, boolean minor, boolean dom, boolean h7th, boolean h9th, boolean h11th, boolean h13th){
        this.chordOption = chordOption;
        this.minor = minor;
        this.dom = dom;
        this.h7th = h7th;
        this.h9th = h9th;
        this.h11th = h11th;
        this.h13th = h13th;       
    }
}

//void stuff(){
chordChoices[] chordChoicesArray = new chordChoices[crneeded];

void markovStuff(){
chordChoicesArray[0] = new chordChoices(0, false, 13);
chordChoicesArray[0].optionArray[0] = new ChordChoice(2, true, false, true, true, true, true);
chordChoicesArray[0].optionArray[1] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[0].optionArray[2] = new ChordChoice(4, true, false, true, true, true, true);
chordChoicesArray[0].optionArray[3] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[0].optionArray[4] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[0].optionArray[5] = new ChordChoice(7, true, false, true, true, true, true);
chordChoicesArray[0].optionArray[6] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[0].optionArray[7] = new ChordChoice(8, true, false, true, true, true, true);
chordChoicesArray[0].optionArray[8] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[0].optionArray[9] = new ChordChoice(9, true, false, true, true, true, true);
chordChoicesArray[0].optionArray[10] = new ChordChoice(9, false, false, true, true, true, true);
chordChoicesArray[0].optionArray[11] = new ChordChoice(10, false, true, true, true, true, true);
chordChoicesArray[0].optionArray[12] = new ChordChoice(10, true, false, true, true, true, true);

chordChoicesArray[1] = new chordChoices(0, true, 14);
chordChoicesArray[1].optionArray[0] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[1].optionArray[1] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[1].optionArray[2] = new ChordChoice(3, true, false, true, true, true, true);
chordChoicesArray[1].optionArray[3] = new ChordChoice(4, true, false, true, true, true, true);
chordChoicesArray[1].optionArray[4] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[1].optionArray[5] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[1].optionArray[6] = new ChordChoice(6, true, false, true, true, true, true);
chordChoicesArray[1].optionArray[7] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[1].optionArray[8] = new ChordChoice(7, true, false, true, true, true, true);
chordChoicesArray[1].optionArray[9] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[1].optionArray[10] = new ChordChoice(8, true, false, true, true, true, true);
chordChoicesArray[1].optionArray[11] = new ChordChoice(10, false, false, true, true, true, true);
chordChoicesArray[1].optionArray[12] = new ChordChoice(11, true, false, true, true, true, true);
chordChoicesArray[1].optionArray[13] = new ChordChoice(11, false, false, true, true, true, true);

chordChoicesArray[2] = new chordChoices(2, false, 9);
chordChoicesArray[2].optionArray[0] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[2].optionArray[1] = new ChordChoice(2, true, false, true, true, true, true);
chordChoicesArray[2].optionArray[2] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[2].optionArray[3] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[2].optionArray[4] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[2].optionArray[5] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[2].optionArray[6] = new ChordChoice(9, false, false, true, true, true, true);
chordChoicesArray[2].optionArray[7] = new ChordChoice(9, true, false, true, true, true, true);
chordChoicesArray[2].optionArray[8] = new ChordChoice(10, false, false, true, true, true, true);

chordChoicesArray[3] = new chordChoices(2, true, 13);
chordChoicesArray[3].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[3].optionArray[1] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[3].optionArray[2] = new ChordChoice(3, true, false, true, true, true, true);
chordChoicesArray[3].optionArray[3] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[3].optionArray[4] = new ChordChoice(4, true, false, true, true, true, true);
chordChoicesArray[3].optionArray[5] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[3].optionArray[6] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[3].optionArray[7] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[3].optionArray[8] = new ChordChoice(7, true, false, true, true, true, true);
chordChoicesArray[3].optionArray[9] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[3].optionArray[10] = new ChordChoice(9, true, false, true, true, true, true);
chordChoicesArray[3].optionArray[11] = new ChordChoice(10, false, false, true, true, true, true);
chordChoicesArray[3].optionArray[12] = new ChordChoice(10, true, false, true, true, true, true);

chordChoicesArray[4] = new chordChoices(4, false, 4);
chordChoicesArray[4].optionArray[0] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[4].optionArray[1] = new ChordChoice(9, false, false, true, true, true, true);
chordChoicesArray[4].optionArray[2] = new ChordChoice(9, true, false, true, true, true, true);
chordChoicesArray[4].optionArray[3] = new ChordChoice(11, true, false, true, true, true, true);

chordChoicesArray[5] = new chordChoices(4, true, 13);
chordChoicesArray[5].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[5].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[5].optionArray[2] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[5].optionArray[3] = new ChordChoice(2, true, false, true, true, true, true);
chordChoicesArray[5].optionArray[4] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[5].optionArray[5] = new ChordChoice(3, true, false, true, true, true, true);
chordChoicesArray[5].optionArray[6] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[5].optionArray[7] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[5].optionArray[8] = new ChordChoice(8, true, false, true, true, true, true);
chordChoicesArray[5].optionArray[9] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[5].optionArray[10] = new ChordChoice(9, true, false, true, true, true, true);
chordChoicesArray[5].optionArray[11] = new ChordChoice(11, false, false, true, true, true, true);
chordChoicesArray[5].optionArray[12] = new ChordChoice(11, true, false, true, true, true, true);

chordChoicesArray[6] = new chordChoices(5, false, 14);
chordChoicesArray[6].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[6].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[6].optionArray[2] = new ChordChoice(2, true, false, true, true, true, true);
chordChoicesArray[6].optionArray[3] = new ChordChoice(4, true, false, true, true, true, true);
chordChoicesArray[6].optionArray[4] = new ChordChoice(4, false, false, true, true, true, true);
chordChoicesArray[6].optionArray[5] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[6].optionArray[6] = new ChordChoice(6, true, false, true, true, true, true);
chordChoicesArray[6].optionArray[7] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[6].optionArray[8] = new ChordChoice(8, true, false, true, true, true, true);
chordChoicesArray[6].optionArray[9] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[6].optionArray[10] = new ChordChoice(9, true, false, true, true, true, true);
chordChoicesArray[6].optionArray[11] = new ChordChoice(9, false, false, true, true, true, true);
chordChoicesArray[6].optionArray[12] = new ChordChoice(10, true, false, true, true, true, true);
chordChoicesArray[6].optionArray[13] = new ChordChoice(10, false, false, true, true, true, true);

chordChoicesArray[7] = new chordChoices(5, true, 15);
chordChoicesArray[7].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[7].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[7].optionArray[2] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[7].optionArray[3] = new ChordChoice(2, true, false, true, true, true, true);
chordChoicesArray[7].optionArray[4] = new ChordChoice(2, false, false, true, true, true, true);
chordChoicesArray[7].optionArray[5] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[7].optionArray[6] = new ChordChoice(4, false, false, true, true, true, true);
chordChoicesArray[7].optionArray[7] = new ChordChoice(6, true, false, true, true, true, true);
chordChoicesArray[7].optionArray[8] = new ChordChoice(7, true, false, true, true, true, true);
chordChoicesArray[7].optionArray[9] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[7].optionArray[10] = new ChordChoice(8, true, false, true, true, true, true);
chordChoicesArray[7].optionArray[11] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[7].optionArray[12] = new ChordChoice(10, false, false, true, true, true, true);
chordChoicesArray[7].optionArray[13] = new ChordChoice(11, false, false, true, true, true, true);
chordChoicesArray[7].optionArray[14] = new ChordChoice(11, true, false, true, true, true, true);

chordChoicesArray[8] = new chordChoices(7, true, 14);
chordChoicesArray[8].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[8].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[8].optionArray[2] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[8].optionArray[3] = new ChordChoice(2, false, false, true, true, true, true);
chordChoicesArray[8].optionArray[4] = new ChordChoice(2, true, false, true, true, true, true);
chordChoicesArray[8].optionArray[5] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[8].optionArray[6] = new ChordChoice(3, true, false, true, true, true, true);
chordChoicesArray[8].optionArray[7] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[8].optionArray[8] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[8].optionArray[9] = new ChordChoice(6, false, false, true, true, true, true);
chordChoicesArray[8].optionArray[10] = new ChordChoice(8, true, false, true, true, true, true);
chordChoicesArray[8].optionArray[11] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[8].optionArray[12] = new ChordChoice(10, false, false, true, true, true, true);
chordChoicesArray[8].optionArray[13] = new ChordChoice(10, true, false, true, true, true, true);

chordChoicesArray[9] = new chordChoices(7, false, 10);
chordChoicesArray[9].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[9].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[9].optionArray[2] = new ChordChoice(2, false, false, true, true, true, true);
chordChoicesArray[9].optionArray[3] = new ChordChoice(2, true, false, true, true, true, true);
chordChoicesArray[9].optionArray[4] = new ChordChoice(4, true, false, true, true, true, true);
chordChoicesArray[9].optionArray[5] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[9].optionArray[6] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[9].optionArray[7] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[9].optionArray[8] = new ChordChoice(8, true, false, true, true, true, true);
chordChoicesArray[9].optionArray[9] = new ChordChoice(9, true, false, true, true, true, true);

chordChoicesArray[10] = new chordChoices(9, true, 13);
chordChoicesArray[10].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[10].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[10].optionArray[2] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[10].optionArray[3] = new ChordChoice(2, true, false, true, true, true, true);
chordChoicesArray[10].optionArray[4] = new ChordChoice(2, false, false, true, true, true, true);
chordChoicesArray[10].optionArray[5] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[10].optionArray[6] = new ChordChoice(4, true, false, true, true, true, true);
chordChoicesArray[10].optionArray[7] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[10].optionArray[8] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[10].optionArray[9] = new ChordChoice(7, true, false, true, true, true, true);
chordChoicesArray[10].optionArray[10] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[10].optionArray[11] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[10].optionArray[12] = new ChordChoice(10, false, false, true, true, true, true);

chordChoicesArray[11] = new chordChoices(11, false, 6);
chordChoicesArray[11].optionArray[0] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[11].optionArray[1] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[11].optionArray[2] = new ChordChoice(1, true, false, true, true, true, true);
chordChoicesArray[11].optionArray[3] = new ChordChoice(1, false, false, true, true, true, true);
chordChoicesArray[11].optionArray[4] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[11].optionArray[5] = new ChordChoice(7, true, false, true, true, true, true);

chordChoicesArray[12] = new chordChoices(11, true, 5);
chordChoicesArray[12].optionArray[0] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[12].optionArray[1] = new ChordChoice(2, true, false, true, true, true, true);
chordChoicesArray[12].optionArray[2] = new ChordChoice(5, false, true, true, true, true, true);
chordChoicesArray[12].optionArray[3] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[12].optionArray[4] = new ChordChoice(8, false, false, true, true, true, true);

chordChoicesArray[13] = new chordChoices(1, false, 2);
chordChoicesArray[13].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[13].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);

chordChoicesArray[14] = new chordChoices(1, true, 2);
chordChoicesArray[14].optionArray[0] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[14].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);

chordChoicesArray[15] = new chordChoices(3, false, 12);
chordChoicesArray[15].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[15].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[15].optionArray[2] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[15].optionArray[3] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[15].optionArray[4] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[15].optionArray[5] = new ChordChoice(7, true, false, true, true, true, true);
chordChoicesArray[15].optionArray[6] = new ChordChoice(8, true, false, true, true, true, true);
chordChoicesArray[15].optionArray[7] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[15].optionArray[8] = new ChordChoice(10, true, false, true, true, true, true);
chordChoicesArray[15].optionArray[9] = new ChordChoice(10, false, false, true, true, true, true);
chordChoicesArray[15].optionArray[10] = new ChordChoice(11, false, false, true, true, true, true);
chordChoicesArray[15].optionArray[11] = new ChordChoice(11, true, false, true, true, true, true);

chordChoicesArray[16] = new chordChoices(111, false, 2);
chordChoicesArray[16].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[16].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);

chordChoicesArray[17] = new chordChoices(6, false, 10);
chordChoicesArray[17].optionArray[0] = new ChordChoice(1, false, false, true, true, true, true);
chordChoicesArray[17].optionArray[1] = new ChordChoice(1, true, false, true, true, true, true);
chordChoicesArray[17].optionArray[2] = new ChordChoice(2, false, false, true, true, true, true);
chordChoicesArray[17].optionArray[3] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[17].optionArray[4] = new ChordChoice(3, true, false, true, true, true, true);
chordChoicesArray[17].optionArray[5] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[17].optionArray[6] = new ChordChoice(9, false, false, true, true, true, true);
chordChoicesArray[17].optionArray[7] = new ChordChoice(9, true, false, true, true, true, true);
chordChoicesArray[17].optionArray[8] = new ChordChoice(10, true, false, true, true, true, true);
chordChoicesArray[17].optionArray[9] = new ChordChoice(10, false, false, true, true, true, true);

chordChoicesArray[18] = new chordChoices(8, false, 17);
chordChoicesArray[18].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[18].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[18].optionArray[2] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[18].optionArray[3] = new ChordChoice(1, true, false, true, true, true, true);
chordChoicesArray[18].optionArray[4] = new ChordChoice(1, false, false, true, true, true, true);
chordChoicesArray[18].optionArray[5] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[18].optionArray[6] = new ChordChoice(3, true, false, true, true, true, true);
chordChoicesArray[18].optionArray[7] = new ChordChoice(4, false, false, true, true, true, true);
chordChoicesArray[18].optionArray[8] = new ChordChoice(4, true, false, true, true, true, true);
chordChoicesArray[18].optionArray[9] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[18].optionArray[10] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[18].optionArray[11] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[18].optionArray[12] = new ChordChoice(7, true, false, true, true, true, true);
chordChoicesArray[18].optionArray[13] = new ChordChoice(9, true, false, true, true, true, true);
chordChoicesArray[18].optionArray[14] = new ChordChoice(10, false, false, true, true, true, true);
chordChoicesArray[18].optionArray[15] = new ChordChoice(11, false, false, true, true, true, true);
chordChoicesArray[18].optionArray[16] = new ChordChoice(11, true, false, true, true, true, true);

chordChoicesArray[19] = new chordChoices(8, true, 10);
chordChoicesArray[19].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[19].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[19].optionArray[2] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[19].optionArray[3] = new ChordChoice(1, false, false, true, true, true, true);
chordChoicesArray[19].optionArray[4] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[19].optionArray[5] = new ChordChoice(3, true, false, true, true, true, true);
chordChoicesArray[19].optionArray[6] = new ChordChoice(4, false, false, true, true, true, true);
chordChoicesArray[19].optionArray[7] = new ChordChoice(4, true, false, true, true, true, true);
chordChoicesArray[19].optionArray[8] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[19].optionArray[9] = new ChordChoice(5, false, false, true, true, true, true);

chordChoicesArray[20] = new chordChoices(3, true, 19);
chordChoicesArray[20].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[20].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[20].optionArray[2] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[20].optionArray[3] = new ChordChoice(2, false, false, true, true, true, true);
chordChoicesArray[20].optionArray[4] = new ChordChoice(4, false, false, true, true, true, true);
chordChoicesArray[20].optionArray[5] = new ChordChoice(4, true, false, true, true, true, true);
chordChoicesArray[20].optionArray[6] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[20].optionArray[7] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[20].optionArray[8] = new ChordChoice(6, true, false, true, true, true, true);
chordChoicesArray[20].optionArray[9] = new ChordChoice(6, false, false, true, true, true, true);
chordChoicesArray[20].optionArray[10] = new ChordChoice(7, true, false, true, true, true, true);
chordChoicesArray[20].optionArray[11] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[20].optionArray[12] = new ChordChoice(8, true, false, true, true, true, true);
chordChoicesArray[20].optionArray[13] = new ChordChoice(9, true, false, true, true, true, true);
chordChoicesArray[20].optionArray[14] = new ChordChoice(9, false, false, true, true, true, true);
chordChoicesArray[20].optionArray[15] = new ChordChoice(10, false, false, true, true, true, true);
chordChoicesArray[20].optionArray[16] = new ChordChoice(10, true, false, true, true, true, true);
chordChoicesArray[20].optionArray[17] = new ChordChoice(11, false, false, true, true, true, true);
chordChoicesArray[20].optionArray[18] = new ChordChoice(11, true, false, true, true, true, true);

chordChoicesArray[21] = new chordChoices(6, true, 9);
chordChoicesArray[21].optionArray[0] = new ChordChoice(1, false, false, true, true, true, true);
chordChoicesArray[21].optionArray[1] = new ChordChoice(1, true, false, true, true, true, true);
chordChoicesArray[21].optionArray[2] = new ChordChoice(2, false, false, true, true, true, true);
chordChoicesArray[21].optionArray[3] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[21].optionArray[4] = new ChordChoice(3, true, false, true, true, true, true);
chordChoicesArray[21].optionArray[5] = new ChordChoice(4, false, false, true, true, true, true);
chordChoicesArray[21].optionArray[6] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[21].optionArray[7] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[21].optionArray[8] = new ChordChoice(11, true, false, true, true, true, true);

chordChoicesArray[22] = new chordChoices(10, false, 13);
chordChoicesArray[22].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[22].optionArray[1] = new ChordChoice(0, true, false, true, true, true, true);
chordChoicesArray[22].optionArray[2] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[22].optionArray[3] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[22].optionArray[4] = new ChordChoice(3, true, false, true, true, true, true);
chordChoicesArray[22].optionArray[5] = new ChordChoice(5, true, false, true, true, true, true);
chordChoicesArray[22].optionArray[6] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[22].optionArray[7] = new ChordChoice(6, false, false, true, true, true, true);
chordChoicesArray[22].optionArray[8] = new ChordChoice(7, true, false, true, true, true, true);
chordChoicesArray[22].optionArray[9] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[22].optionArray[10] = new ChordChoice(8, true, false, true, true, true, true);
chordChoicesArray[22].optionArray[11] = new ChordChoice(8, false, false, true, true, true, true);
chordChoicesArray[22].optionArray[12] = new ChordChoice(11, true, false, true, true, true, true);

chordChoicesArray[23] = new chordChoices(10, true, 12);
chordChoicesArray[23].optionArray[0] = new ChordChoice(0, false, false, true, true, true, true);
chordChoicesArray[23].optionArray[1] = new ChordChoice(1, false, true, true, true, true, true);
chordChoicesArray[23].optionArray[2] = new ChordChoice(3, false, false, true, true, true, true);
chordChoicesArray[23].optionArray[3] = new ChordChoice(3, true, false, true, true, true, true);
chordChoicesArray[23].optionArray[4] = new ChordChoice(5, false, false, true, true, true, true);
chordChoicesArray[23].optionArray[5] = new ChordChoice(6, true, false, true, true, true, true);
chordChoicesArray[23].optionArray[6] = new ChordChoice(6, false, false, true, true, true, true);
chordChoicesArray[23].optionArray[7] = new ChordChoice(7, false, false, true, true, true, true);
chordChoicesArray[23].optionArray[8] = new ChordChoice(7, true, false, true, true, true, true);
chordChoicesArray[23].optionArray[9] = new ChordChoice(9, false, false, true, true, true, true);
chordChoicesArray[23].optionArray[10] = new ChordChoice(9, true, false, true, true, true, true);
chordChoicesArray[23].optionArray[11] = new ChordChoice(11, true, false, true, true, true, true);


}