Package org.jjazz.colorsetmanager.api
Interface NoteColorManager
public interface NoteColorManager
Compute note colors depending on note velocity.
-
Method Summary
Modifier and TypeMethodDescriptionstatic NoteColorManager
getNoteColor
(int velocity) Provide a note color depending on velocity.getNoteColor
(Color refColor, int velocity) Compute the note color by adjusting refColor.getSelectedNoteColor
(int velocity) Same as getNoteColor() but for a selected note.
-
Method Details
-
getDefault
-
getNoteColor
Compute the note color by adjusting refColor.- Parameters:
refColor
- The reference color for velocity = 64.velocity
-- Returns:
-
getNoteColor
Provide a note color depending on velocity.The method uses shades of 3 different colors. Colors are cached.
- Parameters:
velocity
-- Returns:
-
getSelectedNoteColor
Same as getNoteColor() but for a selected note.- Parameters:
velocity
-- Returns:
-