Mercurial > hg > movesynth
view HeresyBigBangDone/Track.java @ 26:70dc11487078
Added Joe's Processing sketches to the repository.
author | Becky Stewart <rebecca.stewart@eecs.qmul.ac.uk> |
---|---|
date | Thu, 17 Feb 2011 18:08:19 +0000 |
parents | |
children |
line wrap: on
line source
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]; } }