annotate HeresyBigBangDone/application.macosx/source/Track.java @ 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 class Track{ // the track class
andrew@50 2
andrew@50 3 boolean polyphonic;
andrew@50 4 int loopLength;
andrew@50 5 int trackNumber;
andrew@50 6 static int currentNumberOfTracks;
andrew@50 7 boolean selected;
andrew@50 8 NoteEvent[][] sequence;
andrew@50 9 int quantize;
andrew@50 10 boolean forceLegato;
andrew@50 11 String name;
andrew@50 12 boolean ducking;
andrew@50 13 boolean cycled;
andrew@50 14 int cycledPosition;
andrew@50 15 boolean mute;
andrew@50 16 boolean muteDone;
andrew@50 17 int muteIn;
andrew@50 18
andrew@50 19
andrew@50 20
andrew@50 21 public Track(String name, boolean polyphonic, int loopLength, int quantize, boolean forceLegato, boolean increment){
andrew@50 22
andrew@50 23 if (polyphonic)
andrew@50 24 this.polyphonic = true;
andrew@50 25 else
andrew@50 26 this.polyphonic = false;
andrew@50 27 this.name = name;
andrew@50 28 this.ducking = false;
andrew@50 29 this.cycled = true;
andrew@50 30 this.forceLegato = forceLegato;
andrew@50 31 this.quantize = quantize;
andrew@50 32 this.loopLength = loopLength;
andrew@50 33 if (increment) this.trackNumber = currentNumberOfTracks++;
andrew@50 34 this.selected = false;
andrew@50 35 this.mute = false;
andrew@50 36 this.muteIn = 0;
andrew@50 37 sequence = new NoteEvent[16][loopLength];
andrew@50 38
andrew@50 39 }
andrew@50 40
andrew@50 41 }