]> ruin.nu Git - moosique.git/blob - MooTrack.java
Started on Moosique and MooNote. Changed comment in the others.
[moosique.git] / MooTrack.java
1 import javax.sound.midi.*;
2
3 /*
4  * Functional representation of a MIDI track.
5  * 
6  * @author  Andersson, Andreen, Lanneskog, Pehrson
7  * @version 1
8  */
9  
10 public class MooTrack {
11
12         private Collection notes;
13         private int channel;
14         private int instrument;
15         private boolean solo = false;
16         private boolean mute = false;
17
18         /* 
19          * Creates an empty MooTrack.
20          */
21         public MooTrack () {
22
23         }
24
25         /* 
26          * Sets the MIDI instrument of the current track.
27          * @param instr         the number of the MIDI instrument (0-127)
28          */
29         public void setInstrument(int instr) {
30         
31         }
32
33         /* 
34          * Sets the MIDI channel of the current track.
35          * @param chan          the number of the MIDI channel (1-16)
36          */
37         public void setChannel(int chan) {
38         
39         }
40
41         /* 
42          * Returns the MIDI channel of the current track.
43          * @return      the number of the channel
44          */
45         public int getChannel() {
46         
47         }
48
49         /* 
50          * Returns the number of notes in the current track.
51          * @return      the number of notes
52          */
53         public int getNumberOfNotes() {
54         
55         }
56
57         /* 
58          * Adds the given note to the current track.
59          * @param note          the MooNote to add
60          */
61         public void addNote(MooNote note) {
62         
63         }
64
65         /* 
66          * Deletes the given note to the current track.
67          * @param note          the MooNote to delete
68          */
69         public void deleteNote(MooNote note) {
70         
71         }
72
73         /* 
74          * Returns the note of the given index.
75          * @param note          the index of the note
76          */
77         public MooNote getNote(int note) {
78         
79         }
80
81         /* 
82          * Makes the current track solo.
83          * @param set   if the track should be solo
84          */
85         public void solo(boolean set) {
86         
87         }
88
89         /* 
90          * Mutes the current track.
91          * @param set   if the track should be muted
92          */
93         public void mute(boolean set) {
94         
95         }
96
97         /* 
98          * Checks if the current track is solo.
99          * @return if the track is solo
100          */
101
102         public boolean isSolo() {
103         
104         }
105
106         /* 
107          * Checks if the current track is muted.
108          * @return if the track is muted
109          */
110         public boolean isMute() {
111         
112         }
113 }