]> ruin.nu Git - moosique.git/blob - MooTrack.java
initial commit
[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;
16         private boolean mute;
17
18
19         /** 
20          * Creates an empty MooTrack.
21          */
22         public MooTrack () {
23
24         }
25
26         /** 
27          * Sets the MIDI channel of the current track.
28          * @param chan          the number of the MIDI channel (1-16)
29          */
30         public void setChannel(int chan) {
31         
32         }
33
34         /** 
35          * Sets the MIDI instrument of the current track.
36          * @param instr         the number of the MIDI instrument (0-127)
37          */
38         public void setInstrument(int instr) {
39         
40         }
41
42         /** 
43          * Returns the number of notes in the current track.
44          * @return      the number of notes
45          */
46         public void getNumberOfNotes() {
47         
48         }
49
50         /** 
51          * Adds the given note to the current track.
52          * @param note          the MooNote to add
53          */
54         public void addNote(MooNote note) {
55         
56         }
57
58         /** 
59          * Deletes the given note to the current track.
60          * @param note          the MooNote to delete
61          */
62         public void deleteNote(MooNote note) {
63         
64         }
65
66         /** 
67          * Returns the note of the given index.
68          * @param note          the index of the note
69          */
70         public MooNote getNote(int note) {
71         
72         }
73
74         /** 
75          * Makes the current track solo.
76          * @param set   if the track should be solo
77          */
78         public void solo(boolean set) {
79         
80         }
81
82         /** 
83          * Mutes the current track.
84          * @param set   if the track should be muted
85          */
86         public void mute(boolean set) {
87         
88         }
89
90         /** 
91          * Checks if the current track is solo.
92          * @return if the track is solo
93          */
94
95         public boolean isSolo() {
96         
97         }
98
99         /** 
100          * Checks if the current track is muted.
101          * @return if the track is muted
102          */
103         public boolean isMute() {
104         
105         }
106 }