|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenpiano.settings.MidiSettings
public class MidiSettings
Class for global MIDI file settings
| Constructor Summary | |
|---|---|
MidiSettings(String md5Hash)
Constructs a new MIDI file setting |
|
MidiSettings(String md5Hash,
int keyboardTrack,
int bpmFactor,
Boolean awaitNotes,
Boolean markKeys)
Constructs a new MIDI file setting |
|
| Method Summary | |
|---|---|
void |
addMidiTrackSetting(MidiTrackSettings midiTrackSetting)
Adds custom settings for a track of a MIDI file |
int |
getBeatsPerMinuteFactor()
Returns the speed factor for beats per minute |
int |
getKeyboardTrack()
Returns the track played by the keyboard |
String |
getMD5Hash()
Returns the hash sum of the MIDI file |
LinkedList<MidiTrackSettings> |
getMidiTrackSettings()
Returns a list of all track settings |
Boolean |
isAwaitNotesOn()
Return true if the await notes function is selected |
Boolean |
isMarkKeysOn()
Return true if the mark keys function is selected |
void |
setAwaitNotesOn(Boolean awaitNotes)
Sets the status of the await notes function |
void |
setBeatsPerMinuteFactor(int bpmFactor)
Sets the speed factor for beats per minute |
void |
setKeyboardTrack(int keyboardTrack)
Sets the track played by the keyboard |
void |
setMarkKeysOn(Boolean markKeys)
Sets the status of the mark keys function |
void |
setMD5Hash(String md5Hash)
Sets the hash sum to identify the MIDI file |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MidiSettings(String md5Hash)
md5Hash - the hash sum to identify the MIDI file
public MidiSettings(String md5Hash,
int keyboardTrack,
int bpmFactor,
Boolean awaitNotes,
Boolean markKeys)
md5Hash - the hash sum to identify the MIDI filekeyboardTrack - the track played by the keyboardbpmFactor - the speed factor for beats per minuteawaitNotes - true if await notes function is selectedmarkKeys - true if mark keys function is selected| Method Detail |
|---|
public String getMD5Hash()
public int getKeyboardTrack()
public int getBeatsPerMinuteFactor()
public Boolean isAwaitNotesOn()
public Boolean isMarkKeysOn()
public void setMD5Hash(String md5Hash)
md5Hash - the hash sum to identify the MIDI filepublic void setKeyboardTrack(int keyboardTrack)
keyboardTrack - the track played by the keyboardpublic void setBeatsPerMinuteFactor(int bpmFactor)
bpmFactor - the speed factor for beats per minutepublic void setAwaitNotesOn(Boolean awaitNotes)
awaitNotes - true if the await notes function should be enabledpublic void setMarkKeysOn(Boolean markKeys)
markKeys - true if the mark keys function should be enabledpublic void addMidiTrackSetting(MidiTrackSettings midiTrackSetting)
midiTrackSetting - the settings for the trackpublic LinkedList<MidiTrackSettings> getMidiTrackSettings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||