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