]> ruin.nu Git - moosique.git/blob - MooNote.java
initial commit
[moosique.git] / MooNote.java
1 import javax.sound.midi.*;
2
3 /**
4  * Functional representation of a MIDI note, which contains two MIDI events, note on and note off.
5  * 
6  * @author  Andersson, Andreen, Lanneskog, Pehrson
7  * @version 1
8  */
9  
10 public class MooNote {
11
12         private MidiEvent noteOn, noteOff;
13
14         /** 
15          * Creates a MooNote of the given pitch, velocity and length in the current track.
16          */
17         public MooNote (int pitch, int velocity, int length) {
18
19         }
20
21         /** 
22          * Sets the pitch of the current note.
23          + @param pitch         the pitch of the note (0-127)
24          */
25         public void setPitch(int pitch) {
26         
27         }
28
29         /** 
30          * Sets the velocity of the current note.
31          + @param vel   the velocity of the note (0-127)
32          */
33         public void setVelocity(int vel) {
34         
35         }
36
37         /** 
38          * Sets the length of the current note (or rather moves the note off event).
39          + @param n     the length of the note in ticks (100 per beat)
40          */
41         public void setLength(int ticks) {
42         
43         }
44
45         /** 
46          * Returns the note on event of the current note.
47          * @return      the note on MidiEvent
48          */
49         public MidiEvent getNoteOnEvent() {
50         
51         }
52
53         /** 
54          * Returns the note off event of the current note.
55          * @return      the note off MidiEvent
56          */
57         public MidiEvent getNoteOffEvent() {
58         
59         }
60
61         /** 
62          * Returns the pitch of the current note.
63          * @return the pitch of the note
64          */
65         public int getPitch() {
66         
67         }
68
69         /** 
70          * Returns the velocity of the current note.
71          * @return the velocity of the note
72          */
73         public int getVelocity() {
74         
75         }
76
77         /** 
78          * Returns the length of the current note.
79          * @return the length of the note
80          */
81         public int getLength() {
82         
83         }
84 }