PitchStaffPosition extension
Extension for facilitar uso in Pitch
Every member forwards extraOctaveShift to
StaffPositionCalculator.calculate so that a caller working through the
extension gets the same 8va/8vb displacement as one calling the calculator
directly — otherwise the ledger lines would be computed for the undisplaced
position and drift away from the notehead.
- on
Methods
-
getLedgerLinePositions(
Clef clef, {int extraOctaveShift = 0}) → List< int> -
Available on Pitch, provided by the PitchStaffPosition extension
Gets ledger lines required -
needsLedgerLines(
Clef clef, {int extraOctaveShift = 0}) → bool -
Available on Pitch, provided by the PitchStaffPosition extension
Checks if needs de ledger lines -
staffPosition(
Clef clef, {int extraOctaveShift = 0}) → int -
Available on Pitch, provided by the PitchStaffPosition extension
Calculates staff position for a clef