Mercurial > hg > movesynth
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HeresyBigBangDone/application.macosx/source/Track.java Sat Oct 08 22:12:49 2011 +0100 @@ -0,0 +1,41 @@ +class Track{ // the track class + + boolean polyphonic; + int loopLength; + int trackNumber; + static int currentNumberOfTracks; + boolean selected; + NoteEvent[][] sequence; + int quantize; + boolean forceLegato; + String name; + boolean ducking; + boolean cycled; + int cycledPosition; + boolean mute; + boolean muteDone; + int muteIn; + + + + public Track(String name, boolean polyphonic, int loopLength, int quantize, boolean forceLegato, boolean increment){ + + if (polyphonic) + this.polyphonic = true; + else + this.polyphonic = false; + this.name = name; + this.ducking = false; + this.cycled = true; + this.forceLegato = forceLegato; + this.quantize = quantize; + this.loopLength = loopLength; + if (increment) this.trackNumber = currentNumberOfTracks++; + this.selected = false; + this.mute = false; + this.muteIn = 0; + sequence = new NoteEvent[16][loopLength]; + + } + +}