rebecca@26: class Track{ // the track class rebecca@26: rebecca@26: boolean polyphonic; rebecca@26: int loopLength; rebecca@26: int trackNumber; rebecca@26: static int currentNumberOfTracks; rebecca@26: boolean selected; rebecca@26: NoteEvent[][] sequence; rebecca@26: int quantize; rebecca@26: boolean forceLegato; rebecca@26: String name; rebecca@26: boolean ducking; rebecca@26: boolean cycled; rebecca@26: int cycledPosition; rebecca@26: boolean mute; rebecca@26: boolean muteDone; rebecca@26: int muteIn; rebecca@26: rebecca@26: rebecca@26: rebecca@26: public Track(String name, boolean polyphonic, int loopLength, int quantize, boolean forceLegato, boolean increment){ rebecca@26: rebecca@26: if (polyphonic) rebecca@26: this.polyphonic = true; rebecca@26: else rebecca@26: this.polyphonic = false; rebecca@26: this.name = name; rebecca@26: this.ducking = false; rebecca@26: this.cycled = true; rebecca@26: this.forceLegato = forceLegato; rebecca@26: this.quantize = quantize; rebecca@26: this.loopLength = loopLength; rebecca@26: if (increment) this.trackNumber = currentNumberOfTracks++; rebecca@26: this.selected = false; rebecca@26: this.mute = false; rebecca@26: this.muteIn = 0; rebecca@26: sequence = new NoteEvent[16][loopLength]; rebecca@26: rebecca@26: } rebecca@26: rebecca@26: }