[go: up one dir, main page]

Menu

[a92f97]: / Note.java  Maximize  Restore  History

Download this file

45 lines (37 with data), 830 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package achtbit;
/**
*
* @author christianw
*/
public class Note {
private int note;
private int length;
private int lengthUnit;
private int loudness;
public Note(int note, int length, int lengthUnit, int loudness) {
this.note = note;
this.length = length;
this.lengthUnit=lengthUnit;
this.loudness = loudness;
}
@Override
protected Object clone() {
return new Note(note,length,lengthUnit,loudness);
}
public int getNote() {
return note;
}
public int getLength() {
return length;
}
public int getLengthUnit() {
return lengthUnit;
}
public int getLoudness() {
return loudness;
}
}