Mercurial > hg > movesynth
view HeresyBigBangDone/Header.pde @ 29:d3fdadf86d90
Completed instrument design in Ableton and mapping between Max and Ableton.
author | Tim MB <tim.murraybrowne@eecs.qmul.ac.uk> |
---|---|
date | Fri, 25 Feb 2011 10:17:53 +0000 |
parents | 70dc11487078 |
children | e4b08c578349 |
line wrap: on
line source
import oscP5.*; import netP5.*; import maxlink.*; OscP5 oscP5return; NetAddress ableton = new NetAddress("169.254.107.152", 12346); // 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;