1 import javax.sound.midi.*;
4 * Functional representation of a MIDI sequence.
7 * @author Andersson, Andreen, Lanneskog, Pehrson
11 public class MooSequence {
13 private Collection tracks;
16 * Creates a MooSequence with three tracks.
18 public MooSequence () {
23 * Returns a pointer to the specified track.
24 * @param track the number of the track (0-31)
25 * @return the specified track
27 public MooTrack getTrack(int track) {
32 * Returns the number of tracks in the current sequence.
33 * @return the number of the tracks
35 public int getNumberOfTracks() {
40 * Creates a new track after the specified track.
41 * @param track the number of the track (0-31)
43 public void addTrack(int track) {
48 * Deletes the specified track.
49 * @param track the number of the track (0-31)
51 public void deleteTrack(int track) {
56 * Returns the Java Sequence object of the current sequence.
59 public Sequence getSequence() {
64 * Resets the solo and mute settings of all tracks.
66 public void activateTracks() {