Class MeasureContext

java.lang.Object
org.jjazz.score.api.MeasureContext

public class MeasureContext extends Object
A single measure context to build ScoreNotes for NotationGraphics.
  • Field Details

  • Constructor Details

  • Method Details

    • getgStaffLowestPitch

      public int getgStaffLowestPitch()
    • getMajorKey

      public Note getMajorKey()
    • getBeatRange

      public FloatRange getBeatRange()
    • getBarIndex

      public int getBarIndex()
    • buildChordScoreNotes

      public List<NotationGraphics.ScoreNote> buildChordScoreNotes(List<NoteEvent> nes, ChordSymbol cs)
      Build several ScoreNotes which should be displayed as a chord (same position).

      Handle accidental selection and note base shift.

      Parameters:
      nes -
      cs - Can be null. If specified used to try to select the appropriate ScoreNote accidental
      Returns:
    • buildScoreNote

      public NotationGraphics.ScoreNote buildScoreNote(NoteEvent ne, ChordSymbol cs)
      Build the ScoreNote for the specified note.
      Parameters:
      ne -
      cs - Can be null. If specified used to try to select the appropriate ScoreNote accidental
      Returns:
    • isFstaff

      public boolean isFstaff(int pitch)