comparison HeresyBigBangDone/application.macosx/source/Header.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 import oscP5.*;
2 import netP5.*;
3 import maxlink.*;
4
5 OscP5 oscP5return;
6 NetAddress ableton = new NetAddress("localhost", 12345); // OSC to ableton
7 MaxLink link = new MaxLink(this, "midiCom");
8 import processing.opengl.*;
9 int imageWidth = 1000;
10 int imageHeight = 300;
11 int fanWidth = 400;
12
13 float rpulse;
14 boolean rpulseup;
15 boolean clickTrack;
16 int currentPulse = 0;
17 int grid = 32;
18 int fractions = 4;
19 int pulseFrequency = grid / fractions;
20 int beatsPerBar = 4;
21 int bar = 0, beat = 0, fraction = 0, pulse = 0;
22 int pulsesPerBar = beatsPerBar * grid;
23
24 color lineColour = color(150,150,150);
25 color barLineColour = color(255,255,95);
26 color backGround = color(50,81,191);
27 int redC = 50;
28 int greenC = 81;
29 int blueC = 191;
30 PImage screenImage;
31 PGraphics img, imgNotes, imgNoteFan;
32 PImage test;
33
34 int barOfPixels = grid * beatsPerBar;
35 int playArea = 200;
36 int x= 0;
37 int x2= 0;
38 PFont arial;
39 int arraySize = 800-playArea;
40 int bpm = 130;
41 int tempo = bpm/60*grid;
42 int noOfBars = 2;
43 int loopLength = grid*beatsPerBar*noOfBars;
44 Track[] tracks = new Track[16];
45 Track chordsTemp;
46 int trSelected;
47 boolean[] noteOnArray = new boolean[16];
48 boolean[] displayNoteOnArray = new boolean[16];
49 int[] noteOnArrayLength = new int[16];
50 boolean chordSelecter, clickTrackOn;
51 int lastTrack;
52 int trackStorer, screenAni;
53 boolean quantizeValueIn, loopLengthValueIn, haveQuestion, aniOut, muteValueIn;
54 String screenQuestion;
55 boolean eraseOn;
56
57 int crneeded = 24;
58 int noOfChords;
59 boolean tonicNeeded;
60 boolean chordAI = true;
61 int lastChordChange;
62 boolean lastMinor;
63 int barCounter;
64