{
  "version": 1,
  "documentation": "/automation/",
  "catalog": {
    "ticksPerQuarterNote": 1920,
    "measuresAndVoicesStartAt": 1,
    "keys": {
      "major": [
        "Cb",
        "Gb",
        "Db",
        "Ab",
        "Eb",
        "Bb",
        "F",
        "C",
        "G",
        "D",
        "A",
        "E",
        "B",
        "F#",
        "C#"
      ],
      "minor": [
        "Ab",
        "Eb",
        "Bb",
        "F",
        "C",
        "G",
        "D",
        "A",
        "E",
        "B",
        "F#",
        "C#",
        "G#",
        "D#",
        "A#"
      ]
    },
    "meters": [
      "2/2",
      "3/2",
      "2/4",
      "3/4",
      "4/4",
      "5/4",
      "6/4",
      "7/4",
      "3/8",
      "5/8",
      "6/8",
      "7/8",
      "9/8",
      "12/8"
    ],
    "durations": {
      "whole": 1,
      "half": 2,
      "quarter": 4,
      "eighth": 8,
      "16th": 16,
      "32nd": 32,
      "64th": 64,
      "128th": 128,
      "double whole": 0.5
    },
    "clefs": {
      "treble": "Treble",
      "bass": "Bass",
      "alto": "Alto",
      "tenor": "Tenor",
      "soprano": "Soprano",
      "mezzo-soprano": "Mezzo-soprano",
      "baritone-c": "Baritone (C)",
      "baritone-f": "Baritone (F)",
      "french": "French violin",
      "percussion": "Percussion"
    },
    "articulations": {
      "staccato": "Staccato",
      "tenuto": "Tenuto",
      "accent": "Accent",
      "marcato": "Marcato",
      "staccatissimo": "Staccatissimo",
      "fermata": "Fermata"
    },
    "dynamics": [
      "ppp",
      "pp",
      "p",
      "mp",
      "mf",
      "f",
      "ff",
      "fff",
      "sfz",
      "fp"
    ],
    "instruments": {
      "piano": "Piano",
      "organ": "Organ",
      "harpsichord": "Harpsichord",
      "guitar": "Classical guitar",
      "bass": "Bass guitar",
      "ukulele": "Ukulele",
      "harp": "Harp",
      "violin": "Violin",
      "viola": "Viola",
      "cello": "Cello",
      "contrabass": "Double bass",
      "flute": "Flute",
      "piccolo": "Piccolo",
      "oboe": "Oboe",
      "clarinet": "Clarinet",
      "bassoon": "Bassoon",
      "saxophone": "Alto saxophone",
      "trumpet": "Trumpet",
      "horn": "French horn",
      "trombone": "Trombone",
      "tuba": "Tuba",
      "timpani": "Timpani",
      "percussion": "Drum kit",
      "marimba": "Marimba",
      "voice": "Voice"
    },
    "drums": {
      "36": "Kick",
      "38": "Snare",
      "41": "Floor tom",
      "42": "Closed hi-hat",
      "44": "Pedal hi-hat",
      "46": "Open hi-hat",
      "47": "Mid tom",
      "49": "Crash cymbal",
      "50": "High tom",
      "51": "Ride cymbal"
    },
    "tablatureTunings": {
      "guitar": [
        64,
        59,
        55,
        50,
        45,
        40
      ],
      "bass": [
        43,
        38,
        33,
        28
      ],
      "ukulele": [
        69,
        64,
        60,
        67
      ]
    }
  },
  "methods": {
    "describe": {
      "description": "Get the API version, documentation URL, callable methods, JSON Schemas and music catalogs.",
      "inputSchema": null
    },
    "getPlaybackTimeline": {
      "description": "Read timing, sound events, pitches and dynamics for the open score.",
      "inputSchema": null
    },
    "getScore": {
      "description": "Read a detached native score as JSON. Use its IDs for targeted edits.",
      "inputSchema": null
    },
    "getState": {
      "description": "Read the draft ID, score revision, selection, view, active panel, input settings, history and playback status.",
      "inputSchema": null
    },
    "getScoreLayout": {
      "description": "Read the displayed layout or request page or continuous layout. Returns one-based measure ranges and staff/tab rows.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "layout": {
            "type": "string",
            "enum": [
              "page",
              "continuous"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "getFingering": {
      "description": "Read an event’s tuning, resolved pitches, current frets and playable string choices. Pitch indices start at zero.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "eventId"
        ],
        "additionalProperties": false
      }
    },
    "validateScore": {
      "description": "Validate and normalize a native score without changing the editor.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "version": {
            "type": "number",
            "const": 1
          },
          "title": {
            "type": "string",
            "maxLength": 120
          },
          "composer": {
            "type": "string",
            "maxLength": 120
          },
          "key": {
            "type": "object",
            "properties": {
              "fifths": {
                "type": "integer",
                "minimum": -7,
                "maximum": 7
              },
              "mode": {
                "type": "string",
                "enum": [
                  "major",
                  "minor"
                ]
              }
            },
            "required": [
              "fifths",
              "mode"
            ]
          },
          "meter": {
            "type": "object",
            "properties": {
              "beats": {
                "type": "integer",
                "minimum": 1,
                "maximum": 32
              },
              "unit": {
                "type": "number",
                "enum": [
                  1,
                  2,
                  4,
                  8,
                  16,
                  32,
                  64,
                  128
                ]
              }
            },
            "required": [
              "beats",
              "unit"
            ]
          },
          "tempo": {
            "type": "integer",
            "minimum": 20,
            "maximum": 400
          },
          "parts": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "instrument": {
                  "type": "string",
                  "enum": [
                    "piano",
                    "organ",
                    "harpsichord",
                    "guitar",
                    "bass",
                    "ukulele",
                    "harp",
                    "violin",
                    "viola",
                    "cello",
                    "contrabass",
                    "flute",
                    "piccolo",
                    "oboe",
                    "clarinet",
                    "bassoon",
                    "saxophone",
                    "trumpet",
                    "horn",
                    "trombone",
                    "tuba",
                    "timpani",
                    "percussion",
                    "marimba",
                    "voice"
                  ]
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "program": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 127
                },
                "pan": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 127
                },
                "volume": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 127
                },
                "notation": {
                  "type": "string",
                  "enum": [
                    "staff",
                    "tab",
                    "both"
                  ]
                },
                "staves": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "clef": {
                        "type": "string",
                        "enum": [
                          "treble",
                          "bass",
                          "alto",
                          "tenor",
                          "soprano",
                          "mezzo-soprano",
                          "baritone-c",
                          "baritone-f",
                          "french",
                          "percussion"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "clef"
                    ]
                  }
                }
              },
              "required": [
                "id",
                "instrument",
                "name",
                "staves"
              ]
            }
          },
          "measures": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "meter": {
                  "type": "object",
                  "properties": {
                    "beats": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 32
                    },
                    "unit": {
                      "type": "number",
                      "enum": [
                        1,
                        2,
                        4,
                        8,
                        16,
                        32,
                        64,
                        128
                      ]
                    }
                  },
                  "required": [
                    "beats",
                    "unit"
                  ]
                },
                "key": {
                  "type": "object",
                  "properties": {
                    "fifths": {
                      "type": "integer",
                      "minimum": -7,
                      "maximum": 7
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "major",
                        "minor"
                      ]
                    }
                  },
                  "required": [
                    "fifths",
                    "mode"
                  ]
                },
                "tempo": {
                  "type": "integer",
                  "minimum": 20,
                  "maximum": 400
                },
                "end": {
                  "type": "string",
                  "enum": [
                    "single",
                    "double",
                    "final"
                  ]
                },
                "clefs": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "additionalProperties": {
                    "type": "string",
                    "enum": [
                      "treble",
                      "bass",
                      "alto",
                      "tenor",
                      "soprano",
                      "mezzo-soprano",
                      "baritone-c",
                      "baritone-f",
                      "french",
                      "percussion"
                    ]
                  }
                },
                "notes": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        "at": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "voice": {
                          "type": "number",
                          "enum": [
                            0,
                            1
                          ]
                        },
                        "value": {
                          "type": "number",
                          "enum": [
                            1,
                            2,
                            4,
                            8,
                            16,
                            32,
                            64,
                            128,
                            0.5
                          ]
                        },
                        "dots": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 2
                        },
                        "tuplet": {
                          "type": "boolean"
                        },
                        "pitches": {
                          "maxItems": 12,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "step": {
                                "type": "string",
                                "enum": [
                                  "C",
                                  "D",
                                  "E",
                                  "F",
                                  "G",
                                  "A",
                                  "B"
                                ]
                              },
                              "octave": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 8
                              },
                              "alter": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": -2,
                                    "maximum": 2
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "string": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 6
                              },
                              "drum": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 127
                              }
                            },
                            "required": [
                              "step",
                              "octave",
                              "alter"
                            ]
                          }
                        },
                        "dynamic": {
                          "type": "string",
                          "enum": [
                            "ppp",
                            "pp",
                            "p",
                            "mp",
                            "mf",
                            "f",
                            "ff",
                            "fff",
                            "sfz",
                            "fp"
                          ]
                        },
                        "articulation": {
                          "type": "string",
                          "enum": [
                            "staccato",
                            "tenuto",
                            "accent",
                            "marcato",
                            "staccatissimo",
                            "fermata"
                          ]
                        },
                        "trill": {
                          "type": "object",
                          "properties": {
                            "upper": {
                              "type": "boolean"
                            },
                            "accidental": {
                              "type": "integer",
                              "minimum": -2,
                              "maximum": 2
                            }
                          },
                          "required": [
                            "upper"
                          ]
                        },
                        "playback": {
                          "type": "object",
                          "properties": {
                            "velocityScale": {
                              "type": "number",
                              "minimum": 0.1,
                              "maximum": 2
                            },
                            "gate": {
                              "type": "number",
                              "minimum": 0.1,
                              "maximum": 1
                            },
                            "program": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 127
                            }
                          }
                        },
                        "tie": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        "slur": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      },
                      "required": [
                        "id",
                        "at",
                        "voice",
                        "value",
                        "dots",
                        "tuplet",
                        "pitches"
                      ]
                    }
                  }
                },
                "harmonies": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "symbol": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "at",
                        "symbol"
                      ]
                    }
                  }
                }
              },
              "required": [
                "id",
                "clefs",
                "notes"
              ]
            }
          },
          "hairpins": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "staff": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "crescendo",
                    "diminuendo"
                  ]
                },
                "start": {
                  "type": "object",
                  "properties": {
                    "bar": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "bar",
                    "at"
                  ]
                },
                "end": {
                  "type": "object",
                  "properties": {
                    "bar": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "bar",
                    "at"
                  ]
                }
              },
              "required": [
                "staff",
                "type",
                "start",
                "end"
              ]
            }
          }
        },
        "required": [
          "version",
          "title",
          "composer",
          "key",
          "meter",
          "tempo",
          "parts",
          "measures"
        ]
      }
    },
    "replaceScore": {
      "description": "Replace the open score as one undoable edit using the full native score model.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "score": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "title": {
                "type": "string",
                "maxLength": 120
              },
              "composer": {
                "type": "string",
                "maxLength": 120
              },
              "key": {
                "type": "object",
                "properties": {
                  "fifths": {
                    "type": "integer",
                    "minimum": -7,
                    "maximum": 7
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "major",
                      "minor"
                    ]
                  }
                },
                "required": [
                  "fifths",
                  "mode"
                ]
              },
              "meter": {
                "type": "object",
                "properties": {
                  "beats": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 32
                  },
                  "unit": {
                    "type": "number",
                    "enum": [
                      1,
                      2,
                      4,
                      8,
                      16,
                      32,
                      64,
                      128
                    ]
                  }
                },
                "required": [
                  "beats",
                  "unit"
                ]
              },
              "tempo": {
                "type": "integer",
                "minimum": 20,
                "maximum": 400
              },
              "parts": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "instrument": {
                      "type": "string",
                      "enum": [
                        "piano",
                        "organ",
                        "harpsichord",
                        "guitar",
                        "bass",
                        "ukulele",
                        "harp",
                        "violin",
                        "viola",
                        "cello",
                        "contrabass",
                        "flute",
                        "piccolo",
                        "oboe",
                        "clarinet",
                        "bassoon",
                        "saxophone",
                        "trumpet",
                        "horn",
                        "trombone",
                        "tuba",
                        "timpani",
                        "percussion",
                        "marimba",
                        "voice"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "program": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 127
                    },
                    "pan": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 127
                    },
                    "volume": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 127
                    },
                    "notation": {
                      "type": "string",
                      "enum": [
                        "staff",
                        "tab",
                        "both"
                      ]
                    },
                    "staves": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "clef": {
                            "type": "string",
                            "enum": [
                              "treble",
                              "bass",
                              "alto",
                              "tenor",
                              "soprano",
                              "mezzo-soprano",
                              "baritone-c",
                              "baritone-f",
                              "french",
                              "percussion"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "clef"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "instrument",
                    "name",
                    "staves"
                  ]
                }
              },
              "measures": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "meter": {
                      "type": "object",
                      "properties": {
                        "beats": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 32
                        },
                        "unit": {
                          "type": "number",
                          "enum": [
                            1,
                            2,
                            4,
                            8,
                            16,
                            32,
                            64,
                            128
                          ]
                        }
                      },
                      "required": [
                        "beats",
                        "unit"
                      ]
                    },
                    "key": {
                      "type": "object",
                      "properties": {
                        "fifths": {
                          "type": "integer",
                          "minimum": -7,
                          "maximum": 7
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "major",
                            "minor"
                          ]
                        }
                      },
                      "required": [
                        "fifths",
                        "mode"
                      ]
                    },
                    "tempo": {
                      "type": "integer",
                      "minimum": 20,
                      "maximum": 400
                    },
                    "end": {
                      "type": "string",
                      "enum": [
                        "single",
                        "double",
                        "final"
                      ]
                    },
                    "clefs": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "additionalProperties": {
                        "type": "string",
                        "enum": [
                          "treble",
                          "bass",
                          "alto",
                          "tenor",
                          "soprano",
                          "mezzo-soprano",
                          "baritone-c",
                          "baritone-f",
                          "french",
                          "percussion"
                        ]
                      }
                    },
                    "notes": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "voice": {
                              "type": "number",
                              "enum": [
                                0,
                                1
                              ]
                            },
                            "value": {
                              "type": "number",
                              "enum": [
                                1,
                                2,
                                4,
                                8,
                                16,
                                32,
                                64,
                                128,
                                0.5
                              ]
                            },
                            "dots": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 2
                            },
                            "tuplet": {
                              "type": "boolean"
                            },
                            "pitches": {
                              "maxItems": 12,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "step": {
                                    "type": "string",
                                    "enum": [
                                      "C",
                                      "D",
                                      "E",
                                      "F",
                                      "G",
                                      "A",
                                      "B"
                                    ]
                                  },
                                  "octave": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 8
                                  },
                                  "alter": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": -2,
                                        "maximum": 2
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "string": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 6
                                  },
                                  "drum": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 127
                                  }
                                },
                                "required": [
                                  "step",
                                  "octave",
                                  "alter"
                                ]
                              }
                            },
                            "dynamic": {
                              "type": "string",
                              "enum": [
                                "ppp",
                                "pp",
                                "p",
                                "mp",
                                "mf",
                                "f",
                                "ff",
                                "fff",
                                "sfz",
                                "fp"
                              ]
                            },
                            "articulation": {
                              "type": "string",
                              "enum": [
                                "staccato",
                                "tenuto",
                                "accent",
                                "marcato",
                                "staccatissimo",
                                "fermata"
                              ]
                            },
                            "trill": {
                              "type": "object",
                              "properties": {
                                "upper": {
                                  "type": "boolean"
                                },
                                "accidental": {
                                  "type": "integer",
                                  "minimum": -2,
                                  "maximum": 2
                                }
                              },
                              "required": [
                                "upper"
                              ]
                            },
                            "playback": {
                              "type": "object",
                              "properties": {
                                "velocityScale": {
                                  "type": "number",
                                  "minimum": 0.1,
                                  "maximum": 2
                                },
                                "gate": {
                                  "type": "number",
                                  "minimum": 0.1,
                                  "maximum": 1
                                },
                                "program": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 127
                                }
                              }
                            },
                            "tie": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "slur": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            }
                          },
                          "required": [
                            "id",
                            "at",
                            "voice",
                            "value",
                            "dots",
                            "tuplet",
                            "pitches"
                          ]
                        }
                      }
                    },
                    "harmonies": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "symbol": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "at",
                            "symbol"
                          ]
                        }
                      }
                    }
                  },
                  "required": [
                    "id",
                    "clefs",
                    "notes"
                  ]
                }
              },
              "hairpins": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "staff": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "crescendo",
                        "diminuendo"
                      ]
                    },
                    "start": {
                      "type": "object",
                      "properties": {
                        "bar": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        "at": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "bar",
                        "at"
                      ]
                    },
                    "end": {
                      "type": "object",
                      "properties": {
                        "bar": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        "at": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "bar",
                        "at"
                      ]
                    }
                  },
                  "required": [
                    "staff",
                    "type",
                    "start",
                    "end"
                  ]
                }
              }
            },
            "required": [
              "version",
              "title",
              "composer",
              "key",
              "meter",
              "tempo",
              "parts",
              "measures"
            ]
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "score"
        ],
        "additionalProperties": false
      }
    },
    "applyEdits": {
      "description": "Apply a batch atomically. Returns created IDs and any normalization warnings.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "edits": {
            "minItems": 1,
            "maxItems": 8192,
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "setScore"
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "composer": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "key": {
                      "type": "object",
                      "properties": {
                        "fifths": {
                          "type": "integer",
                          "minimum": -7,
                          "maximum": 7
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "major",
                            "minor"
                          ]
                        }
                      },
                      "required": [
                        "fifths",
                        "mode"
                      ]
                    },
                    "meter": {
                      "type": "object",
                      "properties": {
                        "beats": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 32
                        },
                        "unit": {
                          "type": "number",
                          "enum": [
                            1,
                            2,
                            4,
                            8,
                            16,
                            32,
                            64,
                            128
                          ]
                        }
                      },
                      "required": [
                        "beats",
                        "unit"
                      ]
                    },
                    "tempo": {
                      "type": "integer",
                      "minimum": 20,
                      "maximum": 400
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "Set title, composer, or the default key, meter and tempo."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "insertMeasure"
                    },
                    "after": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      ]
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 2048
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "Insert after a measure, append by default, or use after: 0 to insert first."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "removeMeasure"
                    },
                    "measure": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      ],
                      "description": "One-based measure number or a measure ID from getScore."
                    }
                  },
                  "required": [
                    "type",
                    "measure"
                  ],
                  "additionalProperties": false,
                  "description": "Remove a bar and keep inherited settings on the following bar."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "setMeasure"
                    },
                    "measure": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      ],
                      "description": "One-based measure number or a measure ID from getScore."
                    },
                    "meter": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "beats": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 32
                            },
                            "unit": {
                              "type": "number",
                              "enum": [
                                1,
                                2,
                                4,
                                8,
                                16,
                                32,
                                64,
                                128
                              ]
                            }
                          },
                          "required": [
                            "beats",
                            "unit"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "key": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "fifths": {
                              "type": "integer",
                              "minimum": -7,
                              "maximum": 7
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "major",
                                "minor"
                              ]
                            }
                          },
                          "required": [
                            "fifths",
                            "mode"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tempo": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 20,
                          "maximum": 400
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "end": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "single",
                            "double",
                            "final"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "measure"
                  ],
                  "additionalProperties": false,
                  "description": "Set per-measure key, meter, tempo or barline. Null restores inheritance or clears the barline."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "addInstrument"
                    },
                    "instrument": {
                      "type": "string",
                      "enum": [
                        "piano",
                        "organ",
                        "harpsichord",
                        "guitar",
                        "bass",
                        "ukulele",
                        "harp",
                        "violin",
                        "viola",
                        "cello",
                        "contrabass",
                        "flute",
                        "piccolo",
                        "oboe",
                        "clarinet",
                        "bassoon",
                        "saxophone",
                        "trumpet",
                        "horn",
                        "trombone",
                        "tuba",
                        "timpani",
                        "percussion",
                        "marimba",
                        "voice"
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "instrument"
                  ],
                  "additionalProperties": false,
                  "description": "Add an instrument with its usual staves."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "setInstrument"
                    },
                    "partId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "program": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 127
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "volume": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 127
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pan": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 127
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "notation": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "staff",
                            "tab",
                            "both"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "partId"
                  ],
                  "additionalProperties": false,
                  "description": "Set the name, General MIDI program, volume, pan or tablature view."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "removeInstrument"
                    },
                    "partId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "required": [
                    "type",
                    "partId"
                  ],
                  "additionalProperties": false,
                  "description": "Remove an instrument and its events. A score needs at least one staff."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "addStaff"
                    },
                    "partId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "clef": {
                      "type": "string",
                      "enum": [
                        "treble",
                        "bass",
                        "alto",
                        "tenor",
                        "soprano",
                        "mezzo-soprano",
                        "baritone-c",
                        "baritone-f",
                        "french",
                        "percussion"
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "partId",
                    "clef"
                  ],
                  "additionalProperties": false,
                  "description": "Add a staff to an instrument."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "removeStaff"
                    },
                    "staffId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "required": [
                    "type",
                    "staffId"
                  ],
                  "additionalProperties": false,
                  "description": "Remove a staff and its notes and symbols."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "setClef"
                    },
                    "staffId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "measure": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      ],
                      "description": "One-based measure number or a measure ID from getScore."
                    },
                    "clef": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "treble",
                            "bass",
                            "alto",
                            "tenor",
                            "soprano",
                            "mezzo-soprano",
                            "baritone-c",
                            "baritone-f",
                            "french",
                            "percussion"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "staffId",
                    "clef"
                  ],
                  "additionalProperties": false,
                  "description": "Set a staff clef. Omit measure for the staff default. Null on a measure restores inheritance."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "addNote"
                    },
                    "measure": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      ],
                      "description": "One-based measure number or a measure ID from getScore."
                    },
                    "staffId": {
                      "description": "Staff ID from getScore. Defaults to the first staff.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "Tick offset within the measure. A quarter note is 1920 ticks."
                    },
                    "beat": {
                      "description": "One-based beat in the current meter. Use beat or at, not both.",
                      "type": "number",
                      "minimum": 1
                    },
                    "pitch": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^[A-G](?:bb|##|b|#|n)?[0-8]$"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "step": {
                              "type": "string",
                              "enum": [
                                "C",
                                "D",
                                "E",
                                "F",
                                "G",
                                "A",
                                "B"
                              ]
                            },
                            "octave": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 8
                            },
                            "alter": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": -2,
                                  "maximum": 2
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "string": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 6
                            },
                            "drum": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 127
                            }
                          },
                          "required": [
                            "step",
                            "octave",
                            "alter"
                          ]
                        }
                      ],
                      "description": "A pitch such as C4 or F#5, or a native pitch object with step, octave and alter."
                    },
                    "pitches": {
                      "minItems": 1,
                      "maxItems": 12,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[A-G](?:bb|##|b|#|n)?[0-8]$"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "step": {
                                "type": "string",
                                "enum": [
                                  "C",
                                  "D",
                                  "E",
                                  "F",
                                  "G",
                                  "A",
                                  "B"
                                ]
                              },
                              "octave": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 8
                              },
                              "alter": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": -2,
                                    "maximum": 2
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "string": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 6
                              },
                              "drum": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 127
                              }
                            },
                            "required": [
                              "step",
                              "octave",
                              "alter"
                            ]
                          }
                        ],
                        "description": "A pitch such as C4 or F#5, or a native pitch object with step, octave and alter."
                      }
                    },
                    "drum": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 127,
                      "description": "General MIDI drum number from describe().catalog.drums."
                    },
                    "tab": {
                      "type": "object",
                      "properties": {
                        "string": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 6
                        },
                        "fret": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 24
                        }
                      },
                      "required": [
                        "string",
                        "fret"
                      ],
                      "additionalProperties": false
                    },
                    "voice": {
                      "description": "Voice number, starting at one.",
                      "type": "number",
                      "enum": [
                        1,
                        2
                      ]
                    },
                    "duration": {
                      "type": "string",
                      "enum": [
                        "double whole",
                        "whole",
                        "half",
                        "quarter",
                        "eighth",
                        "16th",
                        "32nd",
                        "64th",
                        "128th"
                      ]
                    },
                    "value": {
                      "description": "Native duration denominator. Use value or duration, not both.",
                      "type": "number",
                      "enum": [
                        1,
                        2,
                        4,
                        8,
                        16,
                        32,
                        64,
                        128,
                        0.5
                      ]
                    },
                    "dots": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2
                    },
                    "tuplet": {
                      "description": "Whether this event is part of a 3:2 triplet.",
                      "type": "boolean"
                    },
                    "dynamic": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "ppp",
                            "pp",
                            "p",
                            "mp",
                            "mf",
                            "f",
                            "ff",
                            "fff",
                            "sfz",
                            "fp"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "articulation": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "staccato",
                            "tenuto",
                            "accent",
                            "marcato",
                            "staccatissimo",
                            "fermata"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "trill": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "upper": {
                              "type": "boolean"
                            },
                            "accidental": {
                              "type": "integer",
                              "minimum": -2,
                              "maximum": 2
                            }
                          },
                          "required": [
                            "upper"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "playback": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "velocityScale": {
                              "type": "number",
                              "minimum": 0.1,
                              "maximum": 2
                            },
                            "gate": {
                              "type": "number",
                              "minimum": 0.1,
                              "maximum": 1
                            },
                            "program": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 127
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tie": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "slur": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "Insert a note, chord, drum hit, or fretted tab note. Use one pitch input. Default duration is quarter."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "addRest"
                    },
                    "measure": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      ],
                      "description": "One-based measure number or a measure ID from getScore."
                    },
                    "staffId": {
                      "description": "Staff ID from getScore. Defaults to the first staff.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "Tick offset within the measure. A quarter note is 1920 ticks."
                    },
                    "beat": {
                      "description": "One-based beat in the current meter. Use beat or at, not both.",
                      "type": "number",
                      "minimum": 1
                    },
                    "voice": {
                      "description": "Voice number, starting at one.",
                      "type": "number",
                      "enum": [
                        1,
                        2
                      ]
                    },
                    "duration": {
                      "type": "string",
                      "enum": [
                        "double whole",
                        "whole",
                        "half",
                        "quarter",
                        "eighth",
                        "16th",
                        "32nd",
                        "64th",
                        "128th"
                      ]
                    },
                    "value": {
                      "description": "Native duration denominator. Use value or duration, not both.",
                      "type": "number",
                      "enum": [
                        1,
                        2,
                        4,
                        8,
                        16,
                        32,
                        64,
                        128,
                        0.5
                      ]
                    },
                    "dots": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2
                    },
                    "tuplet": {
                      "description": "Whether this event is part of a 3:2 triplet.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "Insert a rest. Default duration is quarter."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "setEvent"
                    },
                    "eventId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "measure": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      ],
                      "description": "One-based measure number or a measure ID from getScore."
                    },
                    "staffId": {
                      "description": "Staff ID from getScore. Defaults to the first staff.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "Tick offset within the measure. A quarter note is 1920 ticks."
                    },
                    "beat": {
                      "description": "One-based beat in the current meter. Use beat or at, not both.",
                      "type": "number",
                      "minimum": 1
                    },
                    "pitch": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^[A-G](?:bb|##|b|#|n)?[0-8]$"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "step": {
                              "type": "string",
                              "enum": [
                                "C",
                                "D",
                                "E",
                                "F",
                                "G",
                                "A",
                                "B"
                              ]
                            },
                            "octave": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 8
                            },
                            "alter": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": -2,
                                  "maximum": 2
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "string": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 6
                            },
                            "drum": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 127
                            }
                          },
                          "required": [
                            "step",
                            "octave",
                            "alter"
                          ]
                        }
                      ],
                      "description": "A pitch such as C4 or F#5, or a native pitch object with step, octave and alter."
                    },
                    "pitches": {
                      "minItems": 1,
                      "maxItems": 12,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[A-G](?:bb|##|b|#|n)?[0-8]$"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "step": {
                                "type": "string",
                                "enum": [
                                  "C",
                                  "D",
                                  "E",
                                  "F",
                                  "G",
                                  "A",
                                  "B"
                                ]
                              },
                              "octave": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 8
                              },
                              "alter": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": -2,
                                    "maximum": 2
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "string": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 6
                              },
                              "drum": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 127
                              }
                            },
                            "required": [
                              "step",
                              "octave",
                              "alter"
                            ]
                          }
                        ],
                        "description": "A pitch such as C4 or F#5, or a native pitch object with step, octave and alter."
                      }
                    },
                    "drum": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 127,
                      "description": "General MIDI drum number from describe().catalog.drums."
                    },
                    "tab": {
                      "type": "object",
                      "properties": {
                        "string": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 6
                        },
                        "fret": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 24
                        }
                      },
                      "required": [
                        "string",
                        "fret"
                      ],
                      "additionalProperties": false
                    },
                    "voice": {
                      "description": "Voice number, starting at one.",
                      "type": "number",
                      "enum": [
                        1,
                        2
                      ]
                    },
                    "duration": {
                      "type": "string",
                      "enum": [
                        "double whole",
                        "whole",
                        "half",
                        "quarter",
                        "eighth",
                        "16th",
                        "32nd",
                        "64th",
                        "128th"
                      ]
                    },
                    "value": {
                      "description": "Native duration denominator. Use value or duration, not both.",
                      "type": "number",
                      "enum": [
                        1,
                        2,
                        4,
                        8,
                        16,
                        32,
                        64,
                        128,
                        0.5
                      ]
                    },
                    "dots": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 2
                    },
                    "tuplet": {
                      "description": "Whether this event is part of a 3:2 triplet.",
                      "type": "boolean"
                    },
                    "dynamic": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "ppp",
                            "pp",
                            "p",
                            "mp",
                            "mf",
                            "f",
                            "ff",
                            "fff",
                            "sfz",
                            "fp"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "articulation": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "staccato",
                            "tenuto",
                            "accent",
                            "marcato",
                            "staccatissimo",
                            "fermata"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "trill": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "upper": {
                              "type": "boolean"
                            },
                            "accidental": {
                              "type": "integer",
                              "minimum": -2,
                              "maximum": 2
                            }
                          },
                          "required": [
                            "upper"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "playback": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "velocityScale": {
                              "type": "number",
                              "minimum": 0.1,
                              "maximum": 2
                            },
                            "gate": {
                              "type": "number",
                              "minimum": 0.1,
                              "maximum": 1
                            },
                            "program": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 127
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tie": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "slur": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rest": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "type",
                    "eventId"
                  ],
                  "additionalProperties": false,
                  "description": "Move or change a note or rest. Use rest: true to clear pitches and null to clear a marking."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "setFingering"
                    },
                    "eventId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "pitchIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 11
                    },
                    "string": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 6
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "eventId",
                    "pitchIndex",
                    "string"
                  ],
                  "additionalProperties": false,
                  "description": "Assign a tablature string to a chord tone, or pass null to restore automatic fingering."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "removeEvent"
                    },
                    "eventId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "required": [
                    "type",
                    "eventId"
                  ],
                  "additionalProperties": false,
                  "description": "Delete a note, chord, drum hit or rest."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "setChordSymbol"
                    },
                    "measure": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      ],
                      "description": "One-based measure number or a measure ID from getScore."
                    },
                    "staffId": {
                      "description": "Staff ID from getScore. Defaults to the first staff.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "at": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991,
                      "description": "Tick offset within the measure. A quarter note is 1920 ticks."
                    },
                    "beat": {
                      "description": "One-based beat in the current meter. Use beat or at, not both.",
                      "type": "number",
                      "minimum": 1
                    },
                    "symbol": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 32
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "symbol"
                  ],
                  "additionalProperties": false,
                  "description": "Set or remove a chord symbol at a score position. Null removes it."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "addHairpin"
                    },
                    "staffId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "crescendo",
                        "diminuendo"
                      ]
                    },
                    "start": {
                      "type": "object",
                      "properties": {
                        "measure": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            }
                          ],
                          "description": "One-based measure number or a measure ID from getScore."
                        },
                        "at": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991,
                          "description": "Tick offset within the measure. A quarter note is 1920 ticks."
                        },
                        "beat": {
                          "description": "One-based beat in the current meter. Use beat or at, not both.",
                          "type": "number",
                          "minimum": 1
                        }
                      },
                      "required": [
                        "measure"
                      ],
                      "additionalProperties": false
                    },
                    "end": {
                      "type": "object",
                      "properties": {
                        "measure": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            }
                          ],
                          "description": "One-based measure number or a measure ID from getScore."
                        },
                        "at": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991,
                          "description": "Tick offset within the measure. A quarter note is 1920 ticks."
                        },
                        "beat": {
                          "description": "One-based beat in the current meter. Use beat or at, not both.",
                          "type": "number",
                          "minimum": 1
                        }
                      },
                      "required": [
                        "measure"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type",
                    "staffId",
                    "kind",
                    "start",
                    "end"
                  ],
                  "additionalProperties": false,
                  "description": "Add a crescendo or diminuendo between two positions on the same staff."
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "removeHairpin"
                    },
                    "index": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "type",
                    "index"
                  ],
                  "additionalProperties": false,
                  "description": "Remove a hairpin by its zero-based index in getScore().hairpins."
                }
              ]
            }
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "edits"
        ],
        "additionalProperties": false
      }
    },
    "newScore": {
      "description": "Open a blank, independent local draft by default.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "target": {
            "description": "Use copy for a new local draft, or current to replace the open score as an undoable edit.",
            "type": "string",
            "enum": [
              "copy",
              "current"
            ]
          },
          "title": {
            "type": "string",
            "maxLength": 120
          }
        },
        "additionalProperties": false
      }
    },
    "openExample": {
      "description": "Open a built-in example in an independent local draft by default.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "spring",
              "clockmakers-waltz"
            ]
          },
          "target": {
            "description": "Use copy for a new local draft, or current to replace the open score as an undoable edit.",
            "type": "string",
            "enum": [
              "copy",
              "current"
            ]
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      }
    },
    "listDrafts": {
      "description": "List saved drafts and recovery entries in this browser.",
      "inputSchema": null
    },
    "openDraft": {
      "description": "Open a saved draft by ID. Use an empty string for the main score. An occupied draft opens as a copy.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "recoverDraft": {
      "description": "Read the original text of a recovery entry using its recoveryKey from listDrafts. Optionally download it.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "recoveryKey": {
            "type": "string"
          },
          "download": {
            "type": "boolean"
          }
        },
        "required": [
          "recoveryKey"
        ],
        "additionalProperties": false
      }
    },
    "openScorePicker": {
      "description": "Open the editor’s native file chooser. Requires browser user activation. Use importScore for data supplied by code.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "all",
              "clefside",
              "musicxml",
              "midi"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "importScore": {
      "description": "Import native Clefside, MusicXML, MXL or MIDI. Pass file contents as text or as base64 for binary files.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "data": {
            "type": "string",
            "maxLength": 25165824
          },
          "encoding": {
            "type": "string",
            "enum": [
              "text",
              "base64"
            ]
          },
          "target": {
            "description": "Use copy for a new local draft, or current to replace the open score as an undoable edit.",
            "type": "string",
            "enum": [
              "copy",
              "current"
            ]
          }
        },
        "required": [
          "name",
          "data"
        ],
        "additionalProperties": false
      }
    },
    "exportScore": {
      "description": "Return a Clefside, MusicXML or MIDI file. MIDI is returned as base64. Optionally start a browser download.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "clefside",
              "musicxml",
              "midi"
            ]
          },
          "download": {
            "type": "boolean"
          }
        },
        "required": [
          "format"
        ],
        "additionalProperties": false
      }
    },
    "select": {
      "description": "Select an event by ID or move the cursor to a staff, measure and beat. Preview can sound a selected note.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "pitchIndex": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "preview": {
            "type": "boolean"
          },
          "measure": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            ],
            "description": "One-based measure number or a measure ID from getScore."
          },
          "staffId": {
            "description": "Staff ID from getScore. Defaults to the first staff.",
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Tick offset within the measure. A quarter note is 1920 ticks."
          },
          "beat": {
            "description": "One-based beat in the current meter. Use beat or at, not both.",
            "type": "number",
            "minimum": 1
          }
        },
        "additionalProperties": false
      }
    },
    "setInput": {
      "description": "Set the on-screen editor input tool, rhythm, accidental, fret or drum piece.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "tool": {
            "type": "string",
            "enum": [
              "select",
              "note",
              "rest",
              "chord"
            ]
          },
          "voice": {
            "description": "Voice number, starting at one.",
            "type": "number",
            "enum": [
              1,
              2
            ]
          },
          "duration": {
            "type": "string",
            "enum": [
              "double whole",
              "whole",
              "half",
              "quarter",
              "eighth",
              "16th",
              "32nd",
              "64th",
              "128th"
            ]
          },
          "value": {
            "description": "Native duration denominator. Use value or duration, not both.",
            "type": "number",
            "enum": [
              1,
              2,
              4,
              8,
              16,
              32,
              64,
              128,
              0.5
            ]
          },
          "dots": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2
          },
          "tuplet": {
            "description": "Whether this event is part of a 3:2 triplet.",
            "type": "boolean"
          },
          "accidental": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -2,
                "maximum": 2
              },
              {
                "type": "null"
              }
            ]
          },
          "fret": {
            "type": "integer",
            "minimum": 0,
            "maximum": 24
          },
          "drum": {
            "type": "integer",
            "minimum": 0,
            "maximum": 127,
            "description": "General MIDI drum number from describe().catalog.drums."
          }
        },
        "additionalProperties": false
      }
    },
    "setView": {
      "description": "Set page or continuous layout, zoom, text score, note names, note labels or mobile tools.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "layout": {
            "type": "string",
            "enum": [
              "page",
              "continuous"
            ]
          },
          "zoom": {
            "type": "integer",
            "minimum": 50,
            "maximum": 200
          },
          "textScore": {
            "type": "boolean"
          },
          "mobileTools": {
            "type": "boolean"
          },
          "noteNames": {
            "type": "string",
            "enum": [
              "letters",
              "solfege"
            ]
          },
          "noteLabels": {
            "type": "string",
            "enum": [
              "off",
              "letters",
              "solfege"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "openPanel": {
      "description": "Open an editor dialog or feedback. For instrument settings, partId defaults to the selected instrument.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "shortcuts",
                  "drafts",
                  "examples",
                  "pdf",
                  "jump",
                  "harmony",
                  "instrument-picker",
                  "feedback"
                ]
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "const": "tutorial"
              },
              "chapter": {
                "type": "string",
                "enum": [
                  "write",
                  "edit",
                  "instruments",
                  "finish"
                ]
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "const": "instrument-settings"
              },
              "partId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "closePanel": {
      "description": "Close the active editor dialog or feedback panel.",
      "inputSchema": null
    },
    "dismissNotice": {
      "description": "Dismiss the editor’s current status or error message.",
      "inputSchema": null
    },
    "setAudio": {
      "description": "Set SoundFont quality or note preview.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "quality": {
            "type": "string",
            "enum": [
              "auto",
              "full",
              "lite"
            ]
          },
          "pitchPreview": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }
    },
    "playback": {
      "description": "Play from the cursor or a score position, pause, resume or stop. Browser audio policies apply.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "play",
              "pause",
              "resume",
              "stop"
            ]
          },
          "measure": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            ],
            "description": "One-based measure number or a measure ID from getScore."
          },
          "staffId": {
            "description": "Staff ID from getScore. Defaults to the first staff.",
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Tick offset within the measure. A quarter note is 1920 ticks."
          },
          "beat": {
            "description": "One-based beat in the current meter. Use beat or at, not both.",
            "type": "number",
            "minimum": 1
          }
        },
        "required": [
          "action"
        ],
        "additionalProperties": false
      }
    },
    "printScore": {
      "description": "Open the browser’s A4 print / save as PDF dialog for the current score.",
      "inputSchema": null
    },
    "preparePrint": {
      "description": "Render all score pages using the same A4 layout as Print. Returns the page count. Use the browser PDF engine, then call finishPrint.",
      "inputSchema": null
    },
    "finishPrint": {
      "description": "Restore the normal editor view after preparePrint.",
      "inputSchema": null
    },
    "history": {
      "description": "Undo or redo an edit.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "direction": {
            "type": "string",
            "enum": [
              "undo",
              "redo"
            ]
          }
        },
        "required": [
          "direction"
        ],
        "additionalProperties": false
      }
    },
    "getResources": {
      "description": "Get links for guides, examples, privacy, audio credits and feedback email.",
      "inputSchema": null
    }
  }
}
