|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenpiano.notes.Notes
public class Notes
The Notes class is the central class to manage blocks
| Constructor Summary | |
|---|---|
Notes(Controller controller,
Settings settings)
Constructs a new Notes object for a 88 key piano without any pre-loaded notes |
|
| Method Summary | |
|---|---|
void |
sendKey(int key,
int velocity)
Sends a piano key to a the corresponding block, if available |
void |
setNotes(MidiLoader midiLoader)
Sets new notes to handle |
void |
setTick(long currentTick,
Boolean isSliding)
Sets the actual tick and performs updates to blocks |
void |
showLines()
Shows the lines behind the piano keys |
void |
showNotes()
Shows the notes |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Notes(Controller controller,
Settings settings)
controller - the main controller of the application| Method Detail |
|---|
public void sendKey(int key,
int velocity)
key - the affected keyvelocity - the velocity of the key, a velocity of 0 means release keypublic void setNotes(MidiLoader midiLoader)
midiLoader - a MidiLoader object handling a MIDI file
public void setTick(long currentTick,
Boolean isSliding)
currentTick - the actual tick in the MIDI fileisSliding - true if the user is using the sliderpublic void showLines()
public void showNotes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||