set_time_signature
Reports inability to set a time signature and suggests alternatives: use the interactive popover or include it in a ScoreSpec for file-based writes.
Instructions
Report that a time signature cannot be set here, and what to use instead.
This writes nothing and always reports failure, which is the honest answer
rather than a silent no-op: Dorico takes a time signature only through an
interactive popover, and the Remote API cannot type into one.
Returns:
Result dictionary explaining the limitation and naming the alternatives.
Note:
Two ways round it. For a person at the keyboard, open_popover(kind='time')
opens the popover for them to type into. For an unattended write, put the
time signature in a ScoreSpec and use write_score(method='musicxml') or
export_musicxml, both of which set it through the file rather than the UI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | No | The time signature that was wanted, e.g. '4/4', '3/4' or '6/8'. Reported back in the answer so the caller can carry it to one of the alternatives. Nothing is written from it. | 4/4 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||