set_key_signature
Reports when a key signature cannot be set directly, then directs you to the key popover for interactive entry or to MusicXML/ScoreSpec for file-based setting.
Instructions
Report that a key signature cannot be set here, and what to use instead.
This writes nothing and always reports failure, for the same reason as
set_time_signature: Dorico takes a key 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:
For a person at the keyboard, open_popover(kind='key') opens the popover for
them to type into. For an unattended write, put the key in a ScoreSpec and
use write_score(method='musicxml') or export_musicxml, which set it through
the file rather than the UI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The key that was wanted, e.g. 'G major', 'C# minor' or 'Bb major'. Reported back in the answer so the caller can carry it to one of the alternatives. Nothing is written from it. | C major |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||