add_notes
Add notes at the caret position in a Dorico score, specifying pitches, duration, and whether to stack as a chord. Ensures clean exit from note-input mode.
Instructions
Input notes at the caret, then leave note-input mode cleanly.
Args:
notes: pitches like ["C4", "E4", "G4"] (letter + optional #/b + octave).
duration: whole | half | quarter | eighth | sixteenth | 32nd | 64th.
as_chord: if true, stack the notes as one chord instead of a sequence.
Uses :class:NoteInputSession, so note input is always exited even on error.
Success only means the commands were accepted (kOK) — confirm the notes
actually landed via get_status/playback/your eyes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| as_chord | No | ||
| duration | No | quarter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||