Mercurial > hg > movesynth
view HeresyBigBangDone/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 | 0eeda0223db3 |
children |
line wrap: on
line source
import oscP5.*; import netP5.*; import maxlink.*; OscP5 oscP5return; NetAddress ableton = new NetAddress("localhost", 12345); // OSC to ableton MaxLink link = new MaxLink(this, "midiCom"); import processing.opengl.*; int imageWidth = 1000; int imageHeight = 300; int fanWidth = 400; float rpulse; boolean rpulseup; boolean clickTrack; int currentPulse = 0; int grid = 32; int fractions = 4; int pulseFrequency = grid / fractions; int beatsPerBar = 4; int bar = 0, beat = 0, fraction = 0, pulse = 0; int pulsesPerBar = beatsPerBar * grid; color lineColour = color(150,150,150); color barLineColour = color(255,255,95); color backGround = color(50,81,191); int redC = 50; int greenC = 81; int blueC = 191; PImage screenImage; PGraphics img, imgNotes, imgNoteFan; PImage test; int barOfPixels = grid * beatsPerBar; int playArea = 200; int x= 0; int x2= 0; PFont arial; int arraySize = 800-playArea; int bpm = 130; int tempo = bpm/60*grid; int noOfBars = 2; int loopLength = grid*beatsPerBar*noOfBars; Track[] tracks = new Track[16]; Track chordsTemp; int trSelected; boolean[] noteOnArray = new boolean[16]; boolean[] displayNoteOnArray = new boolean[16]; int[] noteOnArrayLength = new int[16]; boolean chordSelecter, clickTrackOn; int lastTrack; int trackStorer, screenAni; boolean quantizeValueIn, loopLengthValueIn, haveQuestion, aniOut, muteValueIn; String screenQuestion; boolean eraseOn; int crneeded = 24; int noOfChords; boolean tonicNeeded; boolean chordAI = true; int lastChordChange; boolean lastMinor; int barCounter;