Class MeasureContext
java.lang.Object
org.jjazz.score.api.MeasureContext
A single measure context to build ScoreNotes for NotationGraphics.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMeasureContext(NotationGraphics ng, int barIndex, FloatRange beatRange, Note majorKey) MeasureContext(NotationGraphics ng, int barIndex, FloatRange beatRange, Note majorKey, int gStaffLowestPitch) -
Method Summary
Modifier and TypeMethodDescriptionbuildChordScoreNotes(List<NoteEvent> nes, ChordSymbol cs) Build several ScoreNotes which should be displayed as a chord (same position).buildScoreNote(NoteEvent ne, ChordSymbol cs) Build the ScoreNote for the specified note.intintbooleanisFstaff(int pitch)
-
Field Details
-
G_STAFF_LOWEST_PITCH
public static final int G_STAFF_LOWEST_PITCH- See Also:
-
-
Constructor Details
-
MeasureContext
public MeasureContext(NotationGraphics ng, int barIndex, FloatRange beatRange, Note majorKey, int gStaffLowestPitch) -
MeasureContext
-
-
Method Details
-
getgStaffLowestPitch
public int getgStaffLowestPitch() -
getMajorKey
-
getBeatRange
-
getBarIndex
public int getBarIndex() -
buildChordScoreNotes
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
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)
-