1 import javax.sound.midi.*;
4 * Functional representation of a MIDI sequence.
5 * @author Andersson, Andreen, Lanneskog, Pehrson
9 public class MooSequence {
11 private Collection tracks;
14 * Creates a MooSequence with three tracks.
16 public MooSequence () {
21 * Returns a pointer to the specified track.
22 * @param track the number of the track (0-31)
23 * @return the specified track
25 public MooTrack getTrack(int track) {
30 * Returns the number of tracks in the current sequence.
31 * @return the number of the tracks
33 public int getNumberOfTracks() {
38 * Creates a new track after the specified track.
39 * @param track the number of the track (0-31)
41 public void addTrack(int track) {
46 * Deletes the specified track.
47 * @param track the number of the track (0-31)
49 public void deleteTrack(int track) {
54 * Returns the Java Sequence object of the current sequence.
57 public Sequence getSequence() {
62 * Resets the solo and mute settings of all tracks.
64 public void activateTracks() {