1 import javax.sound.midi.*;
4 * Functional representation of a MIDI sequence.
6 * @author Andersson, Andreen, Lanneskog, Pehrson
10 public class MooSequence {
12 private Collection tracks;
15 * Creates a MooSequence with three tracks.
17 public MooSequence () {
22 * Returns a pointer to the specified track.
23 * @param track the number of the track (0-31)
24 * @return the specified track
26 public MooTrack getTrack(int track) {
31 * Returns the number of tracks in the current sequence.
32 * @return the number of the tracks
34 public int getNumberOfTracks() {
39 * Creates a new track after the specified track.
40 * @param track the number of the track (0-31)
42 public void addTrack(int track) {
47 * Deletes the specified track.
48 * @param track the number of the track (0-31)
50 public void deleteTrack(int track) {
55 * Returns the Java Sequence object of the current sequence.
58 public Sequence getSequence() {
63 * Resets the solo and mute settings of all tracks.
65 public void activateTracks() {