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