access dynamics

• Apr 10, 2023 - 09:10

Hi guys

Howto select - with a plugin - a dynamics marking (p, mp, mf, f, ff ....) and change the fontsize of it?

Thanks


Comments

Dynamics are accessible via a segment using segment.annotations:

var segment; //locate the desired segment, not handled in this code
for (var i in segment.annotations) {
  if (segment.annotations[i].type = Element.DYNAMIC) {
    segment.annotations[i].fontSize = 12 //example
    segment.annotations[i].sizeSpatiumDependent = true //example
  }
}

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