bool MelodyNoteGraphicBuilder::isPitchOnLine(const Pitch &pitch) const { if (pitch.staffPos() % 2) { return false; } return true; }
void MelodyNoteGraphicBuilder::setLedgerLinesForPitch(const Pitch &pitch) { if (m_pitchContext.isNull()) return; int staffPos = pitch.staffPos(); int ledgerLineCount = ledgerLineCountForStaffPos(staffPos); m_glyph->setLedgerLines(ledgerLineCount, staffPos < 0); }