musescore / musescore/MuseScore

[API] Add API access to score.measures()

Open
#32,536 0 comments 0 reactions 1 assignee View on GitHub

@igorkorsukov is already working on this.

Since Mar 10, 2026.

plugins
Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Description

Your idea

Give plug-ins direct access to score.measures()

Problem to be solved

As far as I can tell, there doesn't seem to be any way for plugins to get a list (sorted) of all measures in the score, without rolling our own.

It would be useful for plug-ins to have direct API access to the score-level list of MeasureBase objects, available through score.measures(). This would avoid having to roll our own iteration loop of nextMeasure.

Prior art

No response

Additional context

No response

Checklist
  • This request follows the guidelines for reporting issues
  • I have verified that this feature request has not been logged before, by searching the issue tracker for similar requests

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.