import javax.sound.midi.*;
-/**
+/*
* Functional representation of a MIDI track.
*
* @author Andersson, Andreen, Lanneskog, Pehrson
private Collection notes;
private int channel;
private int instrument;
- private boolean solo;
- private boolean mute;
+ private boolean solo = false;
+ private boolean mute = false;
-
- /**
+ /*
* Creates an empty MooTrack.
*/
public MooTrack () {
}
- /**
+ /*
+ * Sets the MIDI instrument of the current track.
+ * @param instr the number of the MIDI instrument (0-127)
+ */
+ public void setInstrument(int instr) {
+
+ }
+
+ /*
* Sets the MIDI channel of the current track.
* @param chan the number of the MIDI channel (1-16)
*/
}
- /**
- * Sets the MIDI instrument of the current track.
- * @param instr the number of the MIDI instrument (0-127)
+ /*
+ * Returns the MIDI channel of the current track.
+ * @return the number of the channel
*/
- public void setInstrument(int instr) {
+ public int getChannel() {
}
- /**
+ /*
* Returns the number of notes in the current track.
* @return the number of notes
*/
- public void getNumberOfNotes() {
+ public int getNumberOfNotes() {
}
- /**
+ /*
* Adds the given note to the current track.
* @param note the MooNote to add
*/
}
- /**
+ /*
* Deletes the given note to the current track.
* @param note the MooNote to delete
*/
}
- /**
+ /*
* Returns the note of the given index.
* @param note the index of the note
*/
}
- /**
+ /*
* Makes the current track solo.
* @param set if the track should be solo
*/
}
- /**
+ /*
* Mutes the current track.
* @param set if the track should be muted
*/
}
- /**
+ /*
* Checks if the current track is solo.
* @return if the track is solo
*/
}
- /**
+ /*
* Checks if the current track is muted.
* @return if the track is muted
*/
public boolean isMute() {
}
-}
+}
\ No newline at end of file