Interface NoteColorManager


public interface NoteColorManager
Compute note colors depending on note velocity.
  • Method Details

    • getDefault

      static NoteColorManager getDefault()
    • getNoteColor

      Color getNoteColor(Color refColor, int velocity)
      Compute the note color by adjusting refColor.
      Parameters:
      refColor - The reference color for velocity = 64.
      velocity -
      Returns:
    • getNoteColor

      Color getNoteColor(int velocity)
      Provide a note color depending on velocity.

      The method uses shades of 3 different colors. Colors are cached.

      Parameters:
      velocity -
      Returns:
    • getSelectedNoteColor

      Color getSelectedNoteColor(int velocity)
      Same as getNoteColor() but for a selected note.
      Parameters:
      velocity -
      Returns: