-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotes.java
52 lines (44 loc) · 1.18 KB
/
Notes.java
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
45
46
47
48
49
50
51
52
package round;
import java.io.File;
import java.util.ArrayList;
public class Notes
{
private final int A = 0;
private final int C = 1;
private final int E = 2;
private final int G = 3;
private final int A_HIGH = 4;
private final int C_HIGH = 5;
private ArrayList<File> possibleNotes;
private void importNotes(int numberOfNotes)
{
switch(numberOfNotes - 1) // the first note is 0
{
case C_HIGH:
possibleNotes.add(new File("notesAudioFile/Piano.ff.Db5.WAV"));
case A_HIGH:
possibleNotes.add(new File("notesAudioFile/Piano.ff.A4.WAV"));
case G:
possibleNotes.add(new File("notesAudioFile/Piano.ff.G4.WAV"));
case E:
possibleNotes.add(new File("notesAudioFile/Piano.ff.E4.WAV"));
case C:
possibleNotes.add(new File("notesAudioFile/Piano.ff.Db4.WAV"));
case A:
possibleNotes.add(new File("notesAudioFile/Piano.ff.A3.WAV"));
}
}
public Notes(int numberOfNotes) // the number of rows of the size
{
this.possibleNotes = new ArrayList<File>();
importNotes(numberOfNotes);
}
public ArrayList<File> getNotes()
{
return this.possibleNotes;
}
public void closeFiles()
{
// close files
}
}