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