Detect articulation on a note, without changing the selection

• Aug 19, 2023 - 23:08

Is there a way to find articulation attached to a chord object, without changing the current selection? This is my usual method for doing it but won't work nicely in my current situation. segment.annotations, unlike it says in the documentation, doesn't return articulation outside of fermatas and possibly breaths/pauses.


Comments

confirm

> staccato
failed annotations

> fermata
curScore.selection.elements[0].parent.parent.annotations[0]

> pause
failed annotations
failed s=segment.next
failed cursor.next

  var e=curScore.selection.elements[0]
  var c=curScore.newCursor()
  log(e.type)
  c.track=e.track
  c.rewindToTick(e.parent.parent.tick)
  c.next()
  var f=c.segment.elementAt(c.track)
  log(f.type)

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