Beam direction and beamPos

• May 19, 2025 - 03:30

I'm trying to figure out the beam direction of Chords. Stem direction is independent of beam direction: you can have stem direction set to 0, but beam direction set to force up or down.

There doesn't seem to be a beamDirection property of Element that matches the beam direction panel in the Properties panel.

So I'm trying to figure it out by looking at the beamPos property. The beamPos property seems to be a 'Pair' — which means I should be able to access the 'y offset' by writing note.beamPos.second ('second' being the QML syntax for getting the second object in a QPair). However, this always returns 'undefined'.

Any thoughts on how I might access the second item in a Pair?


Comments

The
note.parent.stem.posX
property (where 'note' is the single note of a 'chord') is an indicator of the direction of the stem. That's if I understand what you're looking for.

Do you still have an unanswered question? Please log in first to post your question.